How To Be a Better JavaScript Developer

preview_player
Показать описание
There's some quick and easy ways of leveling up your JavaScript game and being a better overall JavaScript developer.

Hope you enjoyed the video!

Check out this code here:

Join my Discord server and come say hi:

Check out some code on my GitHub:

Send me a Gab:

Other Social:
Рекомендации по теме
Комментарии
Автор

I'd add a small suggestion here that I don't see mentioned very often: always use const whenever possible
It's such low hanging fruit and helps to avoid mutability or name shadowing bugs. If for some reason you can't use const then, and only then, should you use let

Dude
Автор

These are some great tips! Usually these JavaScript tips videos are not that practical but I use all of these every day.

TomDoesTech
Автор

As for writing modules yourself instead of using old, unmaintained libraries: you can always clone them, pubvlish them under your own namespace and maintain them yourself. I do this a fair bit. If they are single-file modules, sometimes even just copy the code and paste it straight into my project.

TomDoesTech
Автор

Thanks man, really useful tips even for a beginner programmer like me. Love your videos, they are a big part of my learning process. Even if sometimes your content is a little advanced for me, trying to understand what you are on about always points me in the right direction and I come out more knowledgeable every time. Keep them coming and thanks for sharing :)

alicefraser
Автор

All of this is good advice for any JS programmer. I would say, though, that one should never mistake code constructs they are unfamiliar with to be "clever one-liners". There are definitely one-liners that are difficult to understand, but there are also ones that are idiomatic JS and quite easy to read if you familiarize yourself with the idiom. The example here of chaining ternary operators is for-sure not idiomatic. But usage of map over for loops, for example, can be beneficial so don't discount things right away.

taylorallred
Автор

Damn, that last one is something that hits me hard, but I definitely needed to hear.
Always readability > condensation.
(at the end of the day for the bundler in most cases it will be the same thing)

jpaiva
Автор

Absolutely amazing video for a beginner JS dev, gotta recommend it to anyone who's starting out with the language

nekoill
Автор

Learn how to be a better JavaScript developer with this one small trick.




*Learn and use typescript*

noahg
Автор

I didn't know about the difference between == and === in JS. Thank you so much.

kankaj
Автор

Loved the video. I apply pretty much all of them at work. Thanks for sharing.

umarchy
Автор

I look up to u, I hope to be as knowledgeable about programming as you are one day. Thanks for the tips.

Billy-kdjh
Автор

Glad to see you back making videos, man. Was wondering if something happened. Welcome back!

davidmcclellan
Автор

use eslint my dudes. it really keeps your shit in check. also write tests, which you should be doing anyway XD.
I believe you can use == in one case, if (x == null), it compares x to both null or undefined. Even eslint has a special rule for it.

just try and write code that won't make u vomit a week from now.

rishabhanand
Автор

Thanks for your great content but I miss you messing with scammers. 😆

OwenGilmoreOG
Автор

I might be wrong here but: Isn't the one liner an If else statement while the 10 line is a switch case (which can be faster to run)?

Ouchie
Автор

6:03 "block" might not be the correct word. Idk it can be confusing. It releases the thread of execution until the async task is complete.

sourandbitter
Автор

That's a great video in a really long time !

electronicbasics
Автор

Good video - some of these even apply to other langs. Thank you!

ZacKoch
Автор

Ugh when I see a ternary inside a ternary my head explodes. It took me a while just to understand basic ternary statements.

joeAnon
Автор

Nested ternaries make my skin crawl. It’s ok if code spans a few lines.

thefather