These are chat archives for FreeCodeCamp/Help

19th
Mar 2015
Evan Davis
@davisec52
Mar 19 2015 00:09
Hi. I just wanted to make sure I understand the expectations for the Get Started with Node.js challenge. I've completed the first chapter and it appears that we have to subscribe to codeschool to complete the course. I want to confirm that this is the expectation, at this point, that we subscribe to codeschool.
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:10
@davisec52 Did you use the pass?
Evan Davis
@davisec52
Mar 19 2015 00:12
@piecedigital Codeschool is no longer offering the pass.
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:13
Oh. Hmm, I can't immediately think of any other resources that teach node
Evan Davis
@davisec52
Mar 19 2015 00:13
It is not that big of a deal for me
Julie Myers
@BlueOceanView
Mar 19 2015 00:14
Yup, CodeSchool expired the pass. bummer.
Evan Davis
@davisec52
Mar 19 2015 00:14
I just wanted to be be sure that we would need to subscribe.
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:15
Well at this point if you want to learn node through Code School you'd need to but that was not what we intended.
Evan Davis
@davisec52
Mar 19 2015 00:16
@piecedigital Ok. I downloaded the Node Succinctly book from syncfusion, which looks helpful. Are you familiar with that?
Also, what about nodeschool.io?
Cristián Berríos
@crisberrios
Mar 19 2015 00:16
succintly series are nice books
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:16
I'm not. I was able to use the pass, 2 months ago.
Yosi
@jparkton
Mar 19 2015 00:17
awesome resource
Julie Myers
@BlueOceanView
Mar 19 2015 00:17
The question is, can he pass the challenge by not learning from codeschool?
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:17
I wouldn't call node schools a "learning" resource but it's a good follow up good after
Evan Davis
@davisec52
Mar 19 2015 00:17
@jparkton Right. Looks good. @piecedigital Do you know if this covers the same or similar ground that fcc had in mind at this point in the challenges hierarchy?
Yosi
@jparkton
Mar 19 2015 00:17
yes
@piecedigital and why not?
Suzanne Atkinson
@AdventureBear
Mar 19 2015 00:18
@crisberrios link?
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:19
@davisec52 The book or nodeschool?
Evan Davis
@davisec52
Mar 19 2015 00:19
nodeschool
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:19
@jparkton I think nodeschool is a better follow to having learning about a few of the concepts.
Yosi
@jparkton
Mar 19 2015 00:20
@piecedigital I do not agree
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:20
Certainly you could use nodeschool and your google-fu to complete the node school challenges.
Yosi
@jparkton
Mar 19 2015 00:20
I used nodeschool and passed them all
no googles required
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:21
If you new to programming the experience may not be as smooth.
Suzanne Atkinson
@AdventureBear
Mar 19 2015 00:21
how about goggles?
Yosi
@jparkton
Mar 19 2015 00:21
I was completely new to node at that time
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:21
I mean programming in general.
Completely.
Evan Davis
@davisec52
Mar 19 2015 00:22
I am pretty new to programming, though I was able to complete the first chapter challenges.
@crisberrios I actually have that book open on kindle at the moment. Does it cover the same territory and is it still current? I think was published in 2012
Yosi
@jparkton
Mar 19 2015 00:23
@piecedigital what concepts do these video / paid courses have that cannot be learned by following the instructions?
Cristián Berríos
@crisberrios
Mar 19 2015 00:24
IDK, callbacks are still callbacks
Yosi
@jparkton
Mar 19 2015 00:24
^
Cristián Berríos
@crisberrios
Mar 19 2015 00:24
but if it covers express, then 3.0 to 4.0 is a big change
Yosi
@jparkton
Mar 19 2015 00:24
It does
idk if they have it updated but I would assume yes
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:25
@jparkton Nodeschool gives you an objective.
Code School shows you an objective and a way to solve it.
Some people learn better that way.
Yosi
@jparkton
Mar 19 2015 00:26
## HINTS

To make Node.js program, create a new file with a .js extension and start writing JavaScript! Execute your program by running it with the
node command. e.g.:

    $ node program.js

You can write to the console in the same way as in the browser:

    console.log("text")

When you are done, you must run:

    $ learnyounode verify program.js
That seems pretty simple imo
Darryl Dixon - Piece Digital
@piecedigital
Mar 19 2015 00:26
Well, of course that is. But beyond that.
Yosi
@jparkton
Mar 19 2015 00:29
We will just have to agree to disagree
Erica
@Buzzlightyear90
Mar 19 2015 00:37
greetings everyone. I have yet another problem
I am on bonfire and I can't seem to get that little escape character of "I'm a little tea pot" to leave
```
function titleCase(str) {
  var x = str.toLowerCase();
  var y = x.split(" ");

  var string = "";

  for (var i = 0; i<y.length; i++){

    var f = y[i][0];
    f = f.toUpperCase();
    string += f;
    for (var j = 1; j<y[i].length; j++){
        string += y[i][j];
    }

    string += " ";

  }
  return string.replace(/[^\w\s]/gi, "\'");
}

titleCase("I'm a little tea pot");
Cristián Berríos
@crisberrios
Mar 19 2015 00:40
what is the expected result?
Erica
@Buzzlightyear90
Mar 19 2015 00:41
'I\'m A Little Tea Pot '
I\'m A Little Tea Pot
Cristián Berríos
@crisberrios
Mar 19 2015 00:42
for (var j = 1; j<y[i].length; j++){
        string += y[i][j];
you could use substr
does it ask to escape '?
I think `string += " "; does insert an extra space at the end, maybe that's causing an error
Erica
@Buzzlightyear90
Mar 19 2015 00:46
it shows in the bonfire that the result is supposed to be "I'm a little Tea Pot" but my result brings "I\'m a Little Tea Pot"
I used that so the words can have spaces between each other
Renter
@MrRenter
Mar 19 2015 00:46
you can always use trim for whitespace
Cristián Berríos
@crisberrios
Mar 19 2015 00:47
return string.replace(/[^\w\s]/gi, "\'"); is adding the \'
Renter
@MrRenter
Mar 19 2015 00:47
you dont need to escape ' if you use "
only if you wanted to go "\""
Erica
@Buzzlightyear90
Mar 19 2015 00:50
@MrRenter but without it it looks like "Im a Little Tea Pot"
Cristián Berríos
@crisberrios
Mar 19 2015 00:51
I think you don't need to use replace at all
Erica
@Buzzlightyear90
Mar 19 2015 00:54
with or without replace, it still looks the same
and the substr function doesn't do anything and brings an error
nevermind
Cristián Berríos
@crisberrios
Mar 19 2015 00:56
I'll try your code to see what's wrong
As @MrRenter, trim is the solution
return string.trim(); replace last line with this
\ has nothing to do, it's just escaping it for display
it was the extra white space at the end
Erica
@Buzzlightyear90
Mar 19 2015 01:05
so trim removes excess white space.. and the \ has to be there. strange my browser console, did not show the \ now that I tried that
I guess I am learning new functions everyday
Sergej
@BSS555
Mar 19 2015 10:54
Hey, can I somehow get more freetime at codeschool.com?
Victor
@pahlsson
Mar 19 2015 10:59
I can offer a 2-day hall pass, and by using it I will also get two more free days :)
Sergej
@BSS555
Mar 19 2015 11:01
I had already 2 days hall pass. Will it work?
Victor
@pahlsson
Mar 19 2015 11:01
I has for me, yes
it*
Victor
@pahlsson
Mar 19 2015 11:12
looks like codeschool's hall pass program has ended! that means that the link at Challenge 36 also doesn't work anymore :|
Oleg
@OlegKuts
Mar 19 2015 12:31
@pahlsson 5 days ago hall pass worked for me
Julie Myers
@BlueOceanView
Mar 19 2015 12:36
It looks like codeSchool just shut down the free hall pass program. Oh, well.
Suzanne Atkinson
@AdventureBear
Mar 19 2015 14:25
I got lucky...just as my 48 hours was used up, they joined with that other group, and gave 72 hours free, and then I used a hll pass again
Christian
@crisxian
Mar 19 2015 16:05
the node and angular tutorials aren't available anymore?
Blake Johnston
@johnstonbl01
Mar 19 2015 17:06
the angular one is free, i believe
node is not free
Suzanne Atkinson
@AdventureBear
Mar 19 2015 18:58
Nodeschool is free though @quincyjones, good replacement?
Erica
@Buzzlightyear90
Mar 19 2015 20:40
is there something wrong with freecodecamp? I can't login and when I tried to reset the password it says the link expired