Jump to content


Photo

Node meeting 1::Node homework


  • Please log in to reply
25 replies to this topic

#1 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 08 May 2015 - 07:16 AM

Thanks again to everyone who attended our first node meeting! It was a great fun :)

 

For those who couldn't make it, here's a summary of what we've been doing. 

We have installed a node tutorials https://github.com/w...er/learnyounode and have gone through most of the exercises.

 

We established some of us (mainly me! :p) needed time to get their head around the questions. Those who couldn't make it to the meeting, can also have a go.

 

Hence this thread, we can post our answers here, when we're ready and discuss.

 

To keep the thread organised, maybe we could post our complete answers when we finish all of them :)

What do you think?

 

 



#2 Lyndsey

Lyndsey

    Web Guru

  • Moderators
  • PipPipPipPipPip
  • 1,063 posts
  • Gender:Female
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 07:25 AM

It was great, really enjoyed, thanks guys :)

 

Posting our answers is probably a good idea. Not sure if it should be when it's all complete or for each one. We could discuss how we approached the challenge and compare the differences in each other's attempts. Of course, the tutorial itself gives you the correct answer once the challenge passes anyway.



#3 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 08 May 2015 - 07:29 AM

Could be for each one - the only thing is that way might put pressure on people to complete in  a certain time?



#4 Lyndsey

Lyndsey

    Web Guru

  • Moderators
  • PipPipPipPipPip
  • 1,063 posts
  • Gender:Female
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 07:53 AM

Yeah I guess. Perhaps we can use this as a way for us to ask questions or get help on any of the challenges, for those who have completed them can give advice or whatever.



#5 NOCK

NOCK

    Chief Troll Hunter

  • Privileged
  • PipPipPipPipPip
  • 1,563 posts
  • Gender:Male
  • Location:Eastbourne, East Sussex
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 07:55 AM

Which question number did you get up to in the end then? I thought you only got to 5 when I read through the convo?



#6 Lyndsey

Lyndsey

    Web Guru

  • Moderators
  • PipPipPipPipPip
  • 1,063 posts
  • Gender:Female
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 08:26 AM

I completed up to number 4. The asynchronous newline counter. Where did you get to Nock?



#7 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 08:32 AM

I got to Q5 then got distracted by the chat :D



#8 NOCK

NOCK

    Chief Troll Hunter

  • Privileged
  • PipPipPipPipPip
  • 1,563 posts
  • Gender:Male
  • Location:Eastbourne, East Sussex
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 08 May 2015 - 12:18 PM

I can't remember whether I completed Q5 or not. I'm on either Q5 or Q6.



#9 mantis

mantis

    Privileged

  • Privileged
  • PipPipPipPip
  • 967 posts
  • Gender:Female
  • Location:Oooh la la land
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 08 May 2015 - 01:59 PM

Ah, I don't feel so bad then. I eventually got through Q4 but I'm reviewing my javascript now. Maybe we could post if we get stuck? Otherwise if its right we can just go on. I think if we posted the answers too soon I, for one, wouldn't bother to muddle through them all on my own.



#10 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 09 May 2015 - 06:07 AM

For any of those that were struggling with callbacks I wrote a short blogpost on them: http://rbrtsmith.com...ript-Callbacks/  I hope it might help :)



#11 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 09 May 2015 - 07:00 AM

Anyone done Q5?  Mine is failing the test, but when I test it myself passing a directory and extension it filters out the results by extension just fine.  I have a sneaky feeling it's because I'm running windows :/

 

Edit, figured it out, -- Don't forget to append the '.' to the beginning of the file extension :)


Edited by rbrtsmith, 09 May 2015 - 07:12 AM.


#12 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 09 May 2015 - 09:51 AM

If any of you need any help drop me a PM and I'll try to help :)


Edited by rbrtsmith, 10 May 2015 - 10:57 AM.


#13 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 10 May 2015 - 12:06 PM

Slow progress here - I solved Q2 (passed), Q3 and Q4 on my own, however Q3 and 4 didn't pass, although imo my solutions return the correct number of lines.

Getting my head around 5 now...



#14 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 10 May 2015 - 12:40 PM

Q5 sort of solved in the sense I am filtering list of files within a specific folder by extension name - however my solution won't pass, because it's not the right solution for the question.



#15 mantis

mantis

    Privileged

  • Privileged
  • PipPipPipPip
  • 967 posts
  • Gender:Female
  • Location:Oooh la la land
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 10 May 2015 - 01:00 PM

I had the opposite happen with Q3 and Q4. They returned the wrong number of lines but passed. Or maybe I just can't count. 



#16 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 10 May 2015 - 01:20 PM

I've just finished them now.  I didn't wanna post answers on here (Spoiler!) but I've created a repo on GitHub with my answers 

https://github.com/r...-node-solutions

 

Would be good to compare with other guys solutions to see how they compare, mine are were often different to the official solutions but still passed the verifications.



#17 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 10 May 2015 - 01:28 PM

I won't look :p I want to understand it for myself.



#18 rbrtsmith

rbrtsmith

    ReferenceError

  • Privileged
  • PipPipPipPipPip
  • 3,863 posts
  • Gender:Male
  • Location:Manchester, UK
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 10 May 2015 - 01:34 PM

I won't look :p I want to understand it for myself.

Feel free to PM if you want hints :)



#19 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 10 May 2015 - 03:47 PM

Q: 1,2,3,4,5,6 - understood, completed and passed :) 



#20 citypaul

citypaul

    Privileged

  • Privileged
  • PipPipPipPip
  • 809 posts
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 10 May 2015 - 04:31 PM

Don't forget there are some stand alone JS courses on there too. There's a basic one here (javascripting): http://nodeschool.io/#javascripting and a more advanced one here (functional javascript): http://nodeschool.io...ionaljavascript


Edited by citypaul, 10 May 2015 - 04:37 PM.


#21 D4Y0

D4Y0

    Privileged

  • Privileged
  • PipPipPipPip
  • 929 posts
  • Gender:Male
  • Location:St Neots, England
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 11 May 2015 - 11:55 AM

I have just completed upto 10 after lunch ill see how far i can get with the last few

Edited by D4Y0, 11 May 2015 - 11:56 AM.


#22 Lyndsey

Lyndsey

    Web Guru

  • Moderators
  • PipPipPipPipPip
  • 1,063 posts
  • Gender:Female
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 11 May 2015 - 04:49 PM

Hi guys,

 

Posting my answers on GitHub too. I'm now on Q6.

 

I will need to go back and refactor Q5 though because it's so different to what they were expecting and I obviously didn't read the Q good enough lol.

 

Nice one Robert for completing them already! And thanks Paul for the JS Links. Going to have a look at some of those too :)

 

https://github.com/l...unode-solutions


Edited by Lyndsey, 11 May 2015 - 04:50 PM.
Forgot Link


#23 NOCK

NOCK

    Chief Troll Hunter

  • Privileged
  • PipPipPipPipPip
  • 1,563 posts
  • Gender:Male
  • Location:Eastbourne, East Sussex
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 12 May 2015 - 06:44 AM

I've been meaning to get back onto this but kinda joined Code Eval and have been using spare 5 minutes here and there to work through that instead. *slaps self on wrist*. I'll try and get back to it ASAP. Did we say we were meeting every other Thursday or did I imagine that?



#24 Lyndsey

Lyndsey

    Web Guru

  • Moderators
  • PipPipPipPipPip
  • 1,063 posts
  • Gender:Female
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 12 May 2015 - 06:46 AM

I've been meaning to get back onto this but kinda joined Code Eval and have been using spare 5 minutes here and there to work through that instead. *slaps self on wrist*. I'll try and get back to it ASAP. Did we say we were meeting every other Thursday or did I imagine that?

 

It's hard to stop using CodeEval after you've completed the first few. I found it really addictive at first!



#25 mantis

mantis

    Privileged

  • Privileged
  • PipPipPipPip
  • 967 posts
  • Gender:Female
  • Location:Oooh la la land
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 12 May 2015 - 07:24 AM

 

 

It's hard to stop using CodeEval after you've completed the first few. I found it really addictive at first!

 

I've never tried it. I guess now isn't the time to start ;)

 

On Question 6 and published my answers here https://github.com/m...ols/tree/master I'm not worrying about refactoring for now. Hopefully I'll get through another couple questions before Thursday but I won't have much time.


Edited by mantis, 12 May 2015 - 07:25 AM.


#26 teodora

teodora

    Drama Queen

  • Moderators
  • PipPipPipPipPip
  • 3,218 posts
  • Gender:Female
  • Location:The Beach
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 12 May 2015 - 09:53 AM

For the record - I completed Q7 and 8 last night - here are all my answers https://github.com/T...unode-solutions

Will continue when I get a chance :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users