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

8th
Jul 2014
Just realized you would need to get to the repo to fnd this link. So not very helpful.
Scott Romney Burbidge
@sburbidg
Jul 08 2014 03:52 UTC
im in class
Matt
@mahenry926
Jul 08 2014 03:52 UTC
i'm in class, too!
Scott Romney Burbidge
@sburbidg
Jul 08 2014 03:56 UTC
fun
Scott Romney Burbidge
@sburbidg
Jul 08 2014 04:02 UTC
bye everyone, drive or ride or walk safe
Joe Elsey
@joeelsey
Jul 08 2014 05:05 UTC
Confirming the parking garage was $2.44.
Didn't even make sense because it doesn't match up with the pricing on the sign.
Trying to not treat this like Skype. I found this website helped concerning tonight's homework. http://www.howtocreate.co.uk/xor.html
Stephanie Lingwood
@stephanielingwood
Jul 08 2014 05:41 UTC
(Spoiler alert for xor code.) Okay, went and pulled this piece of beauty from Jeff Adelman. What are the ? and : doing? Tried to google it and it's surprisingly hard to google special characters. ```javascript +var preferredName = function(x, y) {
  • return (!!x == !!y) ? false : x || y;
    +};```
var preferredName = function(x, y) {
return (!!x == !!y) ? false : x || y;
};
var preferredName = function(x, y) {
return (!!x == !!y) ? false : x || y;
};
Aha! Third time's a charm.
Joaquin Guardado
@macikokoro
Jul 08 2014 06:09 UTC
@hankyates Hank could you please explain the homework a little more. I got home and figured out that I wasn't very clear.
Hank Yates
@hankyates
Jul 08 2014 06:41 UTC
looks good @stephanielingwood
Matt
@mahenry926
Jul 08 2014 06:42 UTC
man, this chat need spoiler tags ... lol.
Hank Yates
@hankyates
Jul 08 2014 06:43 UTC
@macikokoro have a look at the snippet from @stephanielingwood above that's the idea behind the assignment. if you need help on what a xor is checkout http://en.wikipedia.org/wiki/Xor
Jeff Adelman
@jeffadelman8
Jul 08 2014 06:43 UTC
@stephanielingwood what i'm using in the code you refreneced is called a ternary (or conditional) operator. You can read more about what it does here... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator
Hank Yates
@hankyates
Jul 08 2014 06:44 UTC
@mahenry926 for simple stuff like this assignment the answer can be concise. make sure you understand what's going on in the code though. most times when you open a PR youll be asked to explain a certain part of the code
Jeff Adelman
@jeffadelman8
Jul 08 2014 06:46 UTC
A few things should be said:
  1. My first go at this assignment was 15 or 20 lines of code and it took lots of thought and hard work to get it down to 1 line.
  2. x and y are generally horrible names for variables and/or parameters in a function, I should have used something more descriptive
Tyler Morgan
@toastynerd
Jul 08 2014 07:04 UTC
If anyone is interested, here is a decent introduction to working with the command line http://code.tutsplus.com/tutorials/the-command-line-is-your-best-friend--net-30362
Hank Yates
@hankyates
Jul 08 2014 07:09 UTC
@toastynerd wanna add that to the readme on the repo ?
Tyler Morgan
@toastynerd
Jul 08 2014 07:11 UTC
Yeah, I’ll send you a pull request in a couple of minutes
Tyler Morgan
@toastynerd
Jul 08 2014 07:22 UTC
Nevermind, forgot I was a contributor, just added it.
sunny yuen
@yuens1002
Jul 08 2014 08:35 UTC
i understand what exclusive or is but i don't really get what the assignment 2.2 is asking
Jeff Adelman
@jeffadelman8
Jul 08 2014 14:36 UTC
@yuens1002, so the code that's already written for you in exercize 2.2 defines two variables (FirstName and LastName) and calls a function called "preferredName" four times with FirstName and LastName as arguments and changing the value of FirstName and/or LastName between each call. All you have to do is write the function "preferredName" that would go at the top of the given code and if you were to run it with the given code it would return what's written in the comment below each call (false, "Hank," false, "Yates") (but don't include the given code in what you turn in). Make sense?
Scott Romney Burbidge
@sburbidg
Jul 08 2014 16:45 UTC
Okay, I've been tryin to create my folder in students but all it will do is create a file when I need a folder. I am guessing I am missing something simple but if anyone could help me out that would be awesome
Martin Genev
@mgenev
Jul 08 2014 16:51 UTC
@sburbidg are you using mac terminal? mkdir makes a folder, touch makes a file
you can also easily create them using finder, or if you're in windows - explorer
Jeff Battema
@thewocky
Jul 08 2014 17:20 UTC
I've committed a few changes since my first pull request last night, but I don't see them reflected on the class repo's Pull Request page (https://github.com/codefellows/sea-c16-javascript/pulls). Is that because once I submit a PR, subsequent commits get rolled up into the same PR till you pull it down? Anytime I make a new commit, I want to make a new pull request, but Git only seems to let me view the existing PR.
Martin Genev
@mgenev
Jul 08 2014 17:21 UTC
@thewocky i was wondering about that myself, i got the alert via email that you made a pull request, but I did not first see it in the list, now I do, do you?
Tyler Morgan
@toastynerd
Jul 08 2014 17:22 UTC
Yeah, the existing PR should have your changes if you push them to master and it hasn’t been merged yet. Looking at your pull request you have 6 commits including 2 today. https://github.com/codefellows/sea-c16-javascript/pull/31/commits
Mandi Grant
@MJGrant
Jul 08 2014 18:00 UTC
I wanted to test that my function actually did what I expected to, so I wrapped it in some HTML and user input prompts. This isn't what I'm turning in, since it's modified to be interactive and more than the assignment asked for, but it convinced me the thing was working. Gist here: https://gist.github.com/835e587a6950e77f9b89.git
Matt
@mahenry926
Jul 08 2014 18:03 UTC
For those of you who love markdown: http://mouapp.com
Ivan Storck
@ivanoats
Jul 08 2014 18:07 UTC
Anyone interested or already going to CascadiaJS in Portland July 31th-Aug 1st? Working on a student discount
Ivan Storck
@ivanoats
Jul 08 2014 18:47 UTC
So, we do have the student discount. It’s $225. (was ~$1500) LMK via DM or email if you want the code.
Stephanie Lingwood
@stephanielingwood
Jul 08 2014 18:50 UTC
For those that have been to CascadiaJS - would it be way over our heads, if all we've done is Foundations 1 and 2?
Matt
@mahenry926
Jul 08 2014 18:53 UTC
http://2013.cascadiajs.com it looks like you can go back in time and watch some of their presentations. might give you a good sense of how you'll be able to follow along this time.
Ivan Storck
@ivanoats
Jul 08 2014 19:05 UTC
This will be my first year, so I’d agree with @mahenry926 above.. also remember a lot of conference is networking and picking up the vibe of the community - not necessarily the knowledge transfer. And you’ll be mostly done with the night class by then
Hank Yates
@hankyates
Jul 08 2014 19:26 UTC
the topics are pretty advanced but still worth while
Martin Genev
@mgenev
Jul 08 2014 19:26 UTC
it's also inspiring
Hank Yates
@hankyates
Jul 08 2014 19:27 UTC
@toastynerd @jeffadelman8 @mgenev 30 PR's open
lets start going through them
Martin Genev
@mgenev
Jul 08 2014 19:27 UTC
ok
Scott Romney Burbidge
@sburbidg
Jul 08 2014 19:32 UTC
@mgenev Thank you. I knew I was overthinking it.
Hank Yates
@hankyates
Jul 08 2014 19:36 UTC
is hailey in here?
Jeff Adelman
@jeffadelman8
Jul 08 2014 20:13 UTC
she is now
Hailey L. Petway
@hlpetway
Jul 08 2014 20:14 UTC
I'm here!
Jeff Adelman
@jeffadelman8
Jul 08 2014 20:14 UTC
I've made a bunch of comments. You want me to merge the ones that can be merged?
Hank Yates
@hankyates
Jul 08 2014 20:14 UTC
yay!
if you think they are good to go gopher it
Jeff Adelman
@jeffadelman8
Jul 08 2014 20:14 UTC
cool
Matt
@mahenry926
Jul 08 2014 20:16 UTC
image
Scott Romney Burbidge
@sburbidg
Jul 08 2014 20:18 UTC
Do we need to worry about adding the changes to the codefellows master (ie the codewars link) to our own fork?
Hailey L. Petway
@hlpetway
Jul 08 2014 20:21 UTC
@hankyates Jeff and I don't have permissions to merge.
Hank Yates
@hankyates
Jul 08 2014 20:22 UTC
oh ...
@hlpetway ill fix that
Hailey L. Petway
@hlpetway
Jul 08 2014 20:23 UTC
thank you :)
Hank Yates
@hankyates
Jul 08 2014 20:23 UTC
@sburbidg dont worry about that just yet you shouldnt need to yet
Hank Yates
@hankyates
Jul 08 2014 23:31 UTC
@hlpetway @jeffadelman8 yall should be good to go now
Larry Scroggins
@lwscroggins
Jul 08 2014 23:59 UTC
it's a kind of difficult to determine if my assignment 2.2 has been included in my pull request. There seems to be a lot of stuff in there.