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

4th
Jun 2014
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:19
Does the Ruby class use GitHub?
Hailey L. Petway
@hlpetway
Jun 04 2014 01:19
I'm sure they do
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:20
UX?
Hailey L. Petway
@hlpetway
Jun 04 2014 01:20
Probably so, they might also be in the Code Fellows gitter.
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:20
I looked in there dont see many people
Hailey L. Petway
@hlpetway
Jun 04 2014 01:21
Maybe find them on linkedin and see if they have their github on there.
I can't wait to see what you guys come up with for data visualization.
Ivan Storck
@ivanoats
Jun 04 2014 01:37
yes - ruby, and UX are turning in assignments via pull requests
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:40
can we get their class rosters too?
I already failed and lost the emails of our non-javascript members :(
Ivan Storck
@ivanoats
Jun 04 2014 01:41
Rails hangs out in #codefellows on IRC
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:41
but I would rather have their gitHub accounts to get them on gitter.
ok great
Ivan Storck
@ivanoats
Jun 04 2014 01:41
I don’t know if they did the Google Doc for their class
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:41
what about UX?
Ivan Storck
@ivanoats
Jun 04 2014 01:41
UX does use Gitter
but I’m not sure which repo it’s based off of
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:42
ok
Thanks!
Kevin Stephens
@kevinmstephens
Jun 04 2014 01:47

codefellows on freenode right?

oops accidental markup
Kevin Stephens
@kevinmstephens
Jun 04 2014 15:42
On page 76 for Inserting New Nodes, doesn't the find function while loop need a condition to exit the while loop if the end of the list is reached?
As it is written it only exits if the node is found
Kevin Stephens
@kevinmstephens
Jun 04 2014 15:55
So a linked list is implemented as a big nested object essentially??
{
    head: {
        element: 'head',
        next: {
            element: 'something',
            next: {
                element: 'something else',
                next: {
                    element: 'end'
                    next: null
                }
            }
        }
    }
}
Tyler Morgan
@toastynerd
Jun 04 2014 16:15
You can think of it as a nested object but really it's a discontinuous number of objects that have pointers to each other.
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:15
OK. That makes sense because you also can't draw a doubly linked list in this format
Tyler Morgan
@toastynerd
Jun 04 2014 16:16
yeah, that would be difficult
You're probably not going to use a linked list outside of an interview unless it's to implement another datastructure like a queue or stack but Linked List questions are one of the most common interview questions you'll be asked
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:18
I had a question on exercise 1 and 2. It looks like the advance and back functions are meant to be properties of the node objects. However, from the node object you can only "see" in front of you. It doesn't have a way to access objects behind it to change their next properties.
So it looks like they need to actually be properties of the list class and have form function advance (item, moves) and function back (item, moves)
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:23
If it's a doubly linked list then they could be methods of the node object, but not in a standard linked list
OR. you can give every node object a reference back to the list object that it's a part of.
Thoughts?
Ivan Storck
@ivanoats
Jun 04 2014 16:35
@kevinmstephens traditionally .. a node has a next property
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:36
OK so problem 1 and 2 cant be methods of the node
they have to be methods of the list and take a node and a number of steps to move it as a property?
Tyler Morgan
@toastynerd
Jun 04 2014 16:42
That sounds about right, let me read the assignment real quick
Yeah, I would go with a singly linked list and create a back function for it.
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:44
That takes a node and a number of steps to move
Tyler Morgan
@toastynerd
Jun 04 2014 16:46
I would implement it at the list level instead of the node level and use the current node as the starting node
So just take the number of steps and use the current node
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:47
The list class doesn't hold a reference to the current node as is
we would have to add that property to the list class and then modify all of our methods to update the currentNode reference
Tyler Morgan
@toastynerd
Jun 04 2014 16:50
Yeah, that seems like a pretty big oversight in this linked list implementation
You can implement it either way you want but I would suggest using the current node method
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:52
OK I will add currentNode property to the list class and modify the find function to update the currentNode property. Thanks Tyler!
Tyler Morgan
@toastynerd
Jun 04 2014 16:53
Yeah, also, reading over the code leading up to that problem it looks like it might want you to use a doubly linked list
While I would suggest implementing it in a singly linked list, just to practice that, feel free to use a doubly linked list.
Kevin Stephens
@kevinmstephens
Jun 04 2014 16:54
OK
Ivan Storck
@ivanoats
Jun 04 2014 16:56
for each is only in spider monkey - I would consider it a code smell :thumbsdown:
Ivan Storck
@ivanoats
Jun 04 2014 17:06
cfbot image me great success
Kevin Stephens
@kevinmstephens
Jun 04 2014 17:08
cfbot good morning
Ivan Storck
@ivanoats
Jun 04 2014 17:09
we have a web app for keeping track of our projects, register your team there: http://app-week.herokuapp.com/
Tyler Morgan
@toastynerd
Jun 04 2014 17:10
cfbot image an adorable kitten
Kevin Stephens
@kevinmstephens
Jun 04 2014 17:20
where do we get a list of cfbot commands?
Hailey L. Petway
@hlpetway
Jun 04 2014 17:22
cdfbot help
Kevin Stephens
@kevinmstephens
Jun 04 2014 17:31
This message was deleted
cfbot help
CFBot is a Hubot
@cfbot-the-hubot
Jun 04 2014 17:31
Events:
debug - {user: <user object to send message to>}
cfbot <user> doesn't have <role> role - Removes a role from a user
cfbot <user> has <role> role - Assigns a role to a user
cfbot <user> is a badass guitarist - assign a role to a user
cfbot <user> is not a badass guitarist - remove a role from a user
cfbot animate me <query> - The same thing as image me, except adds a few parameters to try to return an animated GIF instead.
cfbot die - End cfbot process
cfbot echo <text> - Reply back with <text>
cfbot fake event <event> - Triggers the <event> event for debugging reasons
cfbot help - Displays all of the help commands that cfbot knows about.
cfbot help <query> - Displays all help commands that match <query>.
cfbot image me <query> - The Original. Queries Google Images for <query> and returns a random top result.
cfbot map me <query> - Returns a map view of the area returned by query.
cfbot mustache me <query> - Searches Google Images for the specified query and mustaches it.
cfbot mustache me <url> - Adds a mustache to the specified URL.
cfbot ping - Reply with pong
cfbot pug bomb N - get N pugs
cfbot pug me - Receive a pug
cfbot show storage - Display the contents that are persisted in the brain
cfbot show users - Display all users that cfbot knows about
cfbot the rules - Make sure cfbot still knows the rules.
cfbot time - Reply with current time
cfbot translate me <phrase> - Searches for a translation for the <phrase> and then prints that bad boy out.
cfbot translate me from <source> into <target> <phrase> - Translates <phrase> from <source> into <target>. Both <source> and <target> are optional
cfbot what role does <user> have - Find out what roles are assigned to a specific user
cfbot who has admin role - Find out who's an admin and can assign roles
cfbot who is <user> - see what roles a user has
cfbot youtube me <query> - Searches YouTube for the query and returns the video embed link.
ship it - Display a motivation squirrel
Kevin Stephens
@kevinmstephens
Jun 04 2014 17:32
cfbot who is kevinmstephens
cfbot show users
cfbot image me pug
cfbot image pug
I don't get it. haha
Tyler Morgan
@toastynerd
Jun 04 2014 17:34
cfbot pug bomb 5
cfbot ping
Kyle Warbis
@UWarbs
Jun 04 2014 17:35
cfbot is a fickle mistress
Josh Cunningham
@joshcanhelp
Jun 04 2014 17:35
cfbot FU
Kevin Stephens
@kevinmstephens
Jun 04 2014 17:35
haha
Ivan Storck
@ivanoats
Jun 04 2014 17:36
cfbot gets a little overwhelmed sometimes
:shipit:
Tyler Morgan
@toastynerd
Jun 04 2014 17:42
Hey everyone, feel free to skip exercise number 5, it's already a doubly linked list. If you want the practice, do it is a single linked list.
Stephen Boles
@stephenboles
Jun 04 2014 18:10
@joshcanhelp Thank you.
http://goo.gl/UEXMvm - An article from Cornell College on how to study.
...books that is.
(not Cornell University, but still a darn fine school, if I do say so my darn self)
Ivan Storck
@ivanoats
Jun 04 2014 18:14
I wrote a review on Amazon, too
Ivan Storck
@ivanoats
Jun 04 2014 18:23
So, call me crazy, but I just registered for this free 2 day Microsoft MVC bootcamp in Redmond in July:
http://firebootcamp.com
I have never used MS stuff and I feel like I’d like to be aware of the basics.
Ivan Storck
@ivanoats
Jun 04 2014 18:36
@tylermorgan86 building a clojure interpreter with JavaScript: http://honza.ca/2013/05/building-a-lisp-to-javascript-compiler
Tyler Morgan
@toastynerd
Jun 04 2014 18:41
@joshcanhelp hahaha, awesome
@ivanoats lisp to javascript article looks cool. Holy crap, the FireBootCamp website is built on wordpress, that seems like a red flag to me.
Josh Cunningham
@joshcanhelp
Jun 04 2014 18:47
@tylermorgan86 @ivanoats If you have a sec, can you tell me what's going wrong here? I can wait until class or after if an in-person explanation works better (had to get my bike to the shop this AM)
Tyler Morgan
@toastynerd
Jun 04 2014 18:53
yeah, we can talk about that in class
Nicholas Harberg
@harberg
Jun 04 2014 19:38
Hello all. Looking for a JS person to work on my donations app. There will be needs for the full stack on this one. So, if you are interested in working with MongoDB, Angular, Payment APIs, and User Authentication...come talk to me.
Loads of fun (and stress) is promised.
Ivan Storck
@ivanoats
Jun 04 2014 19:59
2 slides PDF’s added to today’s Asana task: https://app.asana.com/0/11169835259592/12432593123392
SICP