Комментарии:
Had to downvote this video after watching your coercion part. You don't merge arrays and objects with the plus operator. We have special methods available for both operations (concat, assign). I have no idea what the "sum" of two arrays or the mix of an array and an object would even mean. It's undefined behavior. The c standard has this notion as well. When you write silly code you get "undefined behavior", meaning you should not write this code because the standard doesn't define the result because it makes no sense.
Also, the results you sell us as "Javascript" are only relevant for client-side interpretation (browsers). I tried nodejs 12 to 22 and none of them matched your results, which is not surprising since we're dealing with undefined behavior here.
TypeScript - No more reasons to hate 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
ОтветитьThanks for sharing.that is informative
ОтветитьExcuse me. Sorry if it bothers you, can you recommend data recovery software for Android with a 100% success rate?
ОтветитьIt pays the bill 😂❤
ОтветитьThe reason is JS == Trash. It is same for PHP.
ОтветитьDoing great. Here's a dare for you: Make a tutorial video of half an hour in QBasic Language.
ОтветитьDamn, JS type coercion is wild.
ОтветитьU don't even reply to paid users... And python course is outdated as well. Regret my purchase
Ответить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.
Ответить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 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
Ответитьyeap , js is weird and awesome at the same time !
ОтветитьGreat video Mosh, the video was great! You are the best programming professor in the world!!!
ОтветитьDidn't know people hated JavaScript.
ОтветитьIf companies or developers stopped releasing new JavaScript libraries or frameworks every nanosecond, maybe I wouldn't hate it.
ОтветитьWhat a joke! people hate JavaScript, lol.
ОтветитьBecause the ecosystem is helpful and annoying at the same time
ОтветитьIf you want to be a frontend wizard, you have no choice to master js html css. That is life.
ОтветитьBecuase Flutter(dart) is much better and easier and full stable language
Ответить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.
ОтветитьPHP has suffered hate for decades and survived, its JavaScript turn! Like JavaScript they both put food on the table.
ОтветитьJavascript pays my bill . After watching your video , i am starting to hate it :)
ОтветитьHey Mosh could you do a caching course, like redis
Ответить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
ОтветитьMr mosh man I love you ❤
ОтветитьI hate it but it pays the bills lol
Ответить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
ОтветитьIs it possible talk about world strtengthest chess software Sockfish 16.1 heard part of software uses C++???
ОтветитьAlways disliked it.
Ответить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.
Ответить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 🤣
ОтветитьI can't understand why.
1. The syntax doesn't make sense to me. It's like you learn the basic pronunciation in English but some words don't pronounce as it should.
2. Alright it was created in a short time, so every time this can be a good excuse to why it is bad?
3. Problem is vast majority of people are using it and the number is still growing even though it is bad.
4. Even after it has so many versions updated, I still don't see it gets better but worse.
5. Why it becomes more complicated nowadays and some "clever" people combine it with functional programming.
6. Why it need so much resources to compile by node. Why so many dependencies and vulnerabilities.
7. Why it wants to take over the role of the back-end's and try to replace native app. Why full page refresh is so bad and SPA is so great?
8. Shortcut doesn't means it make things more simpler but it actually make things more difficult to read, such as three dots, anonymous functions, etc.
9. Introduction of new features to add more complexity in new version but hesitate to drop some old syntax for the sake of backward compatibility, such as redundant intro to keywords like let instead of var and why not replace document.getElementByID with a much shorter keyword. I mean why not just introduce a brand new cleaner JS that not backward compatible? It may be pain but better for the future.
10. Why not bring back an improved version of VBScript? JS will continue to be bad even though developers have tried to patch the broken holes.
After all, I still feel jQuery is making more sense than any other frameworks. I don't know where the "smart" idea of virtual DOM comes from. Where people think React and Vue are so great.
I have to stop here. My brain is going to burst if I keep going.
Maybe JS supporters will start arguing with me. lol
I use webassembly C# Blazor, and try to forget Javascript since then.
Ответитьconsole.log({}+[]) => [object,Object]
console.log({}+{}) => [object,Object] [object,Object]
I try this they are different what you said,
Did I do someting wrong?
I’m so tired about these stupid examples. What do you expect to get from summing array and object?
ОтветитьWhere did u get that meme, can u share with us
ОтветитьAnyone here with JavaScript ebook? Thank you!
Ответить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 😂
ОтветитьMosh is my father.
ОтветитьI use wysiwyg and I don't have to program in html anymore
ОтветитьBecause it's so difficult to program
Ответить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]
ОтветитьJS in the frontend ? Love it. JS is the backend, ai, mobile ? Hate it.
Ответить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.
Ответить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
ОтветитьNever learn JS
ОтветитьIt’s a language designed as backend for html in the last century and some genius assumed it will be powerful also for anything else too. Big mistake, it’s dirty, not safe, not compiled and you really don’t want to use it
Ответить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
Ответить