« first day (1668 days earlier)      last day (3287 days later) » 

6:00 PM
ninja taco :D
 
@AwalGarg, of course
@taco , copy and paste can be daunting at times !
 
That's basically my job as a dev; Professional Googler/Sample Code Copy-Paster
 
@SomeKittens no u
 
All my Promise code is really just @BenjaminGruenbaum SO answers
If I ever need to work with HTML canvas, I'll probably just re-use @rlemon 's code
 
@taco we've all moved on to observables now
 
6:03 PM
Gah! Fucking hipster devs
I can't keep up
 
@BenjaminGruenbaum I am not sure if anything needs to be done to the present way sync and async methods are separated. What is the need of this?
Are regular iojs users allowed to comment in there?
 
@AwalGarg, just see this google.co.in/…
 
@SomeKittens Can you link me to a reference page for "observables"?
 
@taco I wouldn't
steal Lokes code
 
6:06 PM
@taco or just ask @BenjaminGruenbaum for his slides
 
k
 
@AwalGarg sure, of course. You're even welcome to do so.
io.js strives to be inclusive.
 
Hmm, babel-node makes my code slower
 
to start or to run?
 
Run
Probably some ES6 features I'm already using are much faster natively in io.js
Generators
 
6:11 PM
@SomeKittens do you need to understand Promises/A+ to use this RxJS library? Because I don't
 
everything is faster when it's native
 
What's the proper function to use a function, then in x milliseconds, do something else? setTimeout, right?
 
But not 10x faster
 
@corvid yeah
 
@copy generators are ugly as sin to hack in, though
 
6:12 PM
Is there a preferred way to deal with library version conflicts with Browserify and Gulp? My app will live in a page that has a very outdated version of jQuery
I'm not sure if browserify-shim is the best since i've installed jQuery via npm
 
@ssube Yeah, that must be it. Let's see if I can configure it to leave my generators alone
 
meh, everything is broken now
 
@rlemon looks interesting! Pen it?
 
@black-perl Reputation is a lie
 
6:15 PM
:D
 
@taco it helps
 
especially my rep is extremely low
 
@darkyen00 you're a lie
 
@ssube we all are lies
we are just space dust which is barely sentient
 
@darkyen00, I don't know what it is. But be yourself man. Your'e beautiful -- Eminem
 
6:16 PM
@rlemon get the hue to equal ( 360 * ( radiant / ( Math.PI * 2) ) ) |0 ?
that way the the effect should be a lot nicer and more constant
we all know how flashy rainbows have killed children in africa
:P
 
yea I'll play with it more later
 
> All the world's a stage, And all the men and women merely players; They have their exits and their entrances, And one man in his time plays many parts
 
too much procrastination already
 
@darkyen00 +infinity
@darkyen00, you @ twitter ?
 
!!afk coding and things. you people are always so distracting.
 
6:20 PM
Nice, ./node_modules/babel/bin/babel-node --blacklist regenerator server/server.js
 
also, how about using hsl instead of crazy rgb maths? XD
 
@BenjaminGruenbaum commented.
 
@black-perl darkyen00
dunno though i might just quit.
@copy nodemon npm start
in package.json
start: "./node_modules/babel/bin/babel-node server/server.js"
then you can also do
 
@darkyen00, will catch u up ..
 
my stomach is acting like I'm gonna have the shits when I get home
 
6:22 PM
can you limit the size of a mongo collection?
 
npm start --blacklist regenrator and get continous rebuilds too :D
@black-perl i suppose we have met.
 
@darkyen00, may be we have !
 
Good comment @AwalGarg
 
I was at pycon 2014 last year
 
@darkyen00, anuvrat you know ?
@darkyen00, I was too.. might we have .. you can recognize me better here .. black-perl.me/ankush-sharma.html
 
6:24 PM
@BenjaminGruenbaum took a little git wiggling to make it work, but I PRed
 
wiggle your git
 
@NickDugger TMI dude
 
It's never enough
 
Thanks @MadaraUchiha
 
@BenjaminGruenbaum Petka has some commnets it seems
 
6:29 PM
He's the one who told me to merge, he's just giving you feedback for next time
 
I'll add more commits (and PR again), no biggie
 
@BenjaminGruenbaum +1 for the warn on late flag. Also, do you know if the require function will be deprecated when es6 modules become native?
 
It's being discussed, it's possible that import on native will return a different new API, for example a promise based one
 
so import could be async?
 
@BenjaminGruenbaum import isn't a function though
How would that work?
 
6:38 PM
Nono, I meant
require("fs"); // regular fs
import fs from "core"; // promise based new file system module.
 
smells of python
from _future_ import parentheses
 
@BenjaminGruenbaum wait... why? What about import of userland code?
 
That'd work, and it's just a suggestion
!!afk coding
 
!!afk ^
 
user2620028
!!afk video games with a side of unity3d
 
6:43 PM
!!afk turns off the lights
 
I think meteor is unhiding something I'm trying to hide...
 
@SomeKittens, finally worked, commander is sexy !
 
@BenjaminGruenbaum But what can you do with that?
 
@MadaraUchiha BenjaminGruenbaum is afk: coding
 
@ssube : i don't get your comment about sim city and "watching the world burn"
 
6:53 PM
wow, writing your own cli interpreter for node is incredibly easy.
I was fucking around with packages thinking it would be harder
 
good day guys !
 
@SomeGuy online>?
 
have a look at this line of code ::
  var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
 
Hi Everyone!
 
@LanceHietpas 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.
 
@KarelG Some men just want to watch the world burn. When you only want to watch a small chunk burn, SimCity.
 
can somebody take a guess on what that line of code is doing actually ?
 
@LanceHietpas Hello.
 
@AlexanderSolonik selects the 'next' child from the indicators.
I imagine.
re-wrapping it in jQuery seems redundant.
 
@rlemon good guess , thats exactly what i taught
 
6:57 PM
Hello!! Does someone of you know how to open a .ps.gz file ?
 
but can somebody expain the unusual syntax
 
ahh nnvm, it isn't redundant.
 
  var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
 
what is unusual about it?
 
the square brackets !
 
6:58 PM
children() returns a collection. [] looks at the specified index in the selection
getItemIndex returns a number
!!> [1,2,3,4,5][2]
 
@rlemon 3
 
!!> ['a','b','a','d'][1]
 
@rlemon "b"
 
and they should be 0-index'd
 
!!> [![]][![]]
 
6:59 PM
@JanDvorak "undefined"
 
if jQuery doesn't make it stupid.
 
@JanDvorak "undefined"
 
@rlemon Thanks genious !
 
no, "thanks guy who read the docs"
;)
 
I try my best to read them , but sometimes its painful LOL
anyways ! ttyl
:)
 
7:08 PM
you're painful
 
that agar.io game is really fun
 
When calling my function with it's local variables, do the variable values get stored in the stack frame or do they get memory allocated for them in the heap and get pointed to?
 
depends
 
on size?
 
not really
 
7:22 PM
@StevensHaen it might seem odd that I ask - but why to you care?
 
@SterlingArcher I can't stop playing it but I'm at work :(
 
The language specification makes no guarantees about the stack or heap or how code is run. As for what happens in practice - it depends what you mean by "local variables".
It also depends on the function, it might be inlined, it might be eliminated if it has no side effects, oh-so-many-things can happen
 
@BenjaminGruenbaum the locals are one in my function's scope and respectively will get either a pointer in the stack frame or their value stored.
 
I was in 4th place for a while
 
It is pretty uncommon for a local to end up on the heap, unless it's a reference that was newed up at some point.
 
7:24 PM
@StevensHaen they might get neither, it really depends
 
It will be on the heap anytime the compiler is unable to prove the variables won't outlive their scope's function
 
@StevensHaen Those are not exclusive options.
 
7:37 PM
iow, it is a huge mess. answer to most of the questions would be "depends".
 
Is "depends" ever a useful answer?
 
depends
 
> Is "depends" ever a useful answer?
> Can be.
> When can it be?
> Sometimes.
> What times?
> Depends.
It's like friend/buddy/pal in Canada.
 
So I'm pissing around in node trying to make a command line tool (for fun and learning) - so I'm starting with a google music command line utility. but I'm wondering about how to interact with it.
does 'chaining' calls like this make sense?
$ search "never gonna give you up" --limit=2
---------------------------------------------------------
a: Rick Astley - Never Gonna Give You Up (score: 100%)
b:  Robs fun never gonna give you up band (score: 60%)
$ add result
---------------------------------------------------
.. lists all playlists in a a,b,c
Which list: <- waits for input
or
$ add result --playlist="my new playlist" <- creates a new list and adds your track.
 
give users options
 
7:48 PM
or use readline
 
make sure you can parse your output and just let unix chain it
 
@AwalGarg that isn't what I asked.
 
initially I'd go for whatever is easier to implement
 
@JanDvorak both seem equally as simple.
 
but I like to use readline :(
 
7:49 PM
Make it interactive (like git add -p)
 
well I have only ever used it once
 
I've already figured out how to utilize process.stdin and stdout
 
music-lemon library search "stuff and things" | music-lemon playlist add
 
readline is not useful to me @AwalGarg I've already recreated it
 
@ssube i like that idea
 
7:50 PM
afk printer issues
I'm needed
 
@Jhawins doesn't know how to use a printer? Noob.
 
@BenjaminGruenbaum My friend, i have tried everything, and does not work. Can you help me a little bit, please?
 
@robe007 what specifically are you stuck at?
 
Can you please, go to my question, and see it. I have edited and updated
It only saves me the last item on the array
 
@rlemon stateful stuff can lead to trouble, because it obscures part of the system... I'd stay away from it unless you know you can trust your users to know what is being executed in what sequence.
 
7:53 PM
@rlemon wait you mean part of it right?
 
That being said, on a command-line app, that's not much of a problem...
 
@copy yea, but does the chaining make sense. my issue is that you have to know the playlist id to add to it, and I don't wanna make the users type that out, or have to type and remember playlist names (also names can dupe. good one google music) -- so I can list them out with some information and let the user pick a,b,c,d,etc.
 
Maybe implement it as a variable-setting command?
 
@AwalGarg no, all of it.
readline is like 45 LoC man.
not much to reimplement
 
Like, make a stupid-simple search "never gonna give you up" --limit=2 --var=myResult
or some other syntax
 
7:56 PM
see that makes less sense to me (from a user end)
 
or set myResult search "never gonna give you up" --limit=2
or some other syntax
set [var] [command sequence]
Sorry, I was raised on Windows Batch scripts
 
perhaps mimic the Ruby syntax?
 
@rlemon That makes sense. But why can't it be in a single step?
 
$ search "blah" -a [flag for add or some shit]
.. results listed with alphabetical or numeric labels.
Please select a track from above: [waits for user input]
.. lists all playlists
Please select a playlist to add the track from above: [waits for user input]
 
myResult = search "never gonna give you up", limit: 2
 
7:58 PM
Yeah, doing it in a single step is going to make it easier to automate
 
@copy sure it can. I'm questioning it all right now
trying to figure out a) what makes the most sense for a user and b) what makes sense to me (read: what I can implement on my own)
 
Otherwise you get scripts that look like this:
search "bla" --limit=2
a
1
 
@ShotgunNinja what would be automated?
 
indeed; don't expect your users to be human
 
@JanDvorak but I do! this is an API wrapper :P if you are a robot use the damn API :D
but I do see your point
 
8:00 PM
what if I want a CLI rather than bother loading a DLL?
 
That's another good point.
 
I'm also thinking of re-writing the api, as it is not in a nodeback pattern. can't be easily promisified
 
@rlemon why not just write it with promises?
 
This is all good design discussion, though.
 
8:01 PM
just because node favors shit patterns doesn't mean the rest of us need to
 
@ssube because nodeback then PR
I imagine the author has good reasons for no promise
idk.
this is all for learning exercises
@ssube what do you have against nodeback?>
 
@rlemon error first is annoying and promises are better
 
@BenjaminGruenbaum You saw code on my question?
 
nodeback exists because that one guy who wrote node didn't know much about things
 
8:03 PM
error first was annoying for the first 90 minutes till I got used to it, I see that as a pretty subjective argument.
 
nodeback is notchcode
!!urban notchcode
 
@ssube notchcode Badly written code, usually code thrown together and made to work.
 
@ssube Is that inspired by Markus Persson?
 
The problem is with the last 'then' that executes the ' multi.execAsync()'
 
@ShotgunNinja yup
 
8:04 PM
Promises let you handle error on on the level you need to without having to keep passing them up
but any api should be nodeback AND promises
 
I'am having some problems with promises
 
@ssube I watched him write Chambered for a Ludum Dare, and I've seen some of the Minecraft code, but I didn't know it was widely-known enough to have a UD entry.
 
and redis
 
Promises have a problem when you want to retain an async result across several more async operations
 
yea well, I know how to write the api with promises and nodeback. both would be likely equally as tedious. but with nodeback others don't have to use promises. and with bluebird they easily can.
which is why I would rather rewrite it to nodeback
 
8:05 PM
yea, internally you only writ for one
 
ultimately solved by coroutines
 
which one you chose shouldn't matter as long as it's consistent
 
coroutines haven't solved anything since 1992 needed fake threads in C
plus they use goto and thus are evil
 
Im going to have to think about this some more. lots of good points made though
 
aah the famous GOTO
 
8:07 PM
still not sure what the best approach should be :/
 
@ssube I meanthe yield keyword.
 
still being used in java's bytecode
 
Bluebird.couroutine(), uses es6 generators for promises to let you:
var result = yield callThatReturnsPromise();
they know.
 
monads ftw
 
@KarelG goto was mostly just stack preparation and jmp, so yeah, it's still used everywhere
 
8:08 PM
GOTO is fine, so long as it is abstracted FAR FAR away from me
 
@rlemon : GOTO jail µ(monopoly ref ? ;) )
 
jail
 
how about COMEFROM?
 
ah it's called jail
 
PLEASE DO NOTe that both "jail" and "prison" work
 
8:10 PM
goto hell
 
@Luggage You've worked with redis and bluebird?
 
only a little
 
user1596138
First day at work and I locked my keys in my truck lmfao (@Loktar)
 
I'am having some problems trying to save an array of names to redis
 
@Jhawins you didn't. @Loktar stole them off your desk and locked them inside. #prankDayOne
 
user1596138
8:11 PM
Good thing you can pick the lock on a Ranger with anything >4" long and <0.3" diameter
 
What kind of problems?
 
lol what @Jhawins
 
1
Q: Redis - Insert values from array in a transaction with promises (bluebird)

robe007I have an array like this: var names = ['Irina', 'Michael', 'Carl']; I want to insert them into redis using transactions with promises (I don't know another way). But I'am confused about how to do this; this is my code: var Promise = require("bluebird"); var redis = require("redis"); Promise...

 
@Jhawins how's the new place btw?
all moved in now?
 
user1596138
I hope they're out there in the truck anyway. All I know is they aren't in my pocket
 
user1596138
8:13 PM
@rlemon It's awesome. As soon as I have internet I'll have no complaints
 
you'll have to take some pics for us
make us all jelly of your new digs
 
user1596138
I will. I got some on my phone. All that's in there is a futon and clothes/kitchen stuff right now though it's pretty bare
 
appt or house?
 
@robe007 Someone already pointed out a problem you need to resovle in the comments on that issue
 
user1596138
Appt
 
user1596138
8:16 PM
780sq ft 1 bedroom apartment with central air/heat
 
ohh, your changed it and kept the original.
 
@Jhawins woa, pretty big appartment for a single bedroom
I used to have 485sq ft when I was living in a single bedroom appt
 
user1596138
@FlorianMargaine Right man. They're really nice. Ceilings are crazy tall it seems too
 
user1596138
Secure buildings (need a key or have to buzz me to get in) are a bit annoying but ehh
 
guys, how can I play music on a web page, and control what track is playig/pause and play it
 
8:18 PM
@Luggage I edited the question 30 minutes ago, and added 'then' according to the comments, but still not working
 
@Deep look up the <audio> tag
 
alright, thanks
 
You need to return promises form some/all of those .then()s
 
@Luggage What i should return from the second then?
 
you need to split that one and return both promises
return ANY promise it won't happen in order anymore
 
8:23 PM
@Luggage Please, can you post an answer, because i don't get it (:
 
multi.execAsync().spread(function(err,data){ is also some strange mixup of promise and non-promise code
 
@Jhawins If you don't mind, how much are you paying a month?
Also, has anyone played with the AudioContext? It was confusing the shit out of me last night, so I gave up and just went with new Audio
 
@NickDugger cant. stop. playing.
 
@SterlingArcher ME NEITHER :(
 
The biggest I've gotten is maybe fist sized
 
8:30 PM
It's like what Spore should have been
I've gotten really big
but I usually split myself to catch someone, and then regret it
 
@NickDugger @SterlingArcher are you guys talking about the game with balls?
 
?
 
user1596138
@NickDugger $813
 
user1596138
!!afk setting up shit
 
@Jhawins That's decent
@FlorianMargaine They're not balls, they're cells
 
8:35 PM
@SterlingArcher That's what she said.
 
@NickDugger yup that one. Got the link?
 
made 1058 points once :P
 
Wait, does that actually penalise you for running adblock?
 
8:38 PM
what region should i pick
 
hello everyone
 
@JanDvorak it shouldn't
@taco the one you're in
better internet connection
 
are those "regions" not being handled by a single server somewhere ?
 
typescript and dart are on the rise:
http://www.google.nl/trends/explore#q=%2Fm%2F0h52xr1%2C%20typescript%2C%20coffeescript&cmpt=q&tz=
 
@KarelG don't think so
 
8:42 PM
I was almost eaten by communism
 
the european region is having a turkish takeover
btw, I can't think anything hackable... the code seems to be done by a kid, surely there must be a break somewhere...
too many global functions...
I can't find the part in the code where the values get sent to the server
 
@BenjaminGruenbaum My friend, are you still here?
 
figuring out how to make a gif with recordmydesktop and image magick took just as long as writing the command line reader
 
stackoverflow.com/a/30161930/2476755 why would three people upvote an answer that returns document.write =/
 
I have wasted my day on these balls :(
brb snack
 
8:57 PM
ops original code has document.write
it isn't part of the immediate issue
so the answer'er copied it into his own.
 
Yeah, but by posting it as an answer, you're contributing to misinformation
@SterlingArcher what game?
 
@rlemon Nice. Now make a progamming language
 
heh, teach me how.
 
I don't know
 
@rlemon write a lexer, then a parser, then interpret it
boom, done
 
8:59 PM
 

« first day (1668 days earlier)      last day (3287 days later) »