r/javascript • u/[deleted] • Oct 16 '18
help Is it my imagination or are most JS programmers bad?
I came from learning basic, C++ and doing a little assembler. I found myself working professionally with SQL and C#.
Is it just my imagination or are most JS programmers bad? Like *really* bad? Like have no concept of how to write code whatsoever and would cry in a corner if you handed them perl or C. For example one of my coworkers has been programming JS for 8 years and had no idea what closure was and put everything at the top of the JS file so 'variables won't go out of scope'. Another would nest 8 if inside of eachother. And they were both 'senior' developers. One started in "the good old days where everything is in a table"
9
u/taylankasap Oct 16 '18
Nah, simply it's your coworkers who suck.
-7
Oct 16 '18
How do you explain most of the packages on npm?
5
u/taylankasap Oct 16 '18
8 years of experience and not knowing what a closure is why your coworker sucks.
On the other hand those guys who create packages on npm are just people who try to gain experience by doing open source work, since it has such an easy access and doing open source work is encouraged. Also I'm sure (well, not sure but I hope) they don't have years of experience.
4
u/inabahare Oct 16 '18
I'm sure you've gone through more than 50% of the packages on npm and concluded that more than 50% of js devs are bad lmao
2
u/gdormoy Oct 16 '18
I think the issue is not on Javascript or any language. It is just the way people tend to learn new languages.
When a started programming I learned C by coding part of the C library and doing so I learned a lot and step by step. Nowadays, developers go straight to a framework and learn how to code fast glue code but don't really go to the internal.
To be honest, I realized it last weekend when I was working on a personal project with typescript and realized that I just understood the basics of it but I was lacking knowledge on the advanced stuff. More important By reading some code en GitHub I realized I was not able to really understand it all.
All the frameworks out there makes it really easy to get started with a new language and you forget to really dive into them...
I decided to take a break from my project to explore typescript in more details but everyone isn't like me.
1
Oct 16 '18
How do you learn typescript? What I did was I wrote a bit of code then read every page in the handbook https://www.typescriptlang.org/docs/handbook/basic-types.html
1
u/gdormoy Oct 16 '18
I started to go through the handbook writing small pieces of code about the page I studied and I try to write about it in a gitbook.
Writing about stuff, even if not published, helps me realize whether or not I understood what I did or if I still need to work on it.
The hard part about it is to get back on stuff that I understand already to check if that is the case or if I am mistaken on it.
2
Oct 16 '18
From my experience , the programmer who considers himself a "good programmer" are almost always bad.
2
Oct 16 '18
Funny thing is I just said a lot of JS programmers seem bad. I never called anyone good. So where does that leave me? ;)
I'm assuming you're taking a shot at me. Most of the comments were and I don't know why some other ppls comments got downvoted.
2
Oct 16 '18
I might be taking a shot at you ;) But I don't mean to insult. I just find it good to question one's own superiority. I too think other programmers are really crappy sometimes. But it's always healthy to think what they think of me
2
Oct 16 '18
The last thing that I found was hard was writing my own regex engine. So... that tells you what kind of things I might do for fun. Code is not hard for me at all :)
Learning libraries however.... I wish many popular libs would have the quality of documentation that paid libraries have.
5
u/awusuwah Oct 16 '18
You will always find some idiots which have no idea how to write "modern" (haha) code. There are many people who can code, but can't code. Just don't learn from them and don't be one of them.
7
u/benjymous Oct 16 '18
JavaScript is the new BASIC. The entry point is close to zero, if you already have a computer, and anyone can knock something together by following a few tutorials, and copy/pasting random bits together without any understanding.
So you will encounter lots of code written by non-programmers or newbie programmers who don't understand what the code is actually doing (and/or don't care as long as it appears to function)
You shouldn't take that to mean all JS programmers are bad, you're just less likely to get an utter newbie writing C++/C#/SQL/Asm, since the entry points are higher (have to download an IDE which can be a large download, etc)
Also, in the web dev world, client side JS is still a relatively new thing - generally speaking the whole site would be built up server side, and the client side JS would just be used for basic stuff like validating form input - it's only in the last five years or so that stuff is becoming mostly clientside, with the server just supplying data, and all the page construction happening in the client.
So a lot of web devs will have started out in a world where you had hardcoded html with bits of data injected into it on the server, maybe not even CSS, and have learnt JS along the way, usually only enough to solve whatever their current problem is.
2
Oct 16 '18
Could be the particular field you're working in? Where i work we all come from more or less the same background (asm, c++, c#) and moved "up" to javascript because that's where applications are consumed. The javascript developers i follow on Twitter and elsewhere most certainly know what they're doing. Basically, i don't think the assumption is true, though there is a certain fraction which some people have called "the old guard" that kind of fits the description you gave. They get hissy fits when javascript evolves, hate tooling, don't like libraries --- or something. But it's not that big of a deal.
2
u/KaleidoscopeOk6699 Jan 18 '24
Most of the JS developer I see hate Java,PHP, C++ for some unknown reason...they don't want to go outside of JavaScript. so improvement of programming skills outside JS concepts is not very noticeable....but they are getting the work done that's what matters
2
1
Oct 16 '18
had no idea what closure was
put everything at the top of the JS file
In the environment you are it seems true from this sample.
Hasn't been my experience in general though.
1
1
u/akujinhikari Oct 16 '18 edited Oct 16 '18
I've found there are there are mainly four types of developers:
Old guy that's been doing it for years and refuses to update his knowledge ever. Typically writes bad code but doesn't care, because it works. Also the fastest at finishing tasks.
Old Any age guy that loves coding and goes out of his way to still learn everything. Typically writes great code, but has a bad habit of refactoring too much. Takes longer to complete tasks because of it.
Young guy that knows just enough and tries hard but just can't "get it." He's serviceable, and his code works, but he'll never impress you. Mediocre task completion time.
Savant. Can be any age, but typically younger. Understands code like he's a JS version of A Beautiful Mind. He's fast at completing tasks but actually slows other developers, because it takes longer for them to understand his amazing code.
There are obviously others, but these are the most typical - at least where I've worked.
1
u/dwighthouse Oct 16 '18
I’m the second guy, except I am young. I get into analysis paralysis because I want to understand the entire problem scope and space before writing anything.
1
u/akujinhikari Oct 16 '18
Yeah, I think the second one could be any age, now that I read it again. I'm more the second type as well. I suffer from always feeling like I'm not good enough for those around me, because I'm typically surrounded by people that are stupid good at code.
0
Oct 16 '18
[deleted]
-2
Oct 16 '18
I had a bit of a surprise when I realize
thisdoesn't get passed onto an arrow function.If angular was built for "designers who don't know how to code" then why the fuck is everyone coding with it?!
0
Oct 16 '18
[deleted]
1
Oct 16 '18
Isn't it harder to learn @Component, @Injectable, @Input? I used the first version of angular and I don't remember it but I specifically remember doing a simple thing required overkill and events when trying to do it in angular and slowed us down. I think we were trying to populate a table with data and have another widget create a popup calendar to book appointments.
0
Oct 16 '18
[deleted]
1
Oct 16 '18
Autocomplete? What IDE does that?
0
Oct 16 '18
[deleted]
1
Oct 16 '18
I like i said previously: IntelliJ with Angular plugin. Just type @Component({ }) If you combine it with IntelliJ and ng-cli
Oh that didn't register with me since I use neither. I see. If I'm ever put on a project with angular I'll try it. We don't use any IDEs at work. We use any text editor we want. I was using programmers notepad and vi until vs code came along. I never learned emac.
0
Oct 16 '18
[deleted]
1
Oct 16 '18
Really!?! Any idea what extension caused it? How long ago was this? I haven't notice a single problem
→ More replies (0)
19
u/finroller Oct 16 '18
The people doing js I've professionally met are scary good.