These are chat archives for Colt/WDB-CodeTalk

1st
Jan 2017
Spencer
@coderamen
Jan 01 2017 03:31
Do you need math to be good in JS?
James Hall
@James-H33
Jan 01 2017 03:33
@coderamen Mostly basic math. Critical thinking skills and the willingness to persevere when problems become complicated.
Spencer
@coderamen
Jan 01 2017 03:37
I see..I'm bad in math :( however I like your word 'persevere when problems...' :D @James-H33
but its tough makes my learning slow...:(
James Hall
@James-H33
Jan 01 2017 03:59
@coderamen You just have to working on it religiously. It's rare that I do any more than basic math at work(Jr Developer).
Spencer
@coderamen
Jan 01 2017 04:44
ic thank @James-H33
btw it's there a easier way to understand and calculate remainder math answer? I still don't get it how 5%2 is remainder of 2...:(
i mean to get answer 2...
James Hall
@James-H33
Jan 01 2017 05:10
@coderamen So, in the problem 5 % 2; 1 should be your remainder. Basically the number 2 (in the case) is multiplied by itself until it can no longer be multiplied again without being over the number 5(in this case). So 2 * 2 = 4 with 1 being the remainder to get you to 5.
Spencer
@coderamen
Jan 01 2017 05:19
what if is 5 %3?
James Hall
@James-H33
Jan 01 2017 05:21
So, say to yourself like this "How many times can 3 be added by 3 to get close to 5 but not over?"
// 3 *2 would give you 6 which is over 5 therefore 3 * 1 = 3 which then it takes 2 more to get to 5! So, 5 % 3 has a remainder of 2.
James Hall
@James-H33
Jan 01 2017 05:30

// Modulo Operator || Remainder Operator

50 % 4 = 2 // Behind the scenes 4 * 12 = 48 (add 2 more to get to 50) 
24 % 7 = 3 // 7 * 3 = 21 (add 3 to get to 24)
37 % 9 = 1 // 9 * 4 = 36 (add 1 to get to 37)
Happy New Year by the way!
Spencer
@coderamen
Jan 01 2017 05:37
okay i think i get it ady, starting to picture it in my head..Happy New Year to U 2 @James-H33 !!
thanks btw...
Bozhidar Dimitrov
@phiratio
Jan 01 2017 05:48
greetings guys
Jay Wang
@wang1a_twitter
Jan 01 2017 07:15
Hi, Guys
Amir Braham
@AmirBraham
Jan 01 2017 09:58
hi ! I've been wondering what this line of code is all about ? app.use(bodyParser.urlencoded({extended:true}));
Boomer
@boomer1204
Jan 01 2017 17:34
@AmirBraham that is so when you pass a form you can grab the names and put them in a database or use the values someone types into it
Timo Jarventausta
@timojarv
Jan 01 2017 18:05
express doesn't parse the POST request body (ex. the submitted form data) by default so you use bodyParser for that. The part that says ".urlencoded({extended: true})" just tells bodyParser that the submitted data will be a set of url-encoded key-value pairs. This make it suitable for parsing submitted form data. If you were writing a json REST api for example, you would use bodyParser.json()
Drew
@seijya
Jan 01 2017 18:52
@fang0rnz Hey, I believe the issue is that you're using ":nth-child" when you should be using ":nth-of-type"
Juan Gomez
@r2toretto
Jan 01 2017 21:53
Hi everyone, My name is Juan, I live in Brazil at the moment, and I have seen this course halfway through, so I decided to add my support and actually buy it, very glad to be here with you guys.
Wawa74
@Wawa74
Jan 01 2017 23:47
Hey everyone! New to the course and looking forward to learning from everyone. Very excited to get started!