9 Reasons People Hate JavaScript
Why does everyone HATE JavaScript? We expose its flaws, quirks, and why it's still the king of the web!
✋ Stay connected
- Twitter: / moshhamedani
- Facebook: / programmingwithmosh
- Instagram: / codewithmosh.official
- LinkedIn: / codewithmosh
📖 What's covered
00:00 - Introducing JavaScript
00:14 - History of JavaScript
00:32 - Coercion
00:59 - Equality operators
01:29 - Array.sort
01:50 - Null and undefined
02:08 - The this keyword
02:23 - Classes
02:38 - Module system
03:16 - TypeScript
03:47 - Ecosystem
04:28 - Why JavaScript is the king
#javascript #programming #webdevelopment #coding
Пікірлер: 209
If companies or developers stopped releasing new JavaScript libraries or frameworks every nanosecond, maybe I wouldn't hate it.
@AmnaCode
9 күн бұрын
😅😅
I know PHP, I know Rust, I know SQL, I know Shell-script, I even once knew C and C++, but I have never managed to get comfortable with Javascript. I don't think I ever will. It never ceases to confuse me.
@developed_by_bobo
11 күн бұрын
Similar here. I had to learn c# just so I could avoid js. I hate sql too.
@Terminus265
10 күн бұрын
I eventually managed to get it stuck in. I can use JS now. try Mosh's course on modern js.
@dschledermann
9 күн бұрын
@Terminus265 yeah.. it's not like I can't code in Javascript all. I've been a programmer for well over two decades, so I have had plenty of exposure to it. It's more that Javascript, IMHO, is so inconsistent and has so many nasty surprises that I feel I'm ridiculously unproductive in it.
@daphenomenalz4100
3 күн бұрын
@@dschledermann yeah, typescript is much better (tho it's just a linter 😂 that eventually is converted to js)
Thanks for your amazing content Mosh. You videos are not only very engaging and useful, but also very therapeutic and refreshing 😊
I'm deeply learning html and css right now next it's javascript, I want to be frontend developer
@programmingwithmosh
14 күн бұрын
I have an awesome video for you! Coming next week!
@kolapoidris7258
14 күн бұрын
@@programmingwithmoshinteresting I am also in same shoes as him
@blacksystems
14 күн бұрын
@@programmingwithmosh do you Any plan for flutter?
@kamisoulhunter
14 күн бұрын
@@programmingwithmosh آقا مشفق افتخار مایی
@Solo_Wing_Pixy
14 күн бұрын
same! my latest project requires me to learn all of them, so I hope it won't be a drastic change from the desktop languages
Great video Mosh, the video was great! You are the best programming professor in the world!!!
I just started a full stack JS job w/ data analysis job duties too. Seeing this video has made my heart skip a beat.
hello sir, its great to see you again
Is it popular or is it simply the default for front end?
Thanks for sharing.that is informative
Null actually means null pointer. Values that contain objects are actually pointers to the object rather than containing the object themself, and null is pointer to nothing. Which is why typeof null is 'object'.
meanwhile im 46yo,self taught and still learning JS >HTML>CSS>React with vite for the last one year, im having fun learning JS because i want to be front end dev for my freelance journey
Okay where does 2:17 come from?? It seems hilarious
Doing great. Here's a dare for you: Make a tutorial video of half an hour in QBasic Language.
JavaScript is the chaotic language something like the internet deserves to represent it.
Great ❤❤❤
Is it possible talk about world strtengthest chess software Sockfish 16.1 heard part of software uses C++???
Web sites demand more resources than video games these days
@shaheermansoor2560
14 күн бұрын
How?
@kushagrasharma8974
14 күн бұрын
@@shaheermansoor2560 i can play video games on 1.3ghz CPU but youtube runs good on 4ghz. i underclock my CPU to keep the CPU cool.
@lesterivan282862
12 күн бұрын
@@shaheermansoor2560well I am a computer engineering student who’s mostly done C, and I would say logic is far easier to learn than syntax. A lot of these front end languages to me at least feel overwhelming with syntax whereas something like C is purely logic based.
@muresanandrei7565
12 күн бұрын
@@lesterivan282862 Nah you just don't know javascript and talk shit ...
@Sebastian-hg3xc
8 күн бұрын
@@lesterivan282862 are you really trying to argue that c is easier to learn/code in than javascript?
JS in the frontend ? Love it. JS is the backend, ai, mobile ? Hate it.
I decided to take JavaScript seriously because of Dash's clientside callbacks. And I recently got hired into a web development firm that wanted a Python developer just like me. So I decided to learn JavaScript. That undefined vs null causes a little bit of problems. Once I knew the distinction: const, let, var undefined, null object, array, map, set. I also knew JavaScript classes were fake. I was ready.
@ernestomotta5178
3 күн бұрын
Don't forget about prototypes
Where did u get that meme, can u share with us
This validate my hate🤣 but i gat to learn it for my bills😭
@cyberplayer28
14 күн бұрын
Lol
Mr mosh man I love you ❤
I find TS helpful. Especially libraries built with ts.
Hey mosh, are we expecting new courses from you, I asked you because I love your courses 😊
I use webassembly C# Blazor, and try to forget Javascript since then.
Do you think it is worth learning javascript to use it in frontend and backend if not what do you recommend
@robertsandiford6223
14 күн бұрын
Unless you're compiling to Web Assembly you need to use JS or something that compiles to JS. I use TypeScript front and back.
@DigitalCanineGames_
14 күн бұрын
if you want to do frontend and backend development then Javascript is a necessity, but you have to learn atleast one more backend language like python,c#,java etc. along with HTML,CSS and a few other frontend frameworks
@Sebastian-hg3xc
8 күн бұрын
@@DigitalCanineGames_ "you have to learn atleast one more backend language like python,c#,java etc." Nonsense. You can do full stack javascript with nodejs backends.
@DigitalCanineGames_
7 күн бұрын
@@Sebastian-hg3xc I know you can that's why I said "if you want to do FRONTEND adn BACKEND development JS is a necessity", but just because you can do frontend and backend with JS doesn't mean you should or every company's code base has NodeJs on the backend, so it's good to know more, especially Java and C#
I recently started to use TS in project and... I clench my teeth everytime i need to do something and i comfort myself that's a work that i do for future me.
I just started learning js this month
Hey Mosh could you do a caching course, like redis
One more thing: In some methods, I can not use FOR loops. The application just ignores my FOR loop. That's why I must use "recursive functions" in API requests or in some methods to iterate. It is also funny that In some cases, I am allowed to use "for in" or "for of" loop but still can not use regular "for i++" loop 🤣
That's why I love it! hahah
Now make a video with how to cope with these shortcomings
JavaScript is weird, but somehow I love it so much.
@justcurious1940
14 күн бұрын
I agree. It's a lovely language like C.
@DarthVader11912
14 күн бұрын
same
@paca3107
8 күн бұрын
do you know any different language?
@jpallatin
8 күн бұрын
@@paca3107 yes
@MK-lh3xd
6 күн бұрын
Stockholm syndrome 😅
I love JavaScript❤
sir you better update your course in your website about React native because is it so old version of documentation React Native 0.62 and now React Native 0.72
So many non-issues. How is [ ] + { } = ? an issue you could possibly run into??? Why would you want to add an empty array to an empty object? I don't understand a real world application of this. Can someone explain why this video includes it?
I went through BASIC, C++, Pascal (later Delphi) and finally settled on C# for 2 decades. Once over lunch we were discussing JS with colleagues who used it. I said I hate it. They asked why. Not that they were surprised; they just wanted to hear my version. I said: "I feel like coding in JS compared to C# is like going to a ballroom party in your pyjamas. Not that it can't be done. It just doesn't ever feel right". For the short while I was sentenced to using JS, I remember I spent more than half a day once just chasing a bug due to null checking errors. That's criminal if you ask me. Horrible thing JS. I will not dignify it by calling it a language.
Where is @2:16 from?😂
I use wysiwyg and I don't have to program in html anymore
`this` is a menace
Honestly I kinda love the speed to prototype in JavaScript, even knowing the risk of accruing insane technical debt is a perpetual risk with how quiet the language is about the dev's mistakes. I dunno, I'd rather just take the type coersions in JS than C segmentation faults and Java verbosity.
There is another alternative to JavaScript, beside TypeScript: Dart/Flutter. When compiled/run for the web it is automatically translated to JavaScript. And Dart if a safe and consistent language. Both type-safe, and null-safe. So a lot of bugs are simply prevented by the language itself. Of course, a scricter language requires greater design and programming skills; therefore you need to be a pro.
I love you Mosh
What is your upcoming course mosh
@flutter-fm1kl
14 күн бұрын
Flutter
I didnt like it because the intellisense wasnt there and troubleshooting it was needed a browser that dont give all the data... but could do all programming though... but if someone writes in html javascript and you need to change it, it is headache as you cant troubleshoot and have to do fast code reading like me and fix it or make it better
I like javascript. I hope these minor issues will be solved in the coming versions.
Can we get a full Sveltekit course please? I'll give you all my money.
Typing always gets me. I can assign a variable as a string, then make it a boolean, then finally a date. I know TypeScript fixes this, but you can still sign multiple types to variables in TypeScript. So your variables can be unpredictable when debugging someone else's code.
@Sebastian-hg3xc
8 күн бұрын
Well, then don't. What's the problem?
@xenoranger79
8 күн бұрын
Don't debug other's code? Interesting take.
l am busy with HTML & CSS, and after that going straight JavaScript!!!!
Oh yeah
it doesn't matter if {}+{}=0 or anything bcz there's no rational developer will do it in real world projects so javascript is the best
@daphenomenalz4100
3 күн бұрын
Lmao it's not, there's a reason Typescript exists
Hahaha, Mosh, you nailed it, this is exactly why I refused to use it. I studied your Javascript Essentials but just couldnt use javascript on projects directly because there is something new coming in the corner every time. But your reasons, got me laughing because u nailed one that i realized I was a culprit.
I find this video very funny cause of how true it is, but bruh, I love JavaScript, I do everything with it, typescript is a good one though, since learning typescript, it’s been the go-to, still JavaScript under the hood 😂
My first paid project was a telegram bot which I created using NodeJS. So I assigned price as number, but admin entered it with comma. All the posts he created had undefined on price 😂😂
@patunolaibukun2506
14 күн бұрын
🤣🤣🤣
@tmahad5447
13 күн бұрын
Number(price.replacace(",", ""))
@Sebastian-hg3xc
8 күн бұрын
You mean the admin send those "numbers" via http, possibly as query string, which is.... string values? Parsing numbers locally aware is a challenge not just for javascript, but in general. This isn't an issue with javascript.
@verydifferentthought
8 күн бұрын
@@Sebastian-hg3xc The person who paid money(Admin), yes skill issue from my side😁😁. But I fixed it and did some validation using regex.
Typescript should be merged into Javascript. The lack of rules in js destroys the language.
You forgot to mention the incredibly resource consumption
JavaScript is not clear about a lot of stuff but I love it.
Guess what, my 1 programming language is JavaScript and still using it with typescript 😮
I might be somehow wrong , but I just logged the outputs of these , both in the browser and in a server env , here is what I get : [] + [] => ' ' ; [] + {} => [object Object] ; [] + {} => [object Object] ; {} + {} => [object Object][object Object]
@Sebastian-hg3xc
8 күн бұрын
Yes, mosh is wrong on this one.
😂😂 love the illustrations.
Excuse me. Sorry if it bothers you, can you recommend data recovery software for Android with a 100% success rate?
These are what make Javascript the best programming language.
mosh you are just making it complex, in real world, who the hell would add empty arrays and empty array and objects?
@xitaris5981
14 күн бұрын
Who wouldn't? It's extremely useful
@brahimkassem
13 күн бұрын
No one will lol@@xitaris5981
@Dracometeor562
12 күн бұрын
@@xitaris5981useful in what sense? Lol. Im a software engineer for almost 10 years, i have experienced building various backend services and web applications Who the hell would add empty objects and empty array for what use cases? 😂 Before such empty objects go to your backend to process, should be validated, in real world scenario, no one would ever process empty objects or empty arrays Get your facts straight
@Aeric80
12 күн бұрын
maybe a member in the team who introduce a bug that difficult to trace.
@Sebastian-hg3xc
8 күн бұрын
@@xitaris5981 "It's extremely useful" Okay, then use the right syntax. If it's arrays, use concat. If it's objects, use Object.assign or the newer spread operator. The plus operator is used for numbers and strings, not for arrays and objects.
Because we hate when something is blinking on the page or when music starts when we open page or when screen fills with pop ups. It's friends have already long gone. JavaScript is left over tech form 90s.
JS help me have a job, help me earn money, help me by food, help me have a rent house to live. JS save my life
@matthewwoodard9810
8 күн бұрын
Same!
@kadesetoki6818
7 күн бұрын
Js good
People hate JavaScript because they don't know it so surprising things happen. People hate JavaScript because other people don't know it and so surprising things happen.
Personally, I hate OOP so classes means fuck all to me. I work as a Senior DevOps Engineer anyway and we use Python (without OOP).
PHP has suffered hate for decades and survived, its JavaScript turn! Like JavaScript they both put food on the table.
I love it more than I hate it
It's true that JavaScript got some weird behaviours that would sometimes make you scratch your head for hours.
yeap , js is weird and awesome at the same time !
That's why typescript makes Javascript better.
I remember disabling the javascript on browsers for safety! now the damn thing is everywhere like a fungus
I saw a lot of memes about JavaScript being trash but I never used it myself. I went straight to TypeScript and honestly I like it. Python and TypeScript are my top languages.
Typescript is a Language ❌ Typescript is a Linter ✔
Over the years it’s become fashionable to hate JS. The rules, with some admitted quirks, are very easy to absorb. Everyone who has ever cited some of those quirks I’ve asked how often they’ve been affected which is almost never. The loose and strict equality is probably the greatest real world quirk
I don't hate JavaScript, but I can't say the same about the ecosystem
It pays the bill 😂❤
JS isn't perfect (no language is), but people hate on it because they think hating it will in-group them, or for content-creator clout -- contributing to the previous. Coming from JS to Python, there are some nice things about it, but I mostly prefer JS (and TS even more -- it's not that hard to pick up if you know JS). If I'd mostly worked with Python before, though, I suspect I'd have a different opinion. In the future I want to pick up languages like Go and Elixir, and I fully expect to have substantial dislike for parts of the experience.
Damn, JS type coercion is wild.
@Sebastian-hg3xc
8 күн бұрын
If you write silly code you get silly results. You don't merge arrays and objects with the plus operator.
i hate it and it doesn't pay my bills yet :(
@fromagetriste
14 күн бұрын
i know a lot about python and i can say JS is really bad, and i built a few stuff in JS
@ronman6206
6 сағат бұрын
Same.lol!
console.log({}+[]) => [object,Object] console.log({}+{}) => [object,Object] [object,Object] I try this they are different what you said, Did I do someting wrong?
If you want to be a frontend wizard, you have no choice to master js html css. That is life.
These coercion quirks brought up in the video are only a theoretical problem and not really an issue when writing applications with javascript. Most of javascript's language issues are mitigated if you activate your brain. But people are lazy. I get it. They don't want to educate themselves. But true, the non existent type system make intellisense impossible which forces you to always lookup things in the documentation.
Anyone here with JavaScript ebook? Thank you!
Becuase Flutter(dart) is much better and easier and full stable language
JS should be banned like Flash was at the time.
Drizzle didn't remove TypeScript. Drizzle team was dunking on DHH for his decision to remove TypeScript. It was a joke on Twitter.
Because it's so difficult to program
I am a first year btech student. Should I learn golang? I have heard it will be very useful in future. Also what is the future of blockchain technology?
@thecoolnewsguy
14 күн бұрын
About blockchain, it seems like it's not so popular. You should learn a language depending on your needs and interests.
it runs on browser and on server… no other languages can do that!
@zububabu8249
3 күн бұрын
well java and python can..
Hey Mosh! How about creating a course on DDD instead of posting these weird videos every day? 🤦♂
@stephanieowen1
14 күн бұрын
Can't you allow him to try new stuff? He has done a lot for me with his old tutorials and he is gonna probably make the tutorial you are looking for 🥱
They went too far with abstraction, js is so high level and so many frameworks have been tacked on, it's turned into a bit of a mess
Didn't know people hated JavaScript.
Doesn't matter. Dont do what is easy, do what is recommended. The largest tech companies meta and google created JS frameworks react and angular which means both will be promising so doesn't matter if easy or not, learn what is used the most.
I love JavaScript because it pays my bills and it can also be use on the server which makes life easier to transition from a frontend to a fullstack Developer with the same language which means I will be making more money with the same language 😂😂😂
Mosh is my father.
I don't hate it, it puts food on my table
I don't know how i would live without is-even
I wish Spring team could create new front end framework with Java, that can run on android, iOS and website, so I dont have to use this JS 😂
@Anonymous-dy2te
14 күн бұрын
name of the framework?