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

10th
Jul 2014
djlabowski
@djlabowski
Jul 10 2014 00:32
@hankyates that's just what I called it. animations library at ~60FPS. More accurate?
Matt
@mahenry926
Jul 10 2014 01:30
haha, I think the last _ killer was the iPod killer? How'd that go?
Hank Yates
@hankyates
Jul 10 2014 17:02
i need to make this assignment harder
yall are making this look easy
@PhillipBach33 you in here?
https://github.com/codefellows/sea-c16-javascript/pull/18/files it looks like you might need some help with you mark down
send me a pm
Matt
@mahenry926
Jul 10 2014 19:36
So, I could go full on nuts creating a massive class in JS, I guess? Is that a thing? Or is that usually left for Java/PHP/Whateverlanguageyouprefer?
CTownsdin
@CTownsdin
Jul 10 2014 19:40
hi all o/
Hank Yates
@hankyates
Jul 10 2014 19:40
@mahenry926 go nuts make a class. whever you make is going to get critiqued though :P
hi @CTownsdin \o
Matt
@mahenry926
Jul 10 2014 19:45
so, if i call: var Person = function( firstName, lastName, parentName, age) and age is undefined, is that "optional?" or do i need to do like if age, this.age = age?
Hank Yates
@hankyates
Jul 10 2014 19:47
all args are "optional" if you want to make sure its there then you have to do a check for it
Ivan Storck
@ivanoats
Jul 10 2014 20:21
^^ this is a really funny thing about JavaScript, BTW.
CTownsdin
@CTownsdin
Jul 10 2014 20:24
approximately how full is the JS Dev Accelerator that starts up after foundations II finishes?
Ivan Storck
@ivanoats
Jul 10 2014 20:29
@CTownsdin depends how many of you apply (hope you all will :smile: )
it’s rolling admissions, so if you want to start your application, please do go ahead
CTownsdin
@CTownsdin
Jul 10 2014 20:30
@ivanoats yes, I'm wondering low long I can wait to make the decision
@ivanoats are these @ messages private?
Matt
@mahenry926
Jul 10 2014 20:31
no
Ivan Storck
@ivanoats
Jul 10 2014 20:31
no, you can PM me by clicking on my picture in the People section top right
CTownsdin
@CTownsdin
Jul 10 2014 20:31
kk
Matt
@mahenry926
Jul 10 2014 20:31
email lindy@codefellows and i think she can tell you
Mandi Grant
@MJGrant
Jul 10 2014 20:32
Where does the Accelerator "begin", skill-wise? I'm finding F2 is review for me so far, but I'm likely going into the Accelerator and I'd love to use this time to take on projects that will help me do well in the Accelerator. I'm working on an Angular-based recipe site right now. Is that the sort of thing that will help me prepare?
(I don't know what I don't know... :D )
Ivan Storck
@ivanoats
Jul 10 2014 20:33
@MJGrant that’s great preparation. If you’re comfortable with Angular, I would go ahead and apply.
Mandi Grant
@MJGrant
Jul 10 2014 20:34
Cool, thanks, Ivan. I haven't really been sure where I stand, but it sounds like I'm on track.
Matt
@mahenry926
Jul 10 2014 21:04
yeah, i'm thinking github is about as far away from good UX as it possibly gets. I have no idea what's happening now. I had a problem with something and now ... I have no idea.
Merge conflicts. You are dumb :)
Ivan Storck
@ivanoats
Jul 10 2014 21:14
have you all seen ungit yet? https://github.com/FredrikNoren/ungit
Tyler Morgan
@toastynerd
Jul 10 2014 21:14
@mahenry926 You have to remember that git was a solution to a very specific need: the ability to track changes in the linux kernel. It was designed to allow thousands of developers from all over the world to work on the same codebase without stepping on each other’s toes. While it is a little difficult to learn, it is designed to keep multiple developers from messing up each other’s code (hence, merge conflicts) and if they do allow them to see exactly where they diverged.
Ivan Storck
@ivanoats
Jul 10 2014 21:15
and the slightly crazy thing is, even Microsoft is using it now, too. I’m sitting here in Redmond and for the last half hour the teacher has been teaching a room of MS devs that git is the shit
it’s part of TFS / Visual Studio now too
Tyler Morgan
@toastynerd
Jul 10 2014 21:15
@ivanoats that’s awesome
Matt
@mahenry926
Jul 10 2014 21:17
the purpose behind it makes sense. what i can't tell is if there actually is a merge conflict (and if so what). It says it does, but I'm not sure if it's because no one's tried to accept the changes yet
Tyler Morgan
@toastynerd
Jul 10 2014 21:18
post a link to your pull request
Matt
@mahenry926
Jul 10 2014 21:18
codefellows/sea-c16-javascript#75
Tyler Morgan
@toastynerd
Jul 10 2014 21:19
Yeah, looks like you removed teh README.md
from the students folder
Matt
@mahenry926
Jul 10 2014 21:20
and thus the bad UX. it's telling me there are merge conflicts when there are none :) NBD, just something I notice as a UX designer. haha
Tyler Morgan
@toastynerd
Jul 10 2014 21:20
Well, there are merge conflicts, the removal of that file, to get them to show on your local machine, you need to pull in the codefellows remote to your local branch so it can compare the two
Matt
@mahenry926
Jul 10 2014 21:21
the plot thickens ... lol
Tyler Morgan
@toastynerd
Jul 10 2014 21:21
otherwise it can’t tell you about the merge conflicts because it’s not comparing your fork to the original except when you make the pull request
Matt
@mahenry926
Jul 10 2014 21:23
this sounds like to fix the merge conflict, i have to start over.
Tyler Morgan
@toastynerd
Jul 10 2014 21:24
You almost never have to start over with git, I’m posting directions on your pull request now
Arielle Wilson
@jwarielle
Jul 10 2014 21:48
Why does this switch statement always revert to the default option?
Oops, thought I had pasted it. Here it is:
Arielle Wilson
@jwarielle
Jul 10 2014 21:55
function Person(name, pLN, age) {
this.name = name;
this.pLN = pLN;
this.age = age;
this.aliveOrNot = function() {
switch(age) {
case (age === 0):
console.log("You have not yet been born.");
break;
case (age >= 120):
console.log("That's impossible. You cannot be that old!");
break;
case (age === undefined || ""):
console.log("You do not exist");
break;
default:
console.log("Your name is " + name + ", your parent's name is " + pLN + ", and your age is " + age + ".");
}
}
}
joe = new Person("Joe", "Blair", 120);
joe.aliveOrNot();
Mandi Grant
@MJGrant
Jul 10 2014 21:57
What happens if you set up your conditionals to check this.age instead of age?
Scott Romney Burbidge
@sburbidg
Jul 10 2014 21:59
I am trying to find something in "git push --help" in the terminal. Is there a way to search through these type of things instead of just pushing the down arrow over and over again.
Ivan Storck
@ivanoats
Jul 10 2014 21:59
y’all should paste to gist.github.com or use the
backticks
`
“```"
@sburbidg yes, it uses vim keybindings, so / to search
Scott Romney Burbidge
@sburbidg
Jul 10 2014 22:01
cool. Thanks Ivan
Ivan Storck
@ivanoats
Jul 10 2014 22:01
space for pagedown, gg for top, G for bottom, all the vim goodness
Joaquin Guardado
@macikokoro
Jul 10 2014 22:03
@ivanoats how do we paste gists on here. Is it just copy and paste?
Scott Romney Burbidge
@sburbidg
Jul 10 2014 22:09
Okay so I was playing around with the wiki part of github but I didn't realize it would be the wiki for the whole project and not just my file. I'm assuming thats not something we want. Problem is it won't let me delete the home page, any ideas on how to do that.
Ivan Storck
@ivanoats
Jul 10 2014 22:37
@macikokoro just paste the gist url, e.g. https://gist.github.com/ivanoats/642b82cfd1a5437d511e
Joaquin Guardado
@macikokoro
Jul 10 2014 22:37
@ivanoats Wow! That's awesome thanks Ivan.
BrockBeaudry
@BrockBeaudry
Jul 10 2014 22:45
@jwarielle I think it's considered back practice to use conditions in switch statements, that's not their intended use. I'd just replace it with an if-else, but there's a workaround for this in the second answer if you really want to go that route: http://stackoverflow.com/questions/4082204/javascript-conditional-switch-statement
Ivan Storck
@ivanoats
Jul 10 2014 22:47
@jwarielle your switch condition should match the expression - not an actual statement https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch
e.g.
switch (age) {
  case 0:
    //do something
    break;
  case 1:
…
}
@BrockBeaudry yes, that SO has some options. It probably is easier to just use if / else statements
Joaquin Guardado
@macikokoro
Jul 10 2014 23:38
@ivanoats Hi! I was wondering if you could help me with a question. In the assignment we have to have a constructor that takes a parent name. Do you think you could help me understand this, I don't speak fluent JavaScript lingo here.
@MJGrant or maybe you could help me with this Mandi.
Ivan Storck
@ivanoats
Jul 10 2014 23:39
i think he just means a string parameter for the function that is the constructor
Mandi Grant
@MJGrant
Jul 10 2014 23:40
@macikokoro I asked Martin about this yesterday, whether I should use a string or another person object - he said either works. A string would be simplest. You could pass "Charlie" as the parent and it'll get set as this.parent's value.
Joaquin Guardado
@macikokoro
Jul 10 2014 23:41
@ivanoats @MJGrant thanks guys that was very helpful
Ivan Storck
@ivanoats
Jul 10 2014 23:41
http://hankyates.github.io/F2-javascript-textbook/class_2/person.html - this is an example of a Person constructor
Joaquin Guardado
@macikokoro
Jul 10 2014 23:54
@MJGrant Mandi if you don't mind me asking what are some sources to learn angular.js
The tutorial section leads to one of the code school modules.