« first day (2481 days earlier)      last day (2692 days later) » 

18:00
but the var i is in an array so wont it have to be a[i]
!!wat
I'm fairly new to JS
@KendallFrey I've never seen so much penetration
it's not that, your question needs to make more sense.
instead of trying to explain to us your idea of a solution (incrementing i in the array) explain to us the entire purpose and show us some code.
18:01
@lemon it's a[i++]
I made a for loop which takes user input and puts it into an array then alerts each array element
you're welcome
but using a while loop does not work no matter what I appear to change
the for loop should already handle that
array.forEach(alert);
18:02
it's clearly a cursed for loop
it happens from time to time
I get the basics but when combing them it gets confusing
ah yes, the cursed for loop
I've had a few of those happen, it's annoying
it killed a few of my codes
my book doesnt currently mention arrays in while loops just variables in while loops
it's not something you'd wish to an enemy
18:03
Hey guys ! I landed here by curiosity, mind I ask a question ?
what book?
@Plotisateur Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
iterators returning the previous element, when they don't even support backwards iteration
beginning javascript 4th edition
that book is from 2009
it's not going to teach you modern js properly
18:04
let it go
it's much newer and free
also free, probably more up to date
yeah it wont include html5 and ecmascript 7 stuff I know
but should still be useful right
eloquent covers more API stuff, exploring covers more of the language, imo
not as much
your code could be :
array.forEach(alert)
18:06
I know how to make @rlemon cry
seen it, our shit is explosion proof
no worries.
Wow C# room is trash
@SterlingArcher vertical footage should make anyone cry
007 is pretending to be old and dying?
ill check those out thanks
18:07
@Vap0r Welcome to forever ago
I tried sololearn and got up to the objects part but heh
@KendallFrey how has he not gotten a perma-ban?
Is it like a "but he can't help himself' type thing?
Like an idiot pity party?
He gets kicked when he's toxic
it didnt teach things in enough detail its kinda rushed
@KendallFrey fair enough
18:10
i didn't expect that tbh
Ever play plinko with kids?
I would jump in that
I always thought those were cool climbing areas.
Just never realized they were even better jumping areas lol
@ssube replace with razor wire and you have the next Saw movie
@SterlingArcher I think that goes down forever
That boy is with Satan now
or maybe he is Satan now
that could be a teaser for the next superhero origin movie
18:13
Oh holy shit I got so drunk this weekend I forgot to tell you guys my extreme mistake
Did it involve a small person
@rlemon have you flashed roms on your nexus devices
or just goldfish
long time ago
So my brothers basement.. we sort of left it wrecked from last week. I put my beer on the other side of the counter where there was less.. last week beer. So I was playing ping pong, went, chugged about half my beer. Something wasn't right.
There was no carbination at all
18:14
least it wasn't full of dirty cigarette butts
"Jeff, dude.. my beer doesn't taste right." Their jaws dropped "Bro..." threw up immediately.
you drank a week old open beer?
It was a skunk, open, week old beer. I wont lie gents, it was my finest puke n' rally.
at least it wasn't piss or smokes
18:15
^ it could have easily been dip spit too
@rlemon I've come close to doing that and know so many people who have
That would have sucked
yeah, tobacco juice is bad
And they yell at me when my vape cloud goes in their direction "ew gross"
and yet im sitting in a room full of bottles of spit and cigar smoke
@SterlingArcher Protip: vaping from your ass is not the same
18:20
YES IT IS
You can't crack your back blowing smoke from your nose
I've uhh, seen that video
Please tell me this is a meme and people don't actually cook cereal
You know I'm gonna cook cereal now
miniwheats in hot water is like shredded wheat + sugar
it's pretty good
try it
18:22
miniwheats isn't as weird
cold cereal is pretty bleh in any case
those are like, actual food material
fuckin lucky charms, though, can't even hold up for the time it takes to get them on the spoon
Maybe cooking "Lucky's Magic Rainbows" would improve them
Is that a drugs reference
Kendall drugs are bad
You can't keep cooking drugs
mkay
18:23
No, look at the picture lol
I smoke 4 poutines a day
You've all seen Nyquil chicken, right?
You can't misdirect what drugs will do to you Kendall
This is a JavaVention
@KendallFrey it was so blue
idk whatever
18:24
and I love blue, both the flavor and the color
!!afk drugs
@SterlingArcher I know, I'm sorry for playing so much Factorio
but that was blue done wrong
@SterlingArcher he writes Haskell, drugs have no side effects on him.
@ssube it was green you numpty
18:25
it was unnatural
no shit
do people even try to stick to the "no line should have more than 80 chars" rule?
should I?
80 chars is overly strict
no line should be unreadably long.
that's the only rule.
18:27
haskell seems to always be crazy long
Oh man wait till you see JavaScript
lol I'm serious though the haskell codegolfs are crazy long
I have stripes at 160 and 200
Ok so I got this girls number, she said she has 4 dogs and 3 cats. I said "Can I schedule a play date with them? Your presence is optional, but desired."
Good or nah?
good
18:28
just because 200cols is where I can fit 3 side-by-side on my screen
@SterlingArcher That's a lot of pets.
@William codegolf always has long one-liners in languages with meaningless whitespace
I'm talking about the formatted form
one-line is a formatting style
Let me see if I can find an example Icolud be wrong
would I split this?
18:29
The formatted form... of codegolf?
animation.model.scene.offsetY = window.innerHeight / 2 - ( animation.elements.container.getBoundingClientRect().top + model.opts.scene.height );
That's not so bad
There aren't many words, just long words
const offsetTop = animation.elements.container.getBoundingClientRect().top + model.opts.scene.height;
blah.offsetY = blah - offsetTop;
local variables are cheap
embrace them
I would never use offsetTop in my code again though, that might be misleading
well, granted, it's a solution
while on the topic of style, there's something I deeply despise about this:
window.addEventListener( 'click', e => {
  ...
})
mainly the e not being in brackets or something, not sure
@rlemon these days they're usually free
18:34
@ssube true
@towc just use a named function
you'll have a hard time coming up with something v8 can't just optimize out
onclick = e => {...}
window.addEventListener('click', windowClickHandler);
@towc I always put my lambda params in parens, even single ones, for clarity.
@rlemon more testable and stuff too, I guess
18:35
@ssube right? She's hella cute tho
@SterlingArcher well, you should sniff around
Shouldn't I buy her drinks first?
Jeez
I don't have a good cat pun though
well yeah, you always do that
> Waiter! a bowl of your finest tapwater!
18:41
o/
what's this deal about buying a drink? Aren't you supposed to protect the ones you love from alcohol?
I hope an improbable future girlfriend doesn't encourage me to drink
are you sure you aren't already drunk?
Hello chat~
18:53
@SterlingArcher I love opening a tab and going to something else before looking at it, then coming back after forgetting about it.
@SterlingArcher To be fair, he hasn't actually placed it yet
:D
Or maybe that's post-placement, not pre-placement
A question about git: I have two branch A, B. I'm working on A, and my friend on B. Since I need some features from B so I merge B to A. After that I got about 8 commits from B. Should I rebase to make it only one commit?
18:55
inter-placement
the picture alone doesn't bother me as much as turning the handle probably would
@N1ng It's a bit late for that.
@SterlingArcher Let's be real, that guy could only push out one jenga block? not a whole lot of girth..
I forgot about this
You'd want to rebase A onto B before you merge them, so the merge is cleaner.
18:56
I bet its a girl
@hilli_micha it didn't push the rows below, either, so it extends out horizontally
I do not trust that caption coming from you
That is a nice toilet paper dispenser. Like no joke, I want one.
18:58
@rlemon good lord
@ssube your loss :D
@ssube She only goes flying a few feet
do daughters often fly more than a few feet?

« first day (2481 days earlier)      last day (2692 days later) »