« first day (1594 days earlier)      last day (3361 days later) » 

12:01 AM
Chrome's task manager shows 30x more RAM used than the JS heap allocation is. What gives?
 
var foo = "banana"
  , bar = true
  , baz = {fizz: "buzz"}
  ;
What do you guys think of that code style (leading commas, semicolon on newline)?
 
gag me with a spoon
 
because?
 
@Shmiddty I don't like it, but it's ok.
 
We use leading commas (and 2-space indentation) in our React project. This is the only way it's legible to me. The trailing semicolon isn't really important, I just thought it was a good explicit indicator of the end of variable declaration
We use leading commas so that it is less likely that you'll accidentally omit one, causing an implicit global (I should start employing "use strict";, amiright?!)
 
12:12 AM
@Shmiddty YES
 
but how to get buy in?
I can't even get people to be consistent with anything ever
 
@Shmiddty ugly as fck, but useful
 
@CSᵠ ugly? I actually kind of like the line that is created. When you're scanning a file, it's a pretty strong visual indicator
 
@Shmiddty Do it, create PR. It's much easier to ok something that's already been done
 
12:18 AM
// careful: will break
a = b + c
(d + e).print()
That's enough reason, right there.
var a, b, c
(function(){...})()
^ not that uncommon
Or, what could actually cause problems:
 
for my eyes only this looks ugly:
var o = {};
//or
var o = {
    someProp: 'bla'
};
 
var foo,
    bar
    baz
(function(){...})()
Oops, forgot a comma. If baz happens to be declared as a function (implicit global, perhaps?), we're going to have a difficult to debug error
 
then var var var
always the safe bet
 
yeah if you want to type var every time
 
yeah, code will look condensed and you actually have to type 4 characters instead of touching the tab
 
12:27 AM
@CSᵠ If there's only a single prop, I'd just inline it
if multiple props, separate that declaration from your primary var block
 
is there somewhere a decent generally agreed coding guide/style for JS ?
 
It generally depends on a number of factors
including the team you work with
what technologies/libraries/frameworks you're using
etc
 
yeah
i'd go with PSR-2 as much as possible for JS also
 
In React, it's common to put component property declarations on individual lines
 
only good thing php-fig made
and add to that preferred single-quote usage (google does this also, to inject html double-quoted)
 
1:04 AM
does ES6 allow for a trailing comma on the last item in a list?
 
user4330208
All i want is for the whole page to have a loading cursor but whenever i mouse over a link or text my cursor is overridden! Why? Why CSS?
 
user4330208
straight up html{ cursor:wait !important; }
 
user4330208
im gonna try !reallyF***ingImportant
 
If you want to be a real dick to usability you can put a full page div over everything
and set the cursor on that
 
user4330208
I found solution
 
1:15 AM
* { cursor: wait !important }
 
user4330208
its *
 
because fuck the users
 
user4330208
thanks @rlemon. I'm kind of scared now though because how the heck do I set that back to normal in JS
 
you don't do it in the first place :P
 
user4330208
im used to getting stuff by ID then setting class
 
1:16 AM
html.loading * {?
 
user4330208
how the hell do i get * by id
 
and just toggle .loading on html
 
user4330208
GENIUS FREAKING PEOPLE
 
user4330208
I wish all of you were girls so... nvm. AFK
 
wat
 
1:21 AM
!!afk zone-out time
 
user4330208
when i say AFK it just means i'm coding
 
when I say GAME it just means you lost
 
user4330208
I'm Black.
 
user4330208
an I got jungle fever.
 
any opinions on reddit+nodejs around here right now ?
 
1:35 AM
reddit is involved in nodejs/
i tried reddit.com/r/nodejs and it said it had moved, click anywhere to continue
i fully expected it to redirect to /r/iojs
 
user1596138
@david lol did it
 
nah, it went to /r/node
@jAndy what is going on with reddit and node?
 
@Jhawins Not yet. It seems like we're healing at roughly the same pace, and you're what, half a week ahead?
@SomeKittens Not really digging the art style
 
user1596138
@Shmiddty something like that
 
user1596138
I actually had a piece/pieces of tooth come out today. It was odd
 
user1596138
1:49 AM
I wasn't gonna bring it up tho lol it was kinda gross
 
user4330208
Crap i know this is really easy but how do i write if( 1 second has passed ){ doSomething() }
 
I think that means the surgeon was lazy, right?
 
ahhh lol
I meant redis+nodejs
 
@rlemon FF sucks at <ruby>
 
yes
and Opera
 
user1596138
1:53 AM
@Shmiddty I think so. Or they were pretty small and maybe he didn't see them :? I think they broke into quite a few pieces they were at a pretty severe angle froward lol
 
I'm just thinking about using it for one or two private projects I have in mind. I still love couchdb tho
 
but Opera sucks at everything :P
 
then the tag sucks ,
 
@jAndy lol
 
@rlemon xcept resources
 
1:53 AM
Chrome > all
COME AT ME BRO!
 
@jAndy I have used redis and node... it went okay. I made a reusable REST api that I use for small projects that need a dumb backend
 
@Jhawins Seems like negligence to me. If the skin had healed over these shards, I can imagine that would cause problems
 
user1596138
@Shmiddty Eh. I looked it up online and it seems reasonable. It said they'd get pushed out by the gums on their own but it could be painful but seemed to be a normal enough thing.
 
oh
cool
 
user1596138
I saw some bad stories / pictures tho lol
 
1:56 AM
not cool
 
user1596138
Nope. But I don't think I need to be concerned it's steadily bugging me less and it only does when I'm investigating it anyway lol
 
user1596138
If I hadn't found it by accident I wouldn't know about it. It was probably there early on
 
yeah, my holes are healed enough that I can use mouth wash now
 

« first day (1594 days earlier)      last day (3361 days later) »