« first day (1779 days earlier)      last day (3168 days later) » 

8:00 PM
@Nick A lollipop?
 
oh right, I got it
 
a poop
 
I should start cooking garlic-flavored fake human necks.
 
a big, slimy poop
right in their vampire mouths
 
almost resists to out the word "lollipoop"
 
user3233318
8:01 PM
Do you guys think I am being a help vampire?
 
No oh oh oh oh.
 
Not really, but help vampires do hate getting their XY problems solved
 
Hey guys, when I buy a house, I'm probably going to buy a new bed. Any suggestions?
 
@taco foam, not springs
 
ok
 
8:01 PM
@taco Sleeping roll and sleeping bag will save money?
 
user3233318
That does not make any sense. Why would somebody hate getting their XY problems solved?
 
@Callum I'm 20 years into my career. Time to do grownup things
 
@Callum then I suggest a wide armchair.
 
@FlorianMargaine This is impossible, I can't use vim, what was I thinking, I miss emacs, help me
 
That time when I realise that I'm playing with nodejs and my variable is unidentified because of ASYNC. Oh whyyyy?
 
8:02 PM
help vampires want code
 
I prefer springs
 
getting their problems explained requires them to think. They don't want to think.
 
Just foam is shit
 
You can get one that has foam over top of the springs; those are decent
 
8:03 PM
I did see a house selling for $218,000 yesterday where the guy was sleeping on an air mattress
 
Only if it's thick enough that it won't get pierced over time
 
I sleep on an air mattress; I spent like $120 on it, though; It's really nice
 
user3233318
@JanDvorak I think you are talking about people that ask help with their homework. Sometimes they don't understand the topic and want to finish the assignment anyway.
 
sleep numbers is just a glorified air mattress that people pay thousands for
 
What the fuck kind of beds do you get that have the springs pierce the top?
 
8:04 PM
@Nick Give me a brand so I can get a general idea of what you mean.
 
Uhhhhh
serta?
 
@Nick 80's mattresses did this alot for some reason
 
@user148098 that's a particular race of help vampires
 
@Callum I've used Vim in the past but then ran for the Emacs hills. Trying out Evil, which is an Emacs package which gives Vim-like bindings. Am sad.
 
user3233318
@JanDvorak There are races now? lol
 
8:04 PM
You're supposed to replace at about the 8 year mark, unless you're like me and buy cheap
 
Another, very similar, one are those who want their programming job offshored to SO
 
@Nick I've had the same bed for >10 years. #gehttaeh
 
replace it
It's not good for you
probably full of dead skin and dick sweat
 
I never "got" Emacs or Vim
 
@Nick When my bed broke, I used the bare matress. I finally replaced it when I got a nasty tear in my PJs.
no sperm and for sweat there are bedsheets
 
8:06 PM
The fact that you rubbed the fabric off of the top of it so much that the springs pooped through is a bit concerning; did you do bedroom olympics, or something?
 
@Claies As a DC Tech back in the day when a server was down, vim became my goto for reading configs + it's powerful.
@JanDvorak o_O
@Nick lol
 
I use a mix of emacs, nano, vim and gedit, because I find that they suit different things. pl0x dont stab
 
stabs Callum for a missing apostrophe
 
@Callum Elaborate?
 
but yeah... too many editors
 
8:08 PM
I have installed Linux hundreds of times over the years, but I still end up using windows plus visual studio
 
huh
 
I like Sublime
 
how would you use those when a RAID drive fails on a Linux server and it's not on the network
@Claies I take it you mean when you SSH in?
 
Well, it depends on what Im doing, I usually go gedit if I am reading extensively, nano if it is a quick thing, emacs I only really use for config and vim for everything else
 
user3233318
What do you guys think about this function gist.github.com/anonymous/9bad3100bfdba871f5c0? It creates a directory tree with the folders that have html files.
 
8:09 PM
I have 2 mac minis, but I barely ever use them
 
Macs aren't for everybody
 
I have two linuxseses, one ancient macbook and an equally old imac.
 
You could install Windows on them though, if they're intel
 
no, I mean some people swear by programming in Linux or MacOs, but I barely ever use either for day to day purposes
 
8:10 PM
I love OS X though
 
@Callum Why emacs for config? Why nano for quick things? Why not, say, vim for both, if you're already using it for everything else?
And what's stopping you from reading extensively in vim?
 
@user148098 setting properties on a function? O-o
 
Yeah I was a RHEL Admin and always used OSX for my desktop. I don't like Linux window managers
 
user3233318
@JanDvorak static variable.
 
But why?
 
user3233318
8:11 PM
@JanDvorak All calls to that function need to "see" the same variable.
 
@Zirak I've just always done that, no clue why. And yes, I could make the full switch to Vim, but reasons.
 
Usually one uses the module pattern if you want a private global.
 
user3233318
@JanDvorak Is not a global variable. That variable is going to be used only by that function. So it belongs to that function.
 
@taco HEATHEN
 
Then make it local to that function.
 
8:12 PM
heh
 
@Zirak Like a pro.
 
@SomeKittens I worked for Mindspring/Earthlink in 2000 (Dialup ISP like AOL), and our founder worked out a deal with Steve Jobs where OS X would ask you to call us for dialup. I've been using OS X since 2001.
 
user3233318
@JanDvorak But all calls to that function need to "see" the same variable. A single variable with a single value for all the calls.
 
Usually when I recurse I recurse in an inner function, and use the outer function as a recursion-global scope
 
@taco sweet deal
 
8:13 PM
did someone send out the weekly email saying Angular 2.0 is "near release" a day early this week? huge spike in angular 2.0 questions this weekend :/
 
Did it bump to Alpha?
 
function traverse(tree){
  var acc = 0
  (function visit(node){
    ...
  })(tree.root)
}
 
no, but every week someone is claiming that it's near release, though they can never provide proof of where they got that info from
 
user3233318
@JanDvorak As you know, I don't like to define nameless functions inside other functions. I think the code looks messy to me that way.
 
Mac OS's since 2000: OS X ... Windows: Windows 2000, ME, XP, Vista, 7, 8 ... Linux: ergh? Roll your own? Use one of 10,000?
 
8:15 PM
You forgot Windows 10 :P
 
@Claies Speaking of, I heard they were about to cut Angular 2.1
 
user3233318
@JanDvorak That particular style have problems with semicolons. You need to add a ; before the (function
 
@user148098 nah, anonymous functions are a standard thing in Javascript. ES6 even adds () => ...
 
No stupid UI changes. Fuck Windows Vista/7/8... I'm going to buy Windows 10 though
 
Batarang's just about ready!
 
8:16 PM
@user148098 yeah... but I wouldn't call it a problem
 
user3233318
@JanDvorak They added => because clearly nameless functions in JavaScript are verbose.
 
@Claies Good to see Windows going back to it's roots a little
 
I would like windows 10 better if I could change the color of the taskbar; this black taskbar is annoying
 
I just forgot the semi; too much ruby recently
@user148098 less so than named ones
 
@user148098 That's not why they added it
 
user3233318
8:16 PM
@JanDvorak If you use my style, forgetting semicolons would not be a problem.
 
I think they should've stopped at Windows 2000. It was perfect. Then they quit supporting Direct X on Win2k, so I said fuck this shit
 
user3233318
@SomeKittens Why they added it?
 
@user148098 so, you subject your coding style to conform nicely to ASI? I guess you never return objects either?
 
@user148098 maintain this
 
@taco nah, my favourite is Win7
 
user3233318
8:17 PM
@JanDvorak ASI?
 
Automatic semicolon insertion
 
@JanDvorak That's cool. Personal opinion. But I like a start menu
 
user3233318
@SomeKittens I am confused. But I don't know ES6 well either.
 
@taco Win7 have a start menu
 
8:19 PM
I use an Intel NUC with Windows 8 at work, and it always launches the stupid tiles
 
user3233318
@JanDvorak What is the problem of returning objects?
 
*has?
@user148098 if you start the object on the next line, ASI will screw you over
 
@JanDvorak I forgot they abstracted away things like Device Manager, Add/Remove programs, etc
They made Networking more complicated after Vista
Just show the network connections
 
Networking? TCP/IP or bust
 
sorry, but posting a vevo link in your blog post doesn't exactly scream "professional development company" lol
 
user3233318
8:20 PM
@JanDvorak What else do you think about makeIndex besides the pending field?
 
It's a factory...
I really want ||= to be a thing
 
user3233318
@JanDvorak It doesn't return anything. How is that a factory?
 
oh, wait. How about generateIndex, then
 
user3233318
@JanDvorak Why I would start a statement with an object literal?
 
user3233318
@JanDvorak I think make is better because is shorter.
 
8:22 PM
@user148098 mkIx is it then
 
How do I add to the PATH variable in Linux?
 
I can't tell, haven't been paying full attention. Is @user148098 just being belligerent?
 
user3233318
@SomeKittens No
 
@user148098 Of course you think you aren't. You think you're just doing what a reasonable person would under the circumstances.
 
@SomeKittens they're stuck in their ways
 
user3233318
8:23 PM
@Callum PATH=STRING:$PATH
 
@user148098 how do you deal with people who want to make two indexes at once?
 
I think I play video games too much; I have 220 games in my steam library
 
@Claies Talk to @Loktar
IIRC, there was one point where he owned more Steam games than he didn't
 
user3233318
@JanDvorak you call makeIndex in the callback.
 
@user148098 Worked, thanks!
 
user3233318
8:25 PM
@JanDvorak mkIx is horrible. That is too short.
 
@user148098 so... the caller has to ensure there is no pending calculation before requesting a new one? That's horrible.
 
@Claies I have 149, almost all unsuable because I deleted Windows and installed Linux :)
 
(frowns at the SE API)
 
what about myFavoriteIncrediblyLongNameForAnIndex? :)
 
user3233318
@JanDvorak I don't know why he would have to ensure there is no pending calculation.
 
8:26 PM
@Claies I'd say it's par for Java
 
or C#
 
user3233318
@JanDvorak You can also call makeIndex twice.
 
4 mins ago, by user148098
@JanDvorak I think make is better because is shorter.
1 min ago, by user148098
@JanDvorak mkIx is horrible. That is too short.
 
@user148098 because you share the same pending counter between two top-level calls to makeIndex. If two calculations run at once, one of them loses their callback.
 
8:27 PM
I think he's trolling you guys at this point, lol
 
so... kicking boots after all?
 
:+1:
 
@JanDvorak Yeah, he's not contributing anything
 
user3233318
@JanDvorak I guess you are right. That function don't work well when you want to create more than one index.
 
honestly, I tend to be a bit more critical of posts from people that can't change their name from "user<randomNumber>"....
 
8:29 PM
I think I'm going to go enjoy this lovely day
 
user3233318
@JanDvorak I think a nice solution would be to add one more argument that is an object. That object could be passed to the recursive call. Since it is an object that would be passed by reference, not value and all calls will see a single variable.
 
I will see you all around, maybe with good news about the house. Not holding my breath, this time, though. I've been through this once already. :/
 
@taco good luck, man
 
@user148098 so... the caller is now responsible for making you a suitable scope? Not nice.
 
user3233318
@Claies Why should I change my nickname?
 
8:31 PM
^^ lulz
 
Fight the power @user148098
cya
 
user3233318
@JanDvorak No, the caller still calls with makeIndex("/folder", callback) I can initialized that variable in the function.
 
Even if you use a default value, the caller is perfectly able to confuse you. Accidentally, even.
 
user3233318
@JanDvorak I don't see why giving more power to the caller is a bad thing. It the caller really wants to break things I am not going to stand in her way.
 
8:33 PM
"her"? O_o
imagines a CD stuffed into a heart-shaped chocolate box
 
user3233318
@JanDvorak him or her way. I use her to not be sexists.
 
!!youtube heart shaped box
 
@CapricaSix ew
 
@JanDvorak yer face is ew
 
8:35 PM
!!urban yer
 
@JanDvorak [yer](http://yer.urbanup.com/1590139) 1) An alternate way of spelling "You're" or "Your."

2) An alternate way of saying "Yes."
 
user3233318
@JanDvorak Thanks for the advice on calling that function twice. Since I only call it once I think I wouldn't have noticed that. Anything else? I think the indentation is too deep, but I am not sure if that is a bad thing.
 
Two spaces is the convention
 
user3233318
@SomeKittens I was talking about the number of levels.
 
Bluebird.promisify?
 
8:40 PM
@user148098 Use "they" to be all-inclusive ;)
 
or "h*" if you want to be an all-inclusive hipster
 
user3233318
@Callum Is grammatically incorrect.
 
user3233318
People are talking about ze, but I think that is too much.
 
There's even "themself"
 
8:42 PM
Just use "they"
If people complain, they can twat themselves over the head with a dictionary
 
and if someone still complains, they can ... themself.
 
user3233318
My opinion is that people should use he and him. The language should not change artificially to reflect opinions and agendas, but that is just my opinion. I respect people that don't like him and he, because they do have good points.
 
user3233318
But they is just wrong. It doesn't work like that.
 
It works like that just fine
Just like anonymous functions
 
user3233318
Is grammatically incorrect.
 
8:45 PM
@user148098 That's an absolutely fantastic opinion. Tell me more!
 
Your reply is
 
user3233318
@SomeKittens Thanks. See, he and him are singular, so you can't replace by they and their because those are plural.
 
You're just being a grammar-*bad word here*
 
user3233318
@JanDvorak I am sorry about my grammar. I should find time to study more.
 
@user148098 I'm sure someone of your level of intelligence would never mistake sarcasm for sincerity.
 
8:47 PM
"you" is also often used as a singular
 
Languages change,
 
@Callum Nazi. Nazi.Nazi.Nazi.
 
@SomeKittens Nazi's a bit too light nowadays IMO
 
@SomeKittens wow. I did not see that coming.
 
user3233318
@SomeKittens The same for you.
 
8:47 PM
New computer ^^
 
crl
!!urban nazi
 
@crl [nazi](http://nazi.urbanup.com/1116475) An acronym for National Socialist; from the German NAtionale soZIalist.
Refers to members of the National Socialist party, or anything to do with the National Socialist party.
 
@BenjaminGruenbaum specs?
 
!!urban grammar nazi
 
@JanDvorak Grammar Nazi Someone who believes it's their duty to attempt to correct any grammar and/or spelling mistakes they observe. Usually found hanging around Irc chatrooms hounding "n00bs".
 
8:48 PM
it also has roots within Hungarian I believe, meaning "fool"
 
@SomeKittens surely it's faster than my toaster
 
@user148098 ooh, man, I just got burrrrrned.
@JanDvorak hotter, too
 
@SomeKittens Lenovo T450s, finally gave up and got a decent work laptop :)
Got tired of the mac.
 
Nice
 
user3233318
@JanDvorak Yes, "you" can be singular or plural. Some people in USA use the word all or guys to make it clear when it is used as singular and plural.
 
8:49 PM
> up to 19 hrs battery life
wooo!
 
Yeah, it's a very pragmatic laptop.
 
@user148098 so, why not "they"?
 
@user148098 There's also a singular "we"
 
user3233318
@JanDvorak they cannot replace he or she, because he or she is singular and they is plural.
 
8:50 PM
We used to think of ourself as the king of Utopia.
bam, singular "we"
 
user3233318
@JanDvorak I think we is plural.
 
Do any of you guys have experience with Dokku?
 
@user148098 then explain that example
 
user3233318
@JanDvorak We used to think of ourselves as the king of Utopia.
 
user3233318
@JanDvorak wait
 
user3233318
8:52 PM
That is so wrong
 
@user148098 that would be incorrect.
You can't say "kings" either
 
user3233318
We used to think of ourselves as the kingdom of Utopia.
 
user3233318
There you go
 
crl
kingdom is singular too
 
@JanDvorak @user148098 mind taking that to another room?
 
8:53 PM
@user148098 wrong both gramatically and semantically
king != kingdom
 
user3233318
@SomeKittens I am sorry to bug you. I will stop after one last message.
 
user3233318
@JanDvorak You are funny. I like you ;)
 
$5 says it won't be his last
 
here you go
@user148098 double bam: en.wiktionary.org/wiki/themself
 
8:55 PM
It's almost as if holding an opinion doesn't magically rotate the universe to support said opinion
 
@SomeKittens Wait, wot?
 
@Callum inorite?
 
@SomeKittens That should totally be a Magic the Gathering card
dissenting opinion: exchange any number of player's creatures with the same number of the opponent's creatures
flavour text: because the universe totally does revolve around what you think.
> eroticism: the eff and blow of human relationships
 
@SomeKittens This can't be right... I thought it did, because my opinion matters more, because I am the uniqueist.
 
Does anyone know what the -C option does in the ls command? In the docs it says it displays by column whatever that means, but I get no different output if I omit it, even when there are a ton of files.
 
9:02 PM
ok... night!
 
`ls` displays in three columns for me,
`ls -c` displays in two columns
I think it depends on screen size?
 
@JanDvorak
 
@Callum Not here
 
@SomeKittens lol
 
Should that not be Dissenting Opinion (Exchange...opponent's creatures)?
 
9:08 PM
/me taps 2 mana
 
user3233318
9:27 PM
Do I see freakazoid on a magic card?
 
@ThiefMaster We will visit you
 
user4639281
Any es6 people in here?
 
tons, but please don't ask if anyone's around, just ask
 
user4639281
Is there a reason to not do the following:
Object.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
 
user3233318
9:43 PM
@TinyGiant I am not an es6 person, but some people think that extending default classes like that is a bad idea.
 
user4639281
Well, the DOM shouldn't be extended, but I don't actually see a reason not to do that.
 
@TinyGiant If you want to iterate over an Object in ES6, use for...of developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
user4639281
for...of is not for plain objects as it is because they have no Symbol.iterator.
 
oh right, misread
 
user4639281
That's why I just scabbed over the Array iterator onto the Object prototype.
 
user3233318
9:46 PM
@TinyGiant Does it work?
 
user4639281
Yes
 
user4639281
From the tests that I've done.
 
@TinyGiant The problem with that is now Function, Date, Boolean and null all are iterable
 
user4639281
Only if they have enumerable properties.
 
user3233318
9:49 PM
@TinyGiant Humm. I would stick with the standard to make sure that my code works. And besides irrational people that don't like things just cause, I don't see any reason why not.
 
user4639281
It won't iterate a boolean
 
@TinyGiant right, but you're sticking things on Object's prototype, which impacts a LOT
@user148098 Your contributions are not helpful
 
user4639281
Well, yeah but it is just a reference. It isn't a copy.
 
user3233318
@SomeKittens I am trying to help.
 
@user148098 intent doesn't mitigate results.
 
user4639281
9:51 PM
What would be the difference between that and if there actually was an iterator built in to objects?
 
@TinyGiant I'd personally avoid it, as I can see odd bugs cropping up in the future
I'd use:
 
user3233318
@SomeKittens Recommending the standard is not bad at all. How is that bad advice?
 
for (const key of Object.keys(obj)) {
    let val = obj[key];
    // use val
}
@user148098 Last warning - don't belabor the point
 
user4639281
Well yeah but then why not:
 
user4639281
for (var key in Object.keys(obj)) {
    var val = obj[key];
    // use val
}
 
user4639281
9:54 PM
Which is what we use already.
 
@TinyGiant That's just the ES5 version?
I'd prefer iterating Object.keys over modifying the prototype
 
user4639281
What's the point of a for...of loop if it doesn't work on objects :(
 
user4639281
I'd rather use a generator, it just sucks that you would still require extra markup to do something that can be done with just the Array iterator.
 
user4639281
Well, thanks anyways. Have fun :)
 
9:58 PM
Hi all
 
@pingo Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
 
@pingo hello
 
Wondering how i can parse a json response with 20 objects
Figured out how to do 1:
 

« first day (1779 days earlier)      last day (3168 days later) »