« first day (2008 days earlier)      last day (2941 days later) » 

3:00 PM
I procrastinate
actually 18th for Fed as well
 
@ssube what are your opinions on rethinkdb?
@BenjaminGruenbaum, mind if I bother you with a quick promise question? (you seem to be the pro). What happens if you await a function which is not declared as async? Is it just treated like a promise?
 
@corvid you mean awaiting a function or the result of it?
 
@corvid haven't used it, but the concept is pretty flawed.
 
The specification mandates that Promise.resolve is implicitly called on the value being awaited.
 
Some days, listening to Top Gear is better than music while working
 
3:03 PM
Managing client connection state in the database like that just won't scale.
 
You can await 5. I think this is dumb and silly, but I didn't feel strongly enough to object when the decision was made.
 
As long as it's not the new Top Gear with Joey from Friends and some scraggly looking Brit
 
@ssube rethinkdb is actually pretty nice.
 
@BenjaminGruenbaum it pushes to the client, though, right? How do you handle caching for large numbers of clients?
 
@ssube sometimes, you're fine with not scaling to over 10K concurrent clients, most websites, including most big ones, don't have 10K users at once.
@ssube caching of what?
 
3:05 PM
The data?
 
Ah okay, so in that case, it's treated like Promise.resolve(5)?
 
For rethink, you need the DB to be pushing data directly to the client?
 
@ssube you can hold 10K connections at once, not a huge issue.
You're asking how it scales to a million concurrent connections? Is that it?
@corvid yes, silly but yes.
 
@BenjaminGruenbaum Not at all. Connecting the client and DB circumvents most of the app layers that do actual heavy lifting (potentially the balancer, most of the security stuff, etc).
 
@BenjaminGruenbaum oh, they decided against mark miller?
 
3:08 PM
why's that silly, though? It's super useful in my case
 
@AwalGarg they decided with Mark Miller, I think he argued for that IIRC.
 
That's a lot of shit for one janky new nosql DB to reinvent.
 
I think it's stupid and hides errors.
@ssube How is that different from redis pubsub for example?
 
0
Q: Excel upload using angularjs to via a rest service using ng-file-upload

Sajeetharani am using ng-file-upload in my application. I replaced the url with one of the rest service i have. When i upload the excel file via the rest client it works. but when i do through the application it does not. Here is the code: $scope.upload = function(files) { if (files && files.length) ...

 
@BenjaminGruenbaum redis pub/sub never gets anywhere near the client in any case I've used it/seen it used. It pushes to the server, server pushes to the client. Client has an authenticated session with the app server already.
 
3:10 PM
imgur.com/gallery/pYGQh cc @rlemon @SterlingArcher
 
@ssube Ah, I think I understand your problem with RethinkDB, you probably have or had the same problem with Firebase or Parse.
Most people are building very simple apps technologically - they need to get them out as fast as possible and worry about sound architecture much later.
 
@BenjaminGruenbaum Haven't used any of them. They don't match any of our workloads at the office at all.
 
do features ever get unsupported? I'm testing something on FF 38 and it works, but my client is using FF 45 and some things are not working...
 
Ours neither, but neither of us are the target @ssube
 
3:11 PM
My personal stuff, I usually just back with Redis or Postgres and handle pub/sub myself/normally.
 
shrek out of no where
 
You typically don't need a layer between your users and your database for seeing changes at small scale.
 
@BenjaminGruenbaum oh, you're saying Rethink is one of those "hey, make your sweet app super quick!" products.
 
@rlemon lol how did I miss that
 
It's fine to just let the DB do the heavy lifting when you're small and optimize much much later. It can handle 10K concurrent connections, most companies are good with that.
 
3:12 PM
For people who don't need security because they won't be doing it right anyway. :P
 
@ssube yes.
@ssube no, security is pretty easy, but I see what you mean.
 
that wasn't 100% serious (but is still mostly true)
 
@rlemon dat @Abhishrek on the right side
 
omg
 
Rethink pushes to the client? I thought it pushed to the server
Pushing to the client is pretty silly most of the time
 
3:13 PM
@Zirak sometimes the server is the client
 
@ssube yeah, I agree - but it's not just that - it's good up to a scale almost no one reaches. You could have Rethink drive the SO chat for example and it'd do just fine, you could also probably have it drive StackOverflow's cache instead of redis itself with the changes in questions auto-updating.
 
So the chicken came first :o
 
sometimes the student becomes the master and the feathers wear the crow
 
You can't have it drive Google or Facebook or Wikipedia for example.
 
@ssube Sometimes my food is up your ass
 
3:14 PM
spain on the middle fuck yeah
 
It goes in the wrong way
 
@BenjaminGruenbaum that's a little too general. 10k conns and 10k users are not the same thing.
 
anyone please help
 
You have to count monitoring, batch processes, etc.
 
@ssube 10K concurrent connections. 10K is just a number, it can probably do 20K or 5K or whatever - most sites don't have over 4000 people in them at once.
 
3:16 PM
10K concurrent connections to the DB node.
 
directly from the clients
 
I ran into a fun problem the other day with concurrent connections to SSH breaking.
 
that's not the same thing, but yeah a lot of stuff is very bad at this especially if it wasn't designed for it - this was designed for it.
If your site is data centric and you do a lot of data crunching and data manipulation like we do, anything other than SQL doesn't make sense unless you don't have a choice because your data is too big.
 
Setting up the network stuff for Rethink has to be a nightmare.
 
If your site/app have relatively straightforward data like a blog, a news site, a forum, just keeping a friend list and so on - and that's 95% of the internet, you're good to go with something like Rethink, and it has sensible defaults, joins, transactions and other useful stuff.
 
3:18 PM
oh gods, their install page recommends using docker
Docker in prod and clients hitting the DB directly.
 
@BenjaminGruenbaum esdiscuss.org/topic/await-on-synchronous-functions#content-14 right. I don't like this :( callers should break if return type of a function changes from future to non-future.
 
Do you want all your data on the internet? Because that's how you get all your data on the internet.
 
@AwalGarg not sure.
@ssube you do see the big appeal of something like Rethink right? It's like a much saner Mongo.
 
@BenjaminGruenbaum eh. I understand the appeal of all the make-your-own-game kits and make-your-own-web-app things, I just don't really care about them.
 
@ssube where else would you keep data? locally? that's soooo 2014
 
3:21 PM
I think you might be giving people too much credit - think of the sites and apps you use that are not by big companies - how many of them solve hard prboelsm? I guess less-than-half?
 
@BenjaminGruenbaum I'm not sure I use any that aren't by big companies.
 
@ssube they make a lot of sense from a business point of view.
 
@BenjaminGruenbaum they make sense for hobby devs, too, it's just not something I'm interested in.
 
@BenjaminGruenbaum for web only?
 
Got a blog? You better use Wordpress or Ghost and not write your own - sure, you can write a blog in 2 days probably, or you can set up wordpress in 5 minutes and then enjoy plugins that give you good SEO for free, you get AMP for free, you get http hosting automatically in most hosts, you get a ton of safe defaults, you get tons of people reading the code and patching it and so on.
 
3:23 PM
I get off on writing good, clean, modular code with tests and all the fancy bits, so the do-half-of-it-for-you packages are no fun.
 
tests make me flacid
 
you must always be thinking about tests
 
you must always be thinking about business value.
 
almost never :D
 
@BenjaminGruenbaum Not really, SEO and AMP are worthless
 
3:26 PM
That is how a professional does. Usually, that coincides with writing good, clean, modular code.
 
nginx has good defaults
 
writing good code is the opposite of making money
 
Put cloudflare in front of it if you need it
 
@copy not really - no. They're useful for most people.
 
3:27 PM
@ssube I disagree, writing good code is often exactly what you must do in order to ship on time.
 
22
A: Why are JavaScript primitives not instanceof Object?

ZirakYou have been tricked by a mechanism commonly known as "boxing" (c# related article, java related article) which mesmerises all who come across it. You had the correct answer in the beginning: Perhaps because 1 is a primitive not an object to begin with? Exactly so. However, how can primiti...

 
@Neal you've been here for like 5 years and you dont know what a primitive value type is o_0?
 
Number objects and number primitives were not born equal
You should know this
 
@Abhishrek heh
so it's dead
 
3:29 PM
@BenjaminGruenbaum I do. but why did five++ make five.wtf undefined?
and not mutable
 
@Neal you don't, and you should open the specification and read it.
Primitive values don't have their own properties. They're values.
 
What was five before and what is it now?
 
You can't add a property to a symbol or number or string or boolean.
Certainly not to null or undefined.
It doesn't make sense, conceptually.
 
Can't wait for actual value objects in JS :s
 
@AwalGarg you should ask where that stands. Basically I think Eich is supposed to be working on it except he's not.
 
3:32 PM
@BenjaminGruenbaum Yes I know that. then why was it able to be defined before the ++ happened?
 
@Neal it was never defined, it was boxed from a number value to a Number object.
Here, let me confuse you a little :D
 
Oy o/
 
!!> (function() { console.log(this === 5)}).call(this)
 
@BenjaminGruenbaum "undefined" Logged: false
 
@Neal now think about that for a minute and tell me why this happened :D
@dievardump \o
 
3:33 PM
@BenjaminGruenbaum Oooooo I see.
Its like new Number('42') vs Number('42')? @BenjaminGruenbaum
(for example)
vs 42
!!> (function() { console.log(this == 5)}).call(5)
 
@Neal "undefined" Logged: false
@Neal "undefined" Logged: true
 
Number('42') === 42
 
Interesting
 
@SterlingArcher "Then I ran into the promise-anti pattern" don't you mean "Then I ran into the promise anti-pattern"?
 
@littlepootis Yep. but new Number('42') !== 42
 
3:35 PM
Update expressions are bitch weird and full of magic. Just don't use them ever :)
@Zirak you wrote a layman translation of the spec for those right? link? (sorry for all the edit pings)
 
@AwalGarg Not sure what you're referring to
 
Hmm, someone here linked I writeup on what happens when you do ++ and -- on the language level
 
@Neal it's exactly that.
 
it was quite well written. @Neal should read that
 
@Neal of course, strict mode has the sane behavior
!!> (function() { "use strict"; console.log(this == 5)}).call(5)
 
3:37 PM
@BenjaminGruenbaum "undefined" Logged: true
 
@BenjaminGruenbaum Got it :-)
Thank you for the explanation @BenjaminGruenbaum
 
yeah... see? Zirak totally didn't write it :P
 
oh, that
 
@BenjaminGruenbaum you may get nowhere in the code review room. They have a few JS haters.
 
3:41 PM
@Neal they're reasonable, mostly.
 
@BenjaminGruenbaum mostly
 
!!switch to urxvt or not?
 
Mast is the main pain (so I have been told) when it comes to JavaScript
 
@AwalGarg switch to urxvt
@AwalGarg because you touch yourself at night
 
Just played a bit with canvas dievardump.github.io/baboon-heroes
10
 
3:45 PM
@Neal So do we.
 
haha wow. someone is starring all of your messages there @BenjaminGruenbaum
@ssube True.
 
@Neal don't really care about stars in some random room, but they seem like reasonable people - and they're right that the behavior they're describing is super quirky and confusing.
 
@BenjaminGruenbaum True. They were discussion a different quirk yesterday. I forgot what it was.
the ROs in that chatroom are a bit anal about off topic... @BenjaminGruenbaum
 
FYI: <ಠ_ಠ> is a valid XML tag. I trust we will use this only for good. <ಠ_ಠ/>
 
@Neal which is also perfectly reasonable.
 
3:51 PM
That is true as well :-)
 
@dievardump very nice :)
 
@BenjaminGruenbaum Thanks ^^
 
@SterlingArcher for the blog post, at some point you say "So here I am, 7 months into a Software Engineering position at Sierra Nevada Corporation, working with NodeJS, AngularJS, Adruino boards, PHP ". You spelled Arduino wrong ;)
but the post is really good, I enjoyed it :)
 
user2509848
4:21 PM
@CapricaSix Play hangman
 
user2509848
@CapricaSix hang
 

Sandbox

Where you can play with regular chat features (except flagging...
 
user2509848
@Neal Found it, thanks.
 
np bob
 
@CapricaSix He does not, he has confessed celebacy.
 
4:32 PM
All Indians are forced into celibacy until they master jQuery.
4
 
!!stat
 
@Neal You (http://stackoverflow.com/users/561731/neal) have 85252 reputation, earned 5 rep today, asked 97 questions, gave 2553 answers, for a q:a ratio of 97:2553.
avg. rep/post: 32.17. Badges: 21g 156s 219b
 
user2509848
!!stat
 
@Hosch250 You (http://stackoverflow.com/users/2509848/hosch250) have 1169 reputation, earned 0 rep today, asked 26 questions, gave 35 answers, for a q:a ratio of 26:35.
avg. rep/post: 19.16. Badges: 2g 11s 35b
 
@ndugger jQuery; it gets you laid!
 
4:34 PM
!!stat
 
@Abhishrek You (http://stackoverflow.com/users/855760/abhishrek) have 3270 reputation, earned 0 rep today, asked 18 questions, gave 38 answers, for a q:a ratio of 9:19.
avg. rep/post: 58.39. Badges: 1g 20s 37b
 
Damn 58.39 x|
 
!!stat
 
@SomeGuy You (http://stackoverflow.com/users/401137/some-guy) have 10224 reputation, earned 0 rep today, asked 9 questions, gave 242 answers, for a q:a ratio of 9:242.
avg. rep/post: 40.73. Badges: 5g 32s 59b
 
!!stat
 
4:35 PM
"An SQL injection is when you ask the waiter for a large pepperoni GIVE ME ALL YOUR MONEY with a side of fries."
http://theprofoundprogrammer.com/
5
 
@Abhishrek baaaah
 
@PhilippeAuriach That dude sucks
@PhilippeAuriach 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.
 
who sucks ?
talking to me ?!
 
lol try again @PhilippeAuriach
She did not welcome you yet ;-P
 
haha.
 
4:36 PM
!!tell PhilippeAuriach stat PhilippeAuriach
 
@PhilippeAuriach That dude sucks
 
hmmm weird.
 
wat
 
I dont know who she is, but I'm gonna find her
 
haha its a bot ;-P
!!tell PhilippeAuriach stat Neal
 
4:37 PM
@PhilippeAuriach You (http://stackoverflow.com/users/561731/neal) have 85252 reputation, earned 5 rep today, asked 97 questions, gave 2553 answers, for a q:a ratio of 97:2553.
avg. rep/post: 32.17. Badges: 21g 156s 219b
 
lol thats bad wording there @Zirak ^
;-)
Why does @PhilippeAuriach suck though?
 
@Neal ( ͡° ͜ʖ ͡°)
 
@Zirak PhilippeAuriach is not me ;-P
 
!!stat JonSkeet
 
@Abhishrek User Elusio proved elusive.
 
@Neal ʕ•ᴥ•ʔ
 
@SomeGuy ha
@Zirak chat.stackoverflow.com/transcript/message/29973134#29973134 says "You" but @PhilippeAuriach is not me
 
@Neal (っ˘ڡ˘ς)
 
Hmmm this looks "fixable" github.com/Zirak/SO-ChatBot/blob/master/source/plugins/… maybe @Zirak @SomeGuy
or is it a bug in !!tell?
 
@Neal /╲/\╭( ͡° ͡° ͜ʖ ͡° ͡°)╮/\╱\
 
4:41 PM
It's a feature
@Zirak Have you abandoned language altogether? :D
 
@NathanJones Released a patch version of Gustav (updating dependencies)
 
@Zirak Shalom
 
@Neal My guess is that you'd have to configure stat.js to be able to determine if it was being called directly or if it was called through tell
 
@Zirak ╭(◕◕ ◉෴◉ ◕◕)╮
 
Don't care enough to look into it, really :p
 
4:42 PM
@SomeGuy im playing with it in the sandbox. it is a lil wiggy. I dont have thyme to look into it now...
 
!!stat CapricaSix
 
@RahulDesai Caprica Six (http://stackoverflow.com/users/1839506/caprica-six) has 1490 reputation, earned 0 rep today, asked 0 questions, gave 4 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ.
avg. rep/post: 372.5. Badges: 0g 7s 11b
 
For a second I thought there's something on my screen and need to wipe it off
 
!!zalgo someguy
 
@SomeKittens ṡ̟̣̠͍̫̄̍ͦ͌͑̃o͙̺̒̾ͦ̐́͢m͇͚̞͊̈́ͮ́̌e͚͕͍̻͞ͅg̪̳͇̲͙̗̟ͮ́͋ͭ͛͟uͭ̒ͮ͋̑̆y̸̛̦̩̝̞͕̞͓ͨ̋̃͢͢
 
4:45 PM
Heh
 
!!tell RahulDesai zalgo For a second
 
@Neal Don't be annoying, drop the @, nobody likes a double-ping.
Server error (status 500) occured (message probably too long)
 
lol wut
 
@RahulDesai F̸̧ͣ̽ͬ̐̆ͣ̃͒̑̽ͩ̃҉̴͈̙̺̣̰̤͔̩o̷̴̦̫͕̻̘̘̪̜̫͖͎̦̫͙ͭͬ̽ͭͣ̏͆ͯͩ̈ͮ͗̍̈́̀̚͢ͅr̡̢͗̎ͮ̌ͨ̑̍̅̿̄ͧͣ̅͒͐̍̕‌​̖͖̜̹̺̘͉̹͉̯͈̥̭̩͡͝ ̫̠̥̯̯̰̼̤̪̦̺̻ͭ̀ͩ͒ͯ̀͛ͨ̾͐̓͘͘͝a̸̝̝͓͙̻͇̭̺̱͚̦ͭ̄ͮͣ͗̄ͮ͛̚̕ ̯͇̹̗͇͖̰̻͈̖̺̣̠̻̬̯̈͒̅͋͑́͢ͅͅsͣͥͪ̓ͨͭ̌͋ͩͣ̆͛͌̎̎͑͡҉̡̗̯̩͕̗̤̺̤̝̰͔̮ĕ̗̝͎͛͒̈́̔ͥ͑̒̊ͨ͐ͣ̑ͬ̕͡cͤ̓‌​̃̊͌̏͗͘͝͏̬͔̝̞̭͚̱̝̳̪̮̦̹͇̟̪̲͔̯ọ͔̤̫̻̣͕̩͊ͫ̀̇̕͝n͍͙̜̲̪ͬͥ̆̾͋́̒ͤͤ̾̿̌̃͂̚͢͡d̵̸ͤ̒̐̓́̓̽͒̀͏̹̱́‌​͔̣
 
oh
:O
 
4:46 PM
;-)
 
!!zalgo whaaaaaat?
 
@RahulDesai ŵ̼͈̯̪͙͗ͪ̒̀͒̍͋͝h̷̨̳̼̭ͯͦ̒͗ͦ̾ͯą̟͍̟̬͙̪̓̑̽͐͌̿̂ͭ͠á̧͓̳̽ͭ͜a̼͉̪̙ͩͭ̇ͪå̢̛̟̩̿ͯͥ̍ͭ̎ͣ̄aͦ̑̿‌​̵͖̝̥̟̣͖͙̅ͨ̚̚͜a͚ͤ́t̸̡̖͔̞̫͙̞̭͚̊̐̅ͦ͛?̡̧̳̰̹̲̩̩̯̱͑ͪ͋͛ͨͅ
 
I think that's enough play with the bot
 
Thats good to know :)
 
otherwise just head to the sandbox ;-)
 
@SomeKittens hurts to read
 
@littlepootis If reading hurts, then don't.
 
@Neal ?
>̛́ T̸h́͠͞e ̷̕r͏̴͜oo͜m̕ ̀͘e̵͏̴n͟͟҉c͜͜o͠҉҉u͏rá̴g̷è͠s̢͢ ͟͟p̀͠e̴͞B̥̺̣̯̹̐̍͒̓ͥ̾e̹̳n͙̜j̼ͯͩ̄͑͆a͎̼̯̥̣m̖͓̖̀̋́ͮͦ̂i̪̥͉̬ͭ̔͌̓̐̿̋n̻̥̜͍͛̒ͨ̄̀ ̦͔͈͕̘̫G̝̞͓͙̖ͨͫͅr̘͛̓͗̅̈́̓̃u̐ͮ̐̒ẽ̝̩͇͚͎͐ṅ̥̮͓̩̰ͯ̆̽͒b͔̟͓ã̐̀̀̚uͣ̐̌͒̚ṁ͕͆̈̏ ̺̄͒̑̄͒̍H̫̐̃Ã͓L̞͍ͩ͒ͦ́P̳̖̺͍ͤͨ
 
var myDiv= document.createElement("div");
myDiv.innerHTML = response;
myDiv.setAttribute("content", "");
myContent[i] = myDiv.childNodes;
content[i].innerHTML = response;
For some weird reason, the first code doesn't work
While the second works
Both gets the same response
Am I missing something ?
 
Are you sure you want innerHTML instead of textContent?
 
4:56 PM
My content is a HTML page
That I'm retrieving via XHR to try to emulate a master page
 
then use DOMParser to parse it and then append it.
don't set it via innerHTML
 
Yeah, I don't want that either haha
 
@Neal ?
 
Ok, I'll look into DOMParser and try to get a result from it. Thanks @ndugger :)
 
You don't want to use DOMParser? Or you don't want to abuse innerHTML?
 
4:57 PM
I don't want innerHTML
 
good. Definitely look into DOMParser
it will give you a DocumentFragment
that you can treat as a document; query it, etc
 
Noob question
 
@towc thanks buddy!
 
Isn't the w3 csp powered iframe the best dom parser ?
 
wat
 
I'm voting to close this question as off-topic because that's how lambda's work. — Sterling Archer 22 secs ago
 
lambdas
"Lambda's work" is the work done by the lambda, otherwise known as the Jan coefficient.
 
5:09 PM
You get out right moment.now()
 
> Using the global moment is deprecated and will be removed in the next release.
 
ffs
You get out right let now = moment();
 
you have to require moment, nub
that's an actual warning, too :P
 
ITS IMPLIED AND I KNEW THAT BECAUSE I FOUND IT OUT LAST WEEK
IM IRRATIONALLY ANGRY AT YOU
now send me a snapchat you whore
 
@SterlingArcher It's not often I get to recycle a joke
in C#, yesterday, by Kendall Frey
@mikeTheLiar pi angry?
 
5:14 PM
lol
 
@SterlingArcher tonight, going to a big show`
it's warm enough I may end up taking off my shirt
 
/me winks
 
For some weird reason I can retrieve
data
:
"↵    "
And that is screwing my appendChild
How wrong am I ?
var myPage = new DOMParser().parseFromString(response, "text/html").getElementsByTagName("body")[0];

for (var myPageChildren in myPage.childNodes)
   if (myPage.childNodes.hasOwnProperty(myPageChildren))
      content[i].appendChild(myPageChildren);
 
5:33 PM
> pagina
 
I'm brazilian :X pagina means page in portuguese
 
use english variable names
 
@SterlingArcher you racist
 
Done :)
I'm getting this error btw menu.js:49 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
 
5:34 PM
I don't think you can appendChild a NodeList
 
It is hard to think in english, have creativity to name variables while answering colleagues in portuguese and listening to music in portuguese too :X
 
also, something shouldn't be both an argument to hasOwnProperty and appendChild. The former assumes a string, the latter requires a DOM node.
 
It's one of the two hard things in programming
- Naming things
- Cache validation
- Off-by-one errors
 
@SterlingArcher gonna snatchpat you so many videos of my pagina
 
some days I’m glad I’m a terrible programmer. I make all the mistakes in building a library and so whole thing is defensively designed.
 
5:37 PM
I can't say about other people, but I don't see most commands as actual words put together
 
@AndréSilva they are actual words, they're just in another language.
 
myPageChildren is type of string wtf ?
 
the first thing they teach you in foreign language classes is not to translate in your head
if (foo == bar) isn't if foo is loosely equal to bar, it's if (foo == bar)
 
@ssube If I put thought in it, yeah I can see that. But when I'm thinking about what I'm doing, I just know the procedure that I have to follow so I can reach what I'm trying to do :(
I'm almost sure I failed english in my last sentence :X
 
@AndréSilva what I'm saying is that "just [knowing] the procedure" is right. Translating it in your head will just confuse you.
I imagine it's more difficult when english isn't your native language, but even when english is your first language, the programming language isn't english.
 
5:40 PM
@ssube Yep, really confusing haha
 
Eventually you'll just start recognizing the patterns without translating them.
 
@ton.yeung My grammar is really bad most of the times ;/
 
At this point all I see is blond, brunette, redhead.
 
I don't need to translate to english, I can read and understand without realizing they actually mean something in my native language
Same thing for programming languages
 
5:44 PM
Hehe I posted it on codepen : codepen.io/dievardump/pen/dMePrv
 
Well... it's not a bad statistic considering most inmates are dropouts or poorly educated
 
I'm trying so hard not to make a racist joke here
 
I can't append this stupid freaking html...
 
Whoever helped make this, you are a wonderful person
 
5:56 PM
myPage.childNodes.length === 3 //true
for (var j = 0; j < myPage.childNodes.length; j++) // j = 0, j = 1, end of loop
 
the length changes as you move elements out of the collection.
so... after the first iteration, the length is 2 and j is 1, and after the second iteration j is 2 and length is 1
 
console.log("myPage.childNodes.length = " + myPage.childNodes.length);

for (var j = 0; j < myPage.childNodes.length; j++) {
    console.log("j = " + j);
    content[i].appendChild(myPage.childNodes[j]);
}
console.log("end of loop");
 

« first day (2008 days earlier)      last day (2941 days later) »