These are chat archives for codefellows/sea-c16-javascript

17th
Jul 2014
Tyler Morgan
@toastynerd
Jul 17 2014 00:42
@macikokoro not really, it just looks cleaner.
Joaquin Guardado
@macikokoro
Jul 17 2014 00:46
@toastynerd ok got it
Joe Elsey
@joeelsey
Jul 17 2014 01:58
My code works now. 11th hour fix. Thanks to everyone who replied.
Matt
@mahenry926
Jul 17 2014 02:12
Quit using the internet ... i can't download node .... haha
Matt
@mahenry926
Jul 17 2014 02:43
lets see if i get this. I could write this: var sum = _.reduce([1, 2, 3], function(sum, num) {
or i could do this: var sumNum = function(sum, num)
and then var sum = _.reduce([1, 2, 3], sumNum);
Jeff Adelman
@jeffadelman8
Jul 17 2014 02:44
Big data...
Ivan Storck
@ivanoats
Jul 17 2014 03:04
Package.json article/docs: https://www.npmjs.org/doc/package.json.html
Scott Romney Burbidge
@sburbidg
Jul 17 2014 03:06
thanks @ivanoats
Mandi Grant
@MJGrant
Jul 17 2014 03:24
Can you share a link to the github repository that contained the in-class examples?
Mandi Grant
@MJGrant
Jul 17 2014 03:25
Thank you!
Martin Genev
@mgenev
Jul 17 2014 03:40
Tyler Morgan
@toastynerd
Jul 17 2014 05:01
@jeffadelman8 lol, that’s the best big data implementation I’ve ever seen and probably ever will see.
Larry Scroggins
@lwscroggins
Jul 17 2014 06:24
@mgenev referring to "foo bar"... foo bar == fubar == fouled up beyond all recognition (or whatever your favorite f-word is
Scott Romney Burbidge
@sburbidg
Jul 17 2014 06:35
i've tried every thing I could think of, is there a way to do this so the left hand value value is only used once?
if(this.input.charAt(i) !== delim && this.input.charAt(i) !== '')
Martin Genev
@mgenev
Jul 17 2014 16:02
@sburbidg you can store it in a var, you can also simply eval it for true instead of comparing it against ''
@lwscroggins haha, that i'm aware of, i guess it does apply to code ;)
Jeff Battema
@thewocky
Jul 17 2014 17:05
For future homework assignments, any chance we can see the correct (best-practice) solution by the next class?
Joaquin Guardado
@macikokoro
Jul 17 2014 17:12
I'm also interested in best practices. Most of the time I can make the code work but I'm not always sure if I'm doing it correctly
John Fahey
@faheydesign
Jul 17 2014 17:14
I recommend running your code through jshint. You can use http://jshint.com/ or install a package for sublime text.
It will help with finding general errors and syntax mistakes.
Joaquin Guardado
@macikokoro
Jul 17 2014 17:17
What is Cyclomatic complexity number for this function is 1?
Martin Genev
@mgenev
Jul 17 2014 17:17
@thewocky are you in my class? I tend to demo a solution
@faheydesign yes, it's jshint is great, i can't do without it
@thewocky this is what i came up with for the last one http://jsbin.com/toquri/3/edit
Joaquin Guardado
@macikokoro
Jul 17 2014 17:28
Cyclomatic complexity is a software metric (measurement). It was developed by Thomas J. McCabe, Sr. in 1976 and is used to indicate the complexity of a program. It is a quantitative measure of the complexity of programming instructions
Jeff Battema
@thewocky
Jul 17 2014 18:49
@mgenev I'm in Hank's class. I went a little bit to town with mine, just to practice: http://jsfiddle.net/thewocky/Sc7Up/11/. I like the while loop best (as long as you don't mind destroying the array in the process).
Hank Yates
@hankyates
Jul 17 2014 19:33
goodness
that one is going to take a littl ebit to work through
Jeff Battema
@thewocky
Jul 17 2014 19:39
@hankyates How do you mean?
Hank Yates
@hankyates
Jul 17 2014 19:42
its very detailed :)
using console logs might help make it a little more clear
Jeff Battema
@thewocky
Jul 17 2014 20:00
I'll do that next time...