Code Like a Pro : Variables | How to Write Code Professionally (With Examples)

preview_player
Показать описание
Code Like a Pro : Variables | How to Write Code Professionally (With Examples)

► MY COURSES
My Courses with huge discounts:

► MY MERCH
My Coding Merch - Shirts, Mugs etc.

► BOOK RECOMMENDATIONS
- The Complete Software Developer's Career Guide:
- The Total Money Makeover
- Clean Code

► AFFILIATE LINKS FOR PRODUCTS I LOVE:
- Check out items I love on Amazon
-Humble Bundle (Low price games, books, courses etc.)
-Robinhood - Trade Stocks App (Sign up and get 1 share of stock valued between 5 and 200 dollars)
-Acorns - Easy Investment Portfolio (Sign up with my link and get $5 when you deposit)

► DONATE & SUPPORT
- Paypal

► MENTORING
- Tutoring, Mentoring and Course Walkthroughs available:

► SOCIAL MEDIA
- Patreon
- Code, Tech and Caffeine Facebook Group
- Twitter
- Website
- Instagram
Рекомендации по теме
Комментарии
Автор

Make sure you make this into a playlist. This is damn good.

slickliverpool
Автор

This is actually pretty dope. I’m liking the series

Cognitoman
Автор

This looks like it will be a useful playlist

eduardoocrespo
Автор

It's such a great tutorial video. In the 'incrementalBackups' code example, I think we can turn the nested 2 ifs into a flat compound and if for a a little bit more readability.

congdoan
Автор

This is why we need unit tests.
6:11 The function now returns 1 or num * (num - 1) if I'm not misstaken.
This, since you didn't rename the other num variable in the loop.

mudshark
Автор

This is so good. Especially at 12:18 (ish)

Metruzanca
Автор

very helpful thank you, I was just a bit confused about the extra variables in the function separated by the colon, can anyone explain what that does?

Heffsta
Автор

Should we ever use underscores in naming variables or functions?

MrTheBroMoe
Автор

Simplify this:
(NOTE: this is an index to sort dates, and the function receives the following string format:
"01/03/2017 1:46 PM", the time was not needed of course)


function db(date){
var yearReg=/[0-9]{4}/ // match 2019
var // "2019" from [];
var yearValue=parseInt(yearString, 0)*1000; //2019 * to mult
var dayReg1=/\/[0-9]{2}\//; //match /03/
var dayReg2=/[0-9]{2}/; // match 03 within /03/
var
var
var dayValue=parseInt(dayString2, 0)*1;
var monthReg1=/[0-9]{2}\//;
var monthReg2=/[0-9]{2}/;
var // [/09]
var
var monthValue=parseInt(monthString2, 0)*100;


var
return final
}

johnn
Автор

Why is it bad practice to reassign the num variable?

shazvlogs
Автор

Count was NOT doing nothing. You kept the original value in count to use as a criteria to exit the loop.
What you did when you eliminated count was creating an infinite loop @ 4:30

mudshark