« first day (2701 days earlier)      last day (2472 days later) » 

12:00
someNodeAPI(args, (err, x) => {
  if(err) {
    // handle
    return
  }

  // rest of the cb
})
@towc with a syntax error
ooooomg
it's beautiful
@KendallFrey You wouldn't know what to do with her!
this is common, but it actually goes against a recommended eslint rule: consistent-returns
it's fake
fuck eslint
12:01
how about no
eslint makes a good point
the return is a hack
real programmers don't need to be told how to program
the most readable conforming solution I can think of is promisifying
@towc No, that's a different problem
12:01
@towc throw
throw new ReturnResultException( "here is your datas" )
@OliverSalzburg do you ever do that?
always
on errors
no, that error is a success
12:02
@towc Not for the use case you're intending
I was joking
@OliverSalzburg what do you do then?
oh
wut
wait what is the use case
I use as many returns as I like
it actually seems reasonable
joke -------------------- saturn ----------------- towc
12:03
what do you wanna do
@KamilSolecki early exits on node apis, without creating a ton of indentation
because the other way would be:
someNodeAPI(args, (err, x) => {
  if(err) {
    // handle
  } else {
    // rest of the cb
  }
})
but it gets messy soon
@towc Regarding consistent-return, we don't use that rule, but we're consistent in that we never return undefined implicitly
The rule looks interesting actually
it's not what I'm used to, but it actually makes a lot of sense (that eslint rule)
I thought the topic was multiple return paths in general
Which I find often much clearer than trying to force a single return path
it's on in the airbnb style guide
maybe I should consult that guide to see how they deal with it
12:09
Enabling new ESLint rules is scary. We always apply those changes globally and linter errors fail our builds
airbnb doesn't seem to mention it
wait, the linter makes the build to fail?
@Neoares it's common practice
if you set it that way
@Neoares If you configure it that way
12:10
"you can not build your project, you should add one extra space to the line 42 of file xxx.xx"
@Neoares Pretty much, yes
@Neoares it's not a joke
that's so nazi
who do you work for?
12:11
4-man company
We also have stuff at warning level, which doesn't fail the build, but we're pretty strict in that regard
human based
@Neoares all men?
yes
why?
curious
12:12
Consistent style is very important to me and "failing builds" is important because it fails the build in the merge request. So other developers can't have their patches merged when they are not in line with the style
that's why I said 4-man :D
@OliverSalzburg I won't go to sleep if I don't commit. And I can't commit unless all warnings are resolved. I am very tired.
@Neoares I hoped it was because of your issues with english
@KamilSolecki Pre-commit hooks?
@towc I guessed so
12:13
Or just obsessive? :D
but thankfully I know the difference between man and woman :P
do both of them have a soul?
kek
women don't
they're like cats
I don't assume gender
If I want to know someones gender, I just look at their paycheck
I don't assume gender
12:15
@OliverSalzburg obsessive.
I'm still not pretty sure about mine
errors and unfinished code makes me sit upright in bed and woner solutions
@KamilSolecki I can relate
Pulled 2 all-nighters this week :D
pulled or pushed?
well yeah you're a CTO
Well, I was the one working, so I pulled them, I guess
12:19
are we talking about git branches?
@BenjaminGruenbaum Did you ever notice memory leaking on hls.js? Right now, I'm pretty convinced that between a loadSource/attachMedia and detachMedia, round about 1,5K live Javascript Memory gets leaked somehow, somewhere
what is an "all-nighter"
@Neoares When you work through the night
and what did you pull
2 what
features?
12:20
2 all nighters
duh
he didn't sleep for two nights
dupa!
oooh!
lol ok
to pull off, as in, I did it
ok ok xD
pull looked so git-ish to me :P
btw, how do you pronounce git?
g - i - t
12:21
the G is like the J from jet?
@Neoares Like Linus does
like gif
@KamilSolecki how is gif pronounced lol xD
that's the only true way
I mean, I don't think I pronounce it good
Hello, if I want to upload my react native project to google drive, but the file is too big, should delete the node_module directly?
@OliverSalzburg yeah that should be the groundtruth
@KamilSolecki oh boy, you must have lots of sleepless nights
Would I damage something?
12:22
@Neoares like.. git.
you shouldn't have node_modules in your project
at least not committed
@Neoares Right, just like the creator of GIF is the ground truth for how that is pronounced
don't commit node modules, just package-lock and package.json
So the next person can do npm install
anyone who pronounces gif 'ji-ph' they deserve a special place in hell
12:25
to KamilSolecki: ok thank you~
I pronounce the G in git and gif, like in the "guitar" word
wtf is a juitar
that's bull-juan
@KamilSolecki depends.
honestly, for nodejs projects, I'd say, please do commit it.
because npm sucks.
@KendallFrey you read it the other way around
I didn't say i pronounce guitar as git
12:37
:P
ñeñeñe you troll ñeñeñeñeñe
by they way, how do you call "niño rata" in english?
rat child? :P
it's the typical 15y/o boi that plays fifa and call of duty, and follows shitty youtubers, and rages a lot when playing CSGO
accurate
but not useful if you don't know him
12:39
@FlorianMargaine That also saves you from people unpublishing their packages
And npm downtime, but you already mentioned that npm sucks :D
@Neoares At least all of his life is documented publicly for those who don't know him, right?
or even better, just don't use git, use SVN and commit everything
@OliverSalzburg that's part of "npm sucks" for me.
@SomeGuy lul
you're right
that it allows to do that is mind-boggling.
12:43
I'm happy that they do (or did), because I once had our CI publish a package that was not supposed to be published :P
If it was not for that, I'd have a different view on it ;D
@Neoares Chad
Okai folks, React design question
!!urban chad 7
@Neoares Chad Chad another term for chronic dope mary jane weed grass pot and so on.
@Neoares [chad](http://chad.urbanup.com/1908428) adj. used as a derogatory term towards others. used on someone being a dickhead or someone being a cockey asshole. also someone who is a huge loser.

verb. continually dropping the ball. pissing everyone off. screwing up really bad.
go home, cap
12:49
I have a component that is a THREE.js basic scene - It manages the rendering canvas, and all the basic functionality of the rendering thingies. Now, I am about to give it things to render. Would you rather pass them as props OR as children?
> excrement that comes form the butthole
> Your mom likes it when I drop a chad on her chest
urban pls
hey guys/girls. i'm looking to build a web app where i am replacing an existing codebase built on flash

i'm looking for a library that allows me to draw a node on a canvas, drag it around on the canvas, and enable right click options, delete node, and connect it to new/other nodes.

i'm obviously looking on my own but thought i'd run it by people smarter than me in the JS space to see if someone knows of a possible solution. i want to stay away from existing large frameworks like Node.js and use a smaller framework that has an API
@HollerTrain flash is about to be permanently deprecated.. you sure about that?
well he is replacing it
yes that is why i am building this with JS
12:51
oh yeah, I misread
np
client finaly realized their app isnt working in firefox :)
so now i have to build this all over in JS
could be worse. Your client could be using IE 8 :)
my problem is finding something with a strong API where if i have to, i can fork it and change it if it doesnt meet my needs 100%
@HollerTrain what do you exactly mean by a 'node'? Like, a circle thingy that connects to other circle thingies with line thingies?
@HollerTrain What was it build in before?
12:52
it was built in pure flash
Oh Flash, sorry, was still reading up
let me try to find a video of what i have currently one sec
Fucking Flash, I used to be an AS3 wizard
d3 is very flexible in its own rite
d3 is real nice
if you like maths
12:53
though might be better suited for displaying information, depends on what you need
right click -> create a node (which is just a box or a circle)
connect that to a new node
right click the node to add label, color; drag it around screen

this is basic prototype
@KamilSolecki I know, percentages are hard, poor baby
i actually just wrote a separate huge app using d3
and i'm not opposed to using it
but i wanted to make sure with smarter people in the JS space if there was something close to what i want out there
before i spend two weeks building it with d3
@OliverSalzburg dude, do you realize that Im now about to spend next 10 minutes wiggling the lines
12:55
I was already wiggling like a mad man before I was posting it here
It was proof that this is clearly the superior solution
@HollerTrain Well again, it depends on what you want to do
Maybe d3 would be a little overkill admittedly
you could consider paper.js
visjs is pretty cool. i'm trying to see if it has ability to right click? does have an API which is great
Right-click is sacred
Use Apple+LeftClick instead
left click and hold for 9 seconds
10 seconds is middle click, so don't hold too long tho
@HollerTrain Here's a click and drag example in paper.js
13:01
@OliverSalzburg neat
paperjs.org/examples/nyan-rainbow guess who's going to play with it for the next couple of minutes
@Neil ah very cool
have you worked with paper?
@OliverSalzburg hrm, that'd be fun to write in regular Canvas
@HollerTrain yeah a little bit, not a bad library
13:03
im trying to find API doc on it...
One of their examples is staggering beauty lol
2
warning, don't move your mouse quickly on that page
not with your speakers on
wtf I have been looking at this for 48h
Any of you using InTune?
It seems like their provisioning process involves manual labor
@Neil I did not read that before opening it...
13:06
And someone can't find the right floppy
my ears…
@Ikari Sorry :(
I used to prank my friends with that site, but it is sort of a mean thing to do admittedly
heh
now I need to send that site to all of my friends on facebook :p
First time I pranked myself
scared the hell outta me
@Neil took that challenge
I still see some remnants of the flickering when facing this chat
13:11
@KarelG did you at least have the sound off?
sound at work is always turned off
it is accompanied also by ear-piercing demon song
@KarelG try turning it on
@KarelG no conf call?
then I am not here :)
13:14
Did I say ear-piercing demon song? I meant "nice music"
seems a little low level
but I suppose it's not so different from paper.js really
@Neil oh my god lmao
I love how people do it anyway despite the warning XD
I didn't have my headphones in, but it was loud enough to hear across the entire office anyway
I didn't even read the warning
You should have put the warning before the link
13:24
This way it's more fun for everyone
If I get hate mail, I'll forward it your way then :P
13:39
i h8 u
no u
13:54
@OliverSalzburg jsfiddle.net/rlemon/79n06x0m it's too early to do maths.
so I'm stopping here.
so who feels there should be a flamboyant day in the years where all websites look as ridiculous as they can be like lingscars.com (no i'm not afflicated, but just look at it, it's glorious). Might actually make life fun as a JS dev :P
    Guys how can I get all the test of all element my code:-                                                                 html:-                                                                                                                                       <div id="root">
     <div id="my">
                  below-id-my
                  <ul >
                     above-li-element
                     <li> index </li>
                     aannnn
                     below-li-element
                 <ul>
please help me???
@Tschallacka I always thought it would be fun to make a page look as "90s style" as possible, complete with animated page dividers and dancing cg baby
someone should really make a plugin to do this
I'm learning javascript, how can I use endsWith with array?
Array.from(document.all, (index, node) => node.textContent);
13:58
@LucasBustamante it is string exclusive. You can do that only on Strings
that's a really easy plugin to make xD
might actually make one at osme point :P
would be tricky to know where to add the page dividers and animated cg babies
There's a bootstrap theme that makes things look old
I first tried to compare indexOf with string length

« first day (2701 days earlier)      last day (2472 days later) »