Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 05 15:34
    adrianhuebner closed #172
  • May 05 15:33
    adrianhuebner closed #216
  • May 05 15:33
    adrianhuebner closed #219
  • May 05 15:32
    adrianhuebner closed #220
  • May 05 15:32
    adrianhuebner closed #222
  • May 05 15:32
    adrianhuebner closed #223
  • May 05 15:32
    adrianhuebner closed #235
  • May 05 15:32
    adrianhuebner closed #245
  • Aug 17 2014 18:57

    SwampGuzzler on master

    tabsProject initial commit Oldest Parent inital commit Merge pull request #230 from LP… (compare)

  • Aug 17 2014 18:57
    SwampGuzzler closed #230
  • Aug 17 2014 18:56
    SwampGuzzler commented #230
  • Aug 13 2014 22:51

    SwampGuzzler on master

    Added oldestlivingparent assign… Added tabs with ajax assignment added tab-angular assignment and 1 more (compare)

  • Aug 13 2014 22:51
    SwampGuzzler closed #232
  • Aug 13 2014 22:51
    SwampGuzzler commented #232
  • Aug 13 2014 19:01
    toastynerd closed #228
  • Aug 13 2014 18:52
    toastynerd closed #229
  • Aug 13 2014 18:52

    toastynerd on master

    adding assignment 5.1 adding 5.1 adding solution for last assign… and 1 more (compare)

  • Aug 13 2014 18:52
    toastynerd commented #229
  • Aug 13 2014 03:28

    hankyates on master

    Find oldest living parents from… Tab Example with GET request fr… Tab Example by using Angularjs and 1 more (compare)

  • Aug 13 2014 03:28
    hankyates closed #217
Martin Genev
@mgenev
Tyler Morgan
@toastynerd
@jeffadelman8 lol, that’s the best big data implementation I’ve ever seen and probably ever will see.
Larry Scroggins
@lwscroggins
@mgenev referring to "foo bar"... foo bar == fubar == fouled up beyond all recognition (or whatever your favorite f-word is
Scott Romney Burbidge
@sburbidg
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
@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
For future homework assignments, any chance we can see the correct (best-practice) solution by the next class?
Joaquin Guardado
@macikokoro
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
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
What is Cyclomatic complexity number for this function is 1?
Martin Genev
@mgenev
@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
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
@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
goodness
that one is going to take a littl ebit to work through
Jeff Battema
@thewocky
@hankyates How do you mean?
Hank Yates
@hankyates
its very detailed :)
using console logs might help make it a little more clear
Jeff Battema
@thewocky
I'll do that next time...
sunny yuen
@yuens1002

i don't understand why the order of the function call inside the

_.compose(greet, format);

DOESNT matter...

var realNameMap = {
  'pebbles': 'penelope'
};

var format = function(name) {
  name = realNameMap[name.toLowerCase()] || name;
  return name.charAt(0).toUpperCase() + name.slice(1).toLowerCase();
};

var greet = function(formatted) {
  return 'Hiya ' + formatted + '!';
};

var welcome = _.compose(format, greet);
Martin Genev
@mgenev
@yuens1002 you could open the function definition and find out i'm sure ;)
in the underscore sourcecode look for .compose and see how they handle it
the truth is the docs really make it sound like it does matter...
Martin Genev
@mgenev
// Returns a function that is the composition of a list of functions, each
// consuming the return value of the function that follows.
_.compose = function() {
var args = arguments;
var start = args.length - 1;
return function() {
var i = start;
var result = args[start].apply(this, arguments);
while (i--) result = args[i].call(this, result);
return result;
};
};
hmm how do you guys paste code so nicely
Hailey L. Petway
@hlpetway
use three ``` to open and close the code I think
Martin Genev
@mgenev
{code}
sweet
thanks
Ivan Storck
@ivanoats
also
⇧⏎ (shift-enter)
can make multi-line
messages. So put the on a single line, then ⇧⏎ and finally close with on a separate line
arg.. how to escape the back ticks?!
```
backslash, of course 😝
Hailey L. Petway
@hlpetway
Is there a cheat sheet for this? I'd like to bookmark it :)
and for more cool stuff
Joe Elsey
@joeelsey
So we're definitely supposed to use node for assignment 5.1?
Oh. The required reading link for 5 is 404 atm.
Martin Genev
@mgenev
@joeelsey you're not supposed, i just thought it's a good time to introduce it. if you copy/paste that link it should work
or google its title
Joe Elsey
@joeelsey
Ah. Well then I just got some practice installing node again. Good times. Thanks.
Martin Genev
@mgenev
node is good for you ;)
Joe Elsey
@joeelsey
I'm happy I was able to install it without too much fumbling around.
Scott Romney Burbidge
@sburbidg
fumble bee