These are chat archives for MontCode/GeneralChat

8th
Jun 2016
Jonathan Herman
@lantech19446
Jun 08 2016 00:13
that doesn't sound fun
Lily Romano
@Lilyheart
Jun 08 2016 00:13
Really not so on carpet and when the cats start to circle.
Jonathan Herman
@lantech19446
Jun 08 2016 00:13
oi
Lily Romano
@Lilyheart
Jun 08 2016 00:24
And then there were three
https://goo.gl/tCugJY challenge done
Jonathan Herman
@lantech19446
Jun 08 2016 00:25
who are all these people?
Lily Romano
@Lilyheart
Jun 08 2016 00:26
Ugh, FCC has this annoying default image
Jonathan Herman
@lantech19446
Jun 08 2016 00:26
oh lol
Lily Romano
@Lilyheart
Jun 08 2016 00:26
shows up all the time on Facebook too
There is the meta property that is stored in the HEAD that different websites use as like the "thumbnail" and it gets stored in meta property="og:image" But it's on every FCC page
Jonathan Herman
@lantech19446
Jun 08 2016 00:29
kind of odd way to do it
Lily Romano
@Lilyheart
Jun 08 2016 00:30
I am sure they are lovely people, but I'm kinda tired of seeing that image everywhere I link FCC
Jonathan Herman
@lantech19446
Jun 08 2016 00:30
lol
Jonathan Herman
@lantech19446
Jun 08 2016 00:37
up to challenge 171 now, might try to hit 200 tonight
Lily Romano
@Lilyheart
Jun 08 2016 00:37
Awesome work!
David Castner
@davidjcastner
Jun 08 2016 00:37
Congratz!
Lily Romano
@Lilyheart
Jun 08 2016 00:37
I might be nearing a FCC stopping point where I switch back to the other thing I’m doing.
Jonathan Herman
@lantech19446
Jun 08 2016 00:38
thanks guys, you've been pounding away pretty hard the last couple days Lil, what's the other thing you're doing?
that’s where that color game came from
Jonathan Herman
@lantech19446
Jun 08 2016 00:42
ooo ok
Lilyheart @Lilyheart looks around. It’s been oddly quiet tonight.
Lily Romano
@Lilyheart
Jun 08 2016 00:55
@rmaylie9560 Where you at?
Jonathan Herman
@lantech19446
Jun 08 2016 00:55
lol that's because I've been working on challenges but I'm signing out now, time to go home. Talk to y'all soon
David Castner
@davidjcastner
Jun 08 2016 00:56
bye!
Nice work with getting through the challenges btw
Robert Maylie
@rmaylie9560
Jun 08 2016 01:11
(Eyes glaring from the shadows)
:shipit:
Lilyheart @Lilyheart sees all and knows you are stalking!
Robert Maylie
@rmaylie9560
Jun 08 2016 01:11
hey all!
not stalking. Letting relationships grow.
or something like that.
Lily Romano
@Lilyheart
Jun 08 2016 01:13
heh
Robert Maylie
@rmaylie9560
Jun 08 2016 01:13
how are you writing in purple?!?!
Lilyheart @Lilyheart knows all the secrets. She gave them away earlier but you were being quiet.
Robert Maylie
@rmaylie9560
Jun 08 2016 01:14
😳
Does it isolate people from seeing or is it just a different color?
Lily Romano
@Lilyheart
Jun 08 2016 01:15
play mmos much?
Robert Maylie
@rmaylie9560
Jun 08 2016 01:15
used to.
Lily Romano
@Lilyheart
Jun 08 2016 01:15
do you remember the /me command for emoting?
Robert Maylie
@rmaylie9560
Jun 08 2016 01:15
warcraft
not fimiliar. elab please.
Lily Romano
@Lilyheart
Jun 08 2016 01:17
Type, with the quotes “/me is awesome"
Robert Maylie
@rmaylie9560
Jun 08 2016 01:18
"/me likes puppy dogs, kitty cats, and unicorns"
damnit!!!
Lily Romano
@Lilyheart
Jun 08 2016 01:19
sorry >.> without the quotes <.<
that was my fault.
rmaylie9560 @rmaylie9560 is really bad at /me
Lilyheart @Lilyheart is to blame.
Robert Maylie
@rmaylie9560
Jun 08 2016 01:20
😂
Time to jump on the old com'pooper
Lily Romano
@Lilyheart
Jun 08 2016 01:21
:hankey:
:telephone: :hankey: ?
Robert Maylie
@rmaylie9560
Jun 08 2016 01:22
(Ques waiting music)
Jonathan Herman
@lantech19446
Jun 08 2016 01:23
lol great minds that's all I'm gonna say. This lord sends greetings to thee in your very far away kingdom
Robert Maylie
@rmaylie9560
Jun 08 2016 01:28
Yeeeeeeessssssssssssssss!!!
Lily Romano
@Lilyheart
Jun 08 2016 01:29
xD thought you would like. one of my top fav YT … tracks doesn’t really work. compliations?
David Castner
@davidjcastner
Jun 08 2016 01:37
something tells me my solution is overly complexhttps://www.freecodecamp.com/challenges/smallest-common-multiple#?solution=%0Afunction%20smallestCommons(arr)%20%7B%0A%20%20var%20getPrimes%20%3D%20function%20(num)%20%7B%0A%20%20%20%20%2F%2Freturns%20primes%20up%20to%20and%20including%20n%0A%20%20%20%20var%20sieve%20%3D%20new%20Array(num%2B1)%3B%0A%20%20%20%20sieve.fill(true)%3B%0A%20%20%20%20sieve%5B0%5D%20%3D%20false%3B%0A%20%20%20%20sieve%5B1%5D%20%3D%20false%3B%0A%20%20%20%20var%20sqrt%20%3D%20Math.floor(Math.sqrt(num))%3B%0A%20%20%20%20for%20(var%20n%20%3D%202%3B%20n%20%3C%3D%20sqrt%3B%20n%2B%2B)%20%7B%0A%20%20%20%20%20%20if%20(sieve%5Bn%5D)%20%7B%0A%20%20%20%20%20%20%20%20for%20(var%20i%20%3D%202%20*%20n%3B%20i%20%3C%3D%20num%3B%20i%20%2B%3D%20n)%20%7B%0A%20%20%20%20%20%20%20%20%20%20sieve%5Bi%5D%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20for%20(var%20x%20%3D%200%3B%20x%20%3C%20sieve.length%3B%20x%2B%2B)%20%7B%0A%20%20%20%20%20%20if%20(sieve%5Bx%5D)%20%7B%0A%20%20%20%20%20%20%20%20sieve%5Bx%5D%20%3D%20x%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20return%20sieve.filter(function%20(n)%20%7B%20return%20n%3B%20%7D)%3B%0A%20%20%7D%3B%0A%20%20var%20getPrimeFactors%20%3D%20function(num)%20%7B%0A%20%20%20%20var%20factors%20%3D%20%7B%7D%3B%0A%20%20%20%20var%20sqrt%20%3D%20Math.floor(Math.sqrt(num))%3B%0A%20%20%20%20var%20primes%20%3D%20getPrimes(sqrt)%3B%0A%20%20%20%20for%20(var%20p%20%3D%200%3B%20p%20%3C%20primes.length%3B%20p%2B%2B)%20%7B%0A%20%20%20%20%20%20var%20prime%20%3D%20primes%5Bp%5D%3B%0A%20%20%20%20%20%20while%20(num%20%25%20prime%20%3D%3D%3D%200)%20%7B%0A%20%20%20%20%20%20%20%20if%20(factors.hasOwnProperty(prime))%20%7B%0A%20%20%20%20%20%20%20%20%20%20factors%5Bprime%5D%2B%2B%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20factors%5Bprime%5D%20%3D%201%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20num%20%2F%3D%20prime%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(num%20%3C%3D%201)%20%7B%0A%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20if%20(num%20%3E%201)%20%7B%0A%20%20%20%20%20%20factors%5Bnum%5D%20%3D%201%3B%0A%20%20%20%20%7D%0A%20%20%20%20return%20factors%3B%0A%20%20%7D%3B%0A%20%20var%20range%20%3D%20%5B%5D%3B%0A%20%20var%20min%20%3D%20Math.min(arr%5B0%5D%2C%20arr%5B1%5D)%3B%0A%20%20var%20max%20%3D%20Math.max(arr%5B0%5D%2C%20arr%5B1%5D)%3B%0A%20%20for%20(var%20n%20%3D%20min%3B%20n%20%3C%3D%20max%3B%20n%2B%2B)%20%7B%0A%20%20%20%20range.push(n)%3B%0A%20%20%7D%0A%20%20var%20answer%20%3D%20range.filter(function%20(item)%20%7B%0A%20%20%20%20return%20item%20%3E%3D%202%3B%0A%20%20%7D).map(function%20(item)%20%7B%0A%20%20%20%20return%20getPrimeFactors(item)%3B%0A%20%20%7D).reduce(function%20(a%2C%20b)%20%7B%0A%20%20%20%20bKeys%20%3D%20Object.keys(b)%3B%0A%20%20%20%20for%20(var%20k%20%3D%200%3B%20k%20%3C%20bKeys.length%3B%20k%2B%2B)%20%7B%0A%20%20%20%20%20%20var%20key%20%3D%20bKeys%5Bk%5D%3B%0A%20%20%20%20%20%20if%20(a.hasOwnProperty(key))%20%7B%0A%20%20%20%20%20%20%20%20a%5Bkey%5D%20%3D%20Math.max(a%5Bkey%5D%2C%20b%5Bkey%5D)%3B%0A%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20a%5Bkey%5D%20%3D%20b%5Bkey%5D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20return%20a%3B%0A%20%20%7D)%3B%0A%20%20var%20product%20%3D%201%3B%0A%20%20var%20keys%20%3D%20Object.keys(answer)%3B%0A%20%20for%20(var%20k%20%3D%200%3B%20k%20%3C%20keys.length%3B%20k%2B%2B)%20%7B%0A%20%20%20%20product%20*%3D%20Math.pow(keys%5Bk%5D%2C%20answer%5Bkeys%5Bk%5D%5D)%3B%0A%20%20%7D%0A%20%20return%20product%3B%0A%7D%0A%0A%0AsmallestCommons(%5B1%2C5%5D)%3B%0A
that url is impressive though
Lily Romano
@Lilyheart
Jun 08 2016 01:38
Maybe a little but mine isn’t all that much shorter https://goo.gl/p8UgvG
Yeah, I’ve been using goo.gl urls, downside, I have to see those people again...
tried that too :p doesn’t like it.
i wonder if camperbot fixes those
I just haven’t been arsed enough to get it working
Robert Maylie
@rmaylie9560
Jun 08 2016 01:41
@davidjcastner holy url batman!
who are those people lil?
Lily Romano
@Lilyheart
Jun 08 2016 01:41
scroll up to the last time the people showed up xD my last goo.gl link.
David Castner
@davidjcastner
Jun 08 2016 01:41
i tried shortening the url by using a gitter link but the symbols overlap so cant do it
lol
Lily Romano
@Lilyheart
Jun 08 2016 01:41
jon asked the same thing.
David Castner
@davidjcastner
Jun 08 2016 01:42
gotta start coming up with creative answers
like, oh that's "fred starting on the left, he's the guy that broke into my house once"
Robert Maylie
@rmaylie9560
Jun 08 2016 01:42
ok thats to much work.
Lily Romano
@Lilyheart
Jun 08 2016 01:43
too annoyed by them at this point :anguished:
stupid og:image… they ain’t no og.
David Castner
@davidjcastner
Jun 08 2016 01:43
understandable
Lilyheart @Lilyheart needs to remember to update montcode’s og image once I fix the final logo.
Robert Maylie
@rmaylie9560
Jun 08 2016 01:48
ok i cant find the convo anywhere...
tell meeeeeeeeeeee
Lily Romano
@Lilyheart
Jun 08 2016 01:48
Timestamp 20:26 starts the convo
Robert Maylie
@rmaylie9560
Jun 08 2016 01:52
ok, i was really expecting more.
Lily Romano
@Lilyheart
Jun 08 2016 01:52
more than Lily’s thinly veiled annoyance?
Robert Maylie
@rmaylie9560
Jun 08 2016 01:57
:laughing:
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:01
good grief! You guys are still here!
Lily Romano
@Lilyheart
Jun 08 2016 02:02
SLEEP!???!?? WHAT’S THAT?!
Jonathan Herman
@lantech19446
Jun 08 2016 02:05
Lol of course, i have 24 more challenges
Lily Romano
@Lilyheart
Jun 08 2016 02:06
I give myself 30 minutes before I stop working.
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:11
Sleep's what I don't get much of either :smile: Did you manage to get that friendly date range worked out?
Lily Romano
@Lilyheart
Jun 08 2016 02:12
I did! You can find the solution on my profile page https://www.freecodecamp.com/lilyheart should be the last algorithm I finished
Robert Maylie
@rmaylie9560
Jun 08 2016 02:12
@lantech19446 awesome johnny
@dcpking_twitter hey mike!
Jonathan Herman
@lantech19446
Jun 08 2016 02:14
Dude i just made the best dinner, rice and beans in a vegan chili mix soaked in hot sauce with daiya pepperjack over it. Soooo good freshly energized and ready to work
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:16
(don't go near the library tomorrow, people, it'll be flammable!!)
Robert Maylie
@rmaylie9560
Jun 08 2016 02:17
that sound really good. You need some kuman in there.
haha i get the chili farts baaaaaaad.
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:17
Sp the instructions said to join into GitHub by saying "Hello World"....... ok then
write(6, 10)
10 format(1H , 11HHello World)
is what I wrote :)
Robert Maylie
@rmaylie9560
Jun 08 2016 02:18
that and pb&j
Lily Romano
@Lilyheart
Jun 08 2016 02:18
:boom:
Jonathan Herman
@lantech19446
Jun 08 2016 02:18
there's cumin in the chili spices, one of my favorite spices in fact. I'll saute ginger and turmeric throw some cumin in and then toss in some rice or quinoa
Lily Romano
@Lilyheart
Jun 08 2016 02:20
xD Saying hello world get you a bot response. Anything else doesn’t!
Robert Maylie
@rmaylie9560
Jun 08 2016 02:21
@dcpking_twitter you could of at least made the beginning message cute since it was getting discarded anyways
is that VB?
oooor the language we dont speak of...
(whispers) cobol
:worried:
Lily Romano
@Lilyheart
Jun 08 2016 02:24
:hear_no_evil:
Robert Maylie
@rmaylie9560
Jun 08 2016 02:27
😂
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:27
Naw! fortran :)
Robert Maylie
@rmaylie9560
Jun 08 2016 02:28
nice!
So I have a recusion question...
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:28
go for it Robert
(again and again and again )
Robert Maylie
@rmaylie9560
Jun 08 2016 02:30
the validations when using if statements. How do the 1 (true) -1(false) stop the loop but still retain the value?
does that question make sense? I worded it weird.
Lily Romano
@Lilyheart
Jun 08 2016 02:32
talkin’ fortran?
Robert Maylie
@rmaylie9560
Jun 08 2016 02:33
Java script but the process is pretty much the same across languages, right?
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:33
You have a function and inside it you're saying "if variable then call me" ? You have to have some way for the variable being used to obtain a value
Or else you can decide that you'll only go 10 deep (for example) and pass in the depth as a parameter as you invoke then function. Inside, it does its thing and then says "if depth < 10 then { depth += 1; call me(depth)" (pardon the pseudocode
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:39
btw, Did that make sense?
Robert Maylie
@rmaylie9560
Jun 08 2016 02:40
function factorialize(num) {
    if (num < 0) {
        return -1;
    }

    else if (num === 0) {                                       // returns true when "num" hits 0 and breaks? does this hold true to all methods? 
        return 1;
    }
    else 
        return (num * factorialize(num - 1));  //in this case the end equation will be 5*4*3*2*1=120

}

factorialize(5);
whoops
\ not //
Lily Romano
@Lilyheart
Jun 08 2016 02:42
Are you coming tomorrow @rmaylie9560 ? If so I can walk you thru recursions.
Robert Maylie
@rmaylie9560
Jun 08 2016 02:43
i cant make it. i have my brothers graduation.
Lily Romano
@Lilyheart
Jun 08 2016 02:44
bummer! Have fun tho.
Robert Maylie
@rmaylie9560
Jun 08 2016 02:44
id rather watch paint dry
but its my baby brother. i have to be there for him on his big day
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:45
That looks ok - although equality is "==", not "===", isn't it?
Lily Romano
@Lilyheart
Jun 08 2016 02:46
javascript has a ===
2 == “2” is true
2 === “2” is false
Robert Maylie
@rmaylie9560
Jun 08 2016 02:46
=== is the strict operator
Lily Romano
@Lilyheart
Jun 08 2016 02:46
what the man said!
Who asked about consoles in CodePen? What that @rmaylie9560 and @davidjcastner ?
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:46
implicit conversion and implicit conversion forbidden.
Robert Maylie
@rmaylie9560
Jun 08 2016 02:46
what the woman said!
caster
castner
fat fingers
Lily Romano
@Lilyheart
Jun 08 2016 02:47
So we all be blind and there is a dang button that says CONSOLE at the bottom of the screen. /sigh
I’ll let him know tomorrow.
Robert Maylie
@rmaylie9560
Jun 08 2016 02:47
that is super awesome info tho.
i love chromes dev tools tho
@dcpking_twitter :laughing:
Lily Romano
@Lilyheart
Jun 08 2016 02:48
Oh, I found the conversation. @lantech19446 asked and @davidjcastner already knew about but said it works differently.
Robert Maylie
@rmaylie9560
Jun 08 2016 02:49
super dave!
:laughing:
Lily Romano
@Lilyheart
Jun 08 2016 02:50
The advantage to CodePens is that you can share a link to the pen with the console data https://blog.codepen.io/2016/01/27/new-feature-javascript-console/
new playlist time Rob
Jonathan Herman
@lantech19446
Jun 08 2016 02:52
@Lilyheart you should check out a tribe called red
Robert Maylie
@rmaylie9560
Jun 08 2016 02:52
ok thats trippy
Michael Irwin
@dcpking_twitter
Jun 08 2016 02:55
Hi @Lilyheart, I was looking at starting the javascript course ... do you really need the whole of that huge HTML first? (I coded HTML for about 6 years!)
Lily Romano
@Lilyheart
Jun 08 2016 02:59
Depends on what your goal are! If you are just doing it to learn, then just complete what you want to learn!
If you are doing it for FCC certification (which allows you to volunteer for their non-profit projects) here is what needs to be done https://freecodecamp.github.io/wiki/en/freecodecamp-front-end-development-certification/
But, there is some css thrown into the HTML so if you are a little hazy on that, it might be worth it. Honestly it’ll take you a fraction of the time listed.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:02
ok. I'm just browsing down it ... never saw making objects before, but I'm looking forward to the CSS. Why are all the pages called "Challenges" ? I don't see anything in the way of a question in the whole thing, or am I missing something somewhere ?
Lily Romano
@Lilyheart
Jun 08 2016 03:04
There used to be a whole naming scheme. They just simplifed it to challenges.
I don’t even think the name challenges is referenced anywhere other than the URL (and by me) but I could be wrong.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:06
I was just trying to find things to do :) [you may find me a little goal-oriented - I also volunteer on Experts Exchange - sorry!]
Lily Romano
@Lilyheart
Jun 08 2016 03:06
More I think about it, the more you probably wanna do the HTML and CSS. There may be some new things in there.
As FCC became more international, they simplified the naming scheme. There were challenges and bonfires and other things I can’t remember keeping with the camping theme, but the concept didn’t translate well, so :boom: simplfied.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:07
ok. I'll take your advice ... but for now all it seems to be doing is showing me 3 or 4 lines of examples at a time ... like "here are 2 examples of the <h2> tag"
Lily Romano
@Lilyheart
Jun 08 2016 03:07
it picks up speed! promise!
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:08
ok. How long till I get to where you are? (don't answer if you don't want to!)
Lily Romano
@Lilyheart
Jun 08 2016 03:09
Depends on your pace. I’m a full-time student (finally doing college after decades of employment).
David and Rob are close and I think they started less than 2 months ago.
And they both have full time jobs + lives.
Conceptually you are ahead of the game, so I would guess you are going to get through the challenges quickly. The projects might be different (And honestly I haven’t really started any of them, only the ones I finished over winter break).
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:12
Ah. Well, I've got a "Friends of North Wales Area Library" meeting to go to tomorrow (I run their web site and FB group), and some SQL to study, but aside from that only the cats to feed :smile:
Robert Maylie
@rmaylie9560
Jun 08 2016 03:13
hey @dcpking_twitter you should consider presenting SQL to the group!
(reiterating the mention)
Lily Romano
@Lilyheart
Jun 08 2016 03:14
Already on the list!
heh
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:17
So what / how should I present? For example, should I assume that everyone knows absolutely nothing at all about SQL or even structured data?
Lily Romano
@Lilyheart
Jun 08 2016 03:17
We’ll do a survey beforehand
I’ll email you once I get some details together.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:19
That sounds good. Actually, maybe we should start off with just "Data". Unstructured, semi-structured, and structured ....
What do people use for presentations, or is it all done live?
Robert Maylie
@rmaylie9560
Jun 08 2016 03:20
screen share/live... whatever your comfortable with.
Lily Romano
@Lilyheart
Jun 08 2016 03:20
I’ll email you once I get some details together :p Not tryin’ to be a brat.
Got some details to deal with first.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:23
Not being a brat at all!!! BTW, I'm sorry about not being there tomorrow. Does the Wednesday meet in Eaglesville happen every week too?
Lily Romano
@Lilyheart
Jun 08 2016 03:23
every other week through the summer.
MontCode has seriously only been live for 21 days now so a lot of the details are still being worked up.
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:24
Oh! I didn't realise. Crazy good group so soon!
Lily Romano
@Lilyheart
Jun 08 2016 03:25
I know right!!!
I’ve been blessed.
Jonathan Herman
@lantech19446
Jun 08 2016 03:27
hey will anyone be around tomorrow, I'm going to need help on the JS challenge "Stand In Line" but totally don't have the brain power to put tacks to it tonight
Michael Irwin
@dcpking_twitter
Jun 08 2016 03:27
ok. I need to get stuff out of the dryer so I don't have to commando and topless to work tomorrow.
G'nite all!
(I'll not be at the meeting, Jonathan, but maybe I can help afterwards)
Lily Romano
@Lilyheart
Jun 08 2016 03:28
Sure thing! I’ll be around off and on throughout the day and I’ll be keeping an eye on the room while at the library.
Jonathan Herman
@lantech19446
Jun 08 2016 03:29
ok cool, I won't be at the meeting because work but I'll post my questions at some point. Most of the array stuff really has me thrown for a loop so maybe i'll hold off until I watch the videos for it too
Robert Maylie
@rmaylie9560
Jun 08 2016 03:30
Night
Jonathan Herman
@lantech19446
Jun 08 2016 03:31
night mike
Lily Romano
@Lilyheart
Jun 08 2016 03:31
I’m going to try to sleep hahahahahaahah so hopefully I won’t feel like a zombie tomorrow.
Jonathan Herman
@lantech19446
Jun 08 2016 03:32
ok Lily have a great night
Robert Maylie
@rmaylie9560
Jun 08 2016 03:35
.push(); puts an ideam on the front of an array. .pop(): takes it from the back. You can use them in stacks (FILO) and queues(LIFO) (in pretentious programmer talk)
Lily Romano
@Lilyheart
Jun 08 2016 03:36
push/pop are both end
shift/unshift are front
Robert Maylie
@rmaylie9560
Jun 08 2016 03:38
Meh, I'm wrong. 😑
Lily Romano
@Lilyheart
Jun 08 2016 03:39
shift/unshift are backwards too by what my gut reaction is. what it is is shift removes the first (it shifts the pointer for the first item from the old index 0 to 1 making 1 the new 0.
I only know @rmaylie9560 because I spent far to much time trying to understand the stupidness that is the names to shift/unshift.
If I can’t logic it, I can’t remember it.
Jonathan Herman
@lantech19446
Jun 08 2016 03:42
yea I mean i get that stuff but some of the orders of it and where the variables are called are confusing me mix that in with tiredness and the fact that suddenly they have all this JSON stuff at the bottom where JSON has not been mentioned once and i'm completely clueless. Think I'm gonna sleep though I'll deal tomorrow
David Castner
@davidjcastner
Jun 08 2016 12:43
@lantech19446 feel free to tag me in your questions
Jonathan Herman
@lantech19446
Jun 08 2016 15:02
so I got the answer the part that keeps confusing me is seeing something like var testArr = [1,2,3,4,5]; and keeping in mind that I need to use the arguments to manipulate them, like i'm expecting to see somewhere in the code where arr and item are defined
Jonathan Herman
@lantech19446
Jun 08 2016 15:08
I'm so screwed up on JS though I think i'm going to finish the intro course and then mess with more of this.
Lily Romano
@Lilyheart
Jun 08 2016 15:09
Here is the entire code for reference

function nextInLine(arr, item) {
  // Your code here
  arr.push(item);
  removed = arr.shift();
  return removed;  // Change this line
}

// Test Setup
var testArr = [];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 1)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
So on the Stand In Line problem, at the bottom you can see the call nextInLine(testArr, 1)
And at the top you see a very similar line function nextInLine(arr, item) {
Even tho those lines are similar (both have nextInLine with two things in parenthesis, the first one in the function definition because it has the function keyword at the start.
That makes the second one the function call.
In the function definition, the things inside the () are called parameters. In the call, they are called arguments.
After the function declaration, testArr was defined (as an empty array).
That next to last line calls nextInLine and sends two arguments (kinda like a bash command).
Lily Romano
@Lilyheart
Jun 08 2016 15:15
The function takes those arguments and assigned their value to it's parameters (still like bash and a bash script). The function keeps them in the same order (kinda like bash script does with $1 and $2).
So arr gets automatically defined as the first argumentand item is defined at the second argument. In the above code it's the same as if it said
var arr = testArr; //The first argument and the first parameter.
var item = 1;//The second argument and the first parameter.
Jonathan Herman
@lantech19446
Jun 08 2016 17:45
sorry had to run out real fast to take my wife to work 2hrs early
Lily Romano
@Lilyheart
Jun 08 2016 17:48
No worries!
Jonathan Herman
@lantech19446
Jun 08 2016 18:38
ok that makes way more sense
Lily Romano
@Lilyheart
Jun 08 2016 19:21
I’m glad! It’s a bit tricksey and I had to take a step back the first time I saw that concept.
Jonathan Herman
@lantech19446
Jun 08 2016 19:54
I still think I need to finish the JS videos too because there's like no explanation to speak of but at least i'm on 200 finally lol
Lily Romano
@Lilyheart
Jun 08 2016 19:54
Yay 200! Back to videos! I’ve gone back to my udemy videos as well.
Jonathan Herman
@lantech19446
Jun 08 2016 19:58
it's just so hard to listen to this guy lol
Lily Romano
@Lilyheart
Jun 08 2016 20:00
Maybe try Khan academy’s lessons? I think it was @dewhiz that recommened it but I can’t be sure. I’ve done some of the math lessons & videos there.
Jonathan Herman
@lantech19446
Jun 08 2016 20:10
that's one of the free ones right?
Lily Romano
@Lilyheart
Jun 08 2016 20:12
Yup yup!
Jonathan Herman
@lantech19446
Jun 08 2016 20:13
nice, I think I'll go sign up for it I can't stand ben stein much longer
Lily Romano
@Lilyheart
Jun 08 2016 20:14
:laughing:
Jonathan Herman
@lantech19446
Jun 08 2016 20:27
I wish I could upload my own avatar lol
Lily Romano
@Lilyheart
Jun 08 2016 20:27
On KA? Yeah. But I kind came to like my little leaf dude and watching him grow up.
Jonathan Herman
@lantech19446
Jun 08 2016 20:28
I didn't realize they grew in that moment I was just thinking because in Hinduism we call the different forms of Krishna avatars lol
I wonder which JS course i should take
Jonathan Herman
@lantech19446
Jun 08 2016 20:54
@Lilyheart any opinions?
Lily Romano
@Lilyheart
Jun 08 2016 21:02
Lemme peek
Intro to JS
Jonathan Herman
@lantech19446
Jun 08 2016 21:06
ok, I was thrown off by the fact that it was geared towards like drawing and didn't know what processingJS is.
Lily Romano
@Lilyheart
Jun 08 2016 21:54
Announcing a new MontCode Event - http://montco.de/pass-a-pen-rules-1
Jonathan Herman
@lantech19446
Jun 08 2016 22:40
I might get in on this, Rob asked me about doing this with him a day or two ago. Maybe by then I'll be able to do JS a little better and make something cool
Lily Romano
@Lilyheart
Jun 08 2016 22:55
You can use as little or as much JS as you want!
Jonathan Herman
@lantech19446
Jun 08 2016 23:04
yea but I feel like it would be the best challenge and learning exercise for me right now
Alex H.
@Alexander-Huh
Jun 08 2016 23:08
hello
hello
Alex H.
@Alexander-Huh
Jun 08 2016 23:24
http://codepen.io/Alexander-Huh/pen/NrKEYo @davidjcastner I need help with the HTML
David Castner
@davidjcastner
Jun 08 2016 23:35
Lily Romano
@Lilyheart
Jun 08 2016 23:38
@davidjcastner @Alexander-Huh type this in the java console java.lang.System.out.println(Array(16).join('wat' - 1) + ' Batman!’)