New Series! Code this 💪, not that 💩. Learn how to write solid modern JavaScript and avoid bad code from then olden days. https://angularfirebase.com
– Source https://github.com/codediodeio/code-this-not-that-js
Original source
New Series! Code this 💪, not that 💩. Learn how to write solid modern JavaScript and avoid bad code from then olden days. https://angularfirebase.com
– Source https://github.com/codediodeio/code-this-not-that-js
Original source
45 responses to “JavaScript Pro Tips – Code This, NOT That”
The await is over! The async/await video I promised is here https://youtu.be/vn3tm0quoqE
First of all nice video. I agree with you in almost all tips and I must recognize I should use deconstruction more often.
But 99% of the time using break points is the best way to debug. Console log is simply not as good as a break point.
great stuff!
The console.log stuff and template literals were pretty nifty, I'd be surprised to meet a JS dev that doesn't know reduce/map/filter/forEach/reduce etc. though. No mention of generators but that's understandable, haven't see it used much.
You can't talk about debugging Javascript and not talk about debugger's breakpoints (Even tho I agree it's not really about Javascript)
Amazing Video. How can guys dislike this if they are not interested in becoming a better programmer? LOL!
I learned a lot. Thanks!!!!
I have no idea what this guy is talking about. lol.
Think the stick fight the game devs need to watch this. They made a great game, but it has more bugs in it than any other game I have seen.
Code not this that
Who knows why he was coding so quickly?
you could use Promise.all for the last example
GREAT!!! Whatta short sweet video just like modern javascript code 🙂
WTH am I seeing? Console is more advance!!!
I'm not sure if these thing were really to be call or can be categorized as 'bad code', with the new ways of coding its just your adapting to the new changes. Also, I know codes you categorized as 'good code' is much more efficient but its making a lot more difficult to read. Although few tips there I saw and overall a great tip. thanks
Fuck you you little piece of shit. Cut off the annoying video.
great tips!!!
can var still be used… ? i know there is "let" and "const". I am new to JavaScript and i just came across.
How the hell can I display emojis in my code like you? That would have been the real tutorial
Thank you.
How is this pro?
Could you go back over the part about the free t-shirt again?
Unable to use any of these. People still use IE and It doesnt support es6
What plugin did you use to write your javascript code so fast?
is it 2019 already?
From YDKJS ES6 and Beyond book: Object spread (…obj) feature is not an ES6 feature. Such a feature was considered for ES6, but was deferred to be considered after ES6.
definitely a must watch for any new JS dev and a really good refresher/tip video for any existing devs
Normal people watch porn, i watch Pro Tips and rub my nipples (͠≖ ͜ʖ͠≖)
5:18
return `${str[0]+ageStr} not ${str[0]}${ageStr}`;
This video goes too fast. Is it on purpose to make buy a book ?
This is more of a refresher than a teaching tool. You aren't explaining anything in depth and are going extremely fast. If I was just starting this would be more confusing than helpful and anyone currently working with JS would already know this.
console.table() — mind blown
Wow i just found you! You're awesome so clear i love it. Subbed 🙂
A Really Good Video !!!
Awesome content man <3
I personally think `console.log` is used way too often. A better debugging solution is to have good sourcemaps and then use your web console where you can actually set breakpoints. That way you don't need to set console.log all the time and accidentally commit that debug stuff as well (I know, using es- or tslint helps with that, but still)
that's telling me i need learning es6 now!
Thanks for making me feel like an idiot after two years of practice. 😂
Wooooowwww – but try this code in IE 🙂 Not always good practice is good. enjoy
That would be so cool if there's a depth explanation and example in each of this !
Thanks for good content. please follow us at
https://nopardazco.com/blog
You sir are a genius! Been coding in Javascript for a while and most of the stuff here are new to me!
Ok
so Code which is time consuming is Bad and the other one is Good….What seriously!
Code not this that
Array methods like reduce, map and filter perform much slower than classic for loops. So keep that in mind when you have to process large arrays. For small arrays it doesn't make much difference and the code is prettier, but a classic for loop can be over 10 times quicker.
String concatenation 'a lot more readable' at 5:00 ??
You made me laugh