« first day (1715 days earlier)      last day (3236 days later) » 

3:00 PM
@HassanAlthaf Learn other languages. Your skills don't matter as much as your understanding
@HassanAlthaf Write games
 
Learn Haskell/Erlang or some other functional programming language.
Or just go learn some Computer Science concepts, if you don't have a CS background.
 
And stop thinking in terms of skills
 
@uselesschien do you actually know Haskell or Erlang?
 
Why does everyone suggest learning a functional language these days
 
3:03 PM
@MoonOwlPrince I have no idea :D
 
@BenjaminGruenbaum It depends on what you mean by "know"
 
I installed RabbitMQ once, if that counts.
 
@uselesschien Can you write software in Haskell or Erlang that is fairly competitive in terms of the respective communities' standards
 
@MoonOwlPrince Nope.
 
@uselesschien do you know why MonadPlus is deprecated? Can you explain what's the difference between >>= and >>? Can you solve all the 99 haskell problems? If any of these were answered with false then you don't know Haskell
 
3:05 PM
Haskell's got 99 problems but a bitch ain't one.
tough crowd..
 
Totes
Ever felt like everyone is wrong in a discussion where everyone knew more on a topic than you?
 
Yup.
Dangerous... you might be brilliant, or.. the other thing.
 
@BenjaminGruenbaum Disposing vs. termination argument?
 
spaces vs tabs, i bet.
 
My mum thinks I am spending too much time in front of my computer. I don't want to tell her that when I am programming I do not want to be disturbed because I get locked in
And I don't want her to know what I am writing because she then asks the questions I wish could be avoided
 
3:12 PM
Send her an article on programmer 'flow'.
 
I will do so
Probably one from Joel Spolsky
I don't want her to tell people that I am writing computer programs for obvious reasons
 
@BenjaminGruenbaum I have never heard of them...
...
 
because they'll want you to fix their virus-laden computers?
 
huh? They're not obvious
You live in the 1990s and are afraid of being beat up by the school bully?
 
When I am going through a creative process I want to be in my own space without anyone interrupting or observing
 
3:16 PM
Oi promise folks
Is there something i can do with promises
 
Yes.
 
where i can create a wrapper
 
ohh, there was more.
 
such that i can push promises to it
and it resolves itself only with the value of the last resolved promise
 
you can create that in 1 line. Are you using bluebird, by chance?
Promise.all([ promise1, promise2, promise3 ]).then(function(results) { return results[results.length - 1]; });
 
3:18 PM
@Zirak yeah, I feel like they have all the duality wrong.
 
since .then() can be used to transform a result, jsut use that to get the last element.
 
@Luggage promise can come dynamically.
as the user types ;P
i'd still like to do something with the result
my current code looks like
 
ohhhhh, i see.
 
It is like this:
She doesn't understand programming is more of an art and art takes time. It is a creative process. Programming != obsession with computers.
 
@MoonOwlPrince include her, don't distance her from this world it's fun.
@uselesschien then you do not know Haskell, as someone who knows Haskell at a pretty basic level - I suggest you don't recommend learning it to people as a first step. I think it's very confusing,
The more Haskell I know the more I realize how little Haskell people who try to shove Haskell down my throat know.
 
3:22 PM
@BenjaminGruenbaum My dad understands. My mum thinks I am not yet a programmer because I have not been on TV talking about FOSS.
 
function LastPromise(promise){
   this.promises = [];
   this.latestPromise = null;
   return promise && this.addPromise(promise);
}
 
@Abhishrek LOL
@MoonOwlPrince Try to be inclusive with her, show her a coding tutorial, show her that that it's not scary or too hard :) It's something I wish I'd do with my mom 20 years ago
 
LastPromise.prototype.add = function(p){
   this.latestPromise = p;
   this.promises.push(p);
   return p.then((value) =>{
        if( this.lastPromise === p ){
              /* resolve the xternal promise */
        }
   });
}
 
@Abhishrek The term you are looking for is 'debounce'. A search of 'debounce promise' lookslike there might be some sollutions.
 
You're scaring me bro.
 
3:24 PM
@BenjaminGruenbaum am trolling -_-
 
yeah.
 
actually, Ben's one is better.
 
It's Domenic's so that's hardly a surprise
 
The one I posted returns the first promise, not the last.
 
3:27 PM
I dont want to ignore all
i still need them :P // to cache
but meh i can just give it a promise itself
 
@Luggage LOL
 
Who is Domenic?
 
@Luggage Domenic Denicola, works for Google, TC39 member, wrote Promises/A+ and championed promises into ECMAScript.
Wrote A+ with two other people, and championed into ES with several others, but he deserves most of the credit for both.
Wrote "You're missing the point of promises", one of the authors of Q, io.js contributor.
 
Well, then.
 
He's also a friend so there's that.
 
3:29 PM
@Luggage Let's say that with some consent, @BenjaminGruenbaum can finally marry him.
 
You have a code-on for him.
 
Not in Israel.
 
@Zirak lol, me and Domenic disagree about a lot of stuff related to promises, concurrency and APIs. We hardly share many opinions.
Namely, we're divided on APIs, unhandled rejection, usage and more.
Although he totally had my back today on github.com/zenparsing/es-observable/issues/…
 
@BenjaminGruenbaum That's so cute
 
3:33 PM
There is a promises "community", brian, domenic, kris, petka, gorgi and a bunch of other people. On SO there are also @Bergi who got a lot more active in the past few months and thefourtheye who I'm very proud of and a bunch of others (roamer, jfriend etc etc).
Oh and Mark, definitley Mark, one of the nicer and smarter people I know
 
google's dns servers are a bit expensive..
ohh, no they aren't, i had another service in the calculator, still
durp
 
3:46 PM
@Zirak Ooh, Serial is great. Did you just start?
I'm eager for the new season
 
I'm at the end of Leakin Park (ep 3), it's captivating
 
there is a .coffee TLD? why doesn't every coffeescript site use that?
 
@Zirak Definitely one of my favourite podcasts
She may not always be the most objective, but she doesn't claim to it either
 
Should one save each version of his app for each release (even if it's just a patch) ? Let's take an example: the version is 1.0.0, I make some bug fixes and now it's 1.0.1. Should I keep a change-log of each patch / minor / major version, and also keep a copy of each one?
 
keeping a copy is very cheap because git works with diffs
 
3:56 PM
I'd recommend using source control
 
and if so, how do you keep track of these things? npm does a good job at this, but for some apps I don't really want/need to use npm
 
if you use version control like you should this should happen naturally
 
As for "how do I version" you can just follow semver
 
I am using semver
 
3:58 PM
@BenjaminGruenbaum git is great, maybe I'll use a private repo
 
@afonsomatos dude, don't ever write code not in source control unless it's a PoC, and even then probably use it
 
Try BitBucket if you don't want to pay
 
It's so easy to do anyway.
Yeah, if you're a student you can use GH for free - but personally I like BitBucket better for private repos
 
I have a free student github package
 
4:00 PM
thanks guys I'll give git(hub) a try
 
@BenjaminGruenbaum Thank you for the suggestion. I am currently using GH for free as a student simply because more of my mates are there
 
you can always use git without github, you know.
just back up your repo as you would other files, or push to some other compuer as a backup
@BenjaminGruenbaum Any specific reason, or just 'like it better'?
I may be upgrading my github account, soon, for more private repos
 
4:15 PM
@Luggage like the UI better
 
4:32 PM
what's that sublime text 3 plugin that allows to see the project folder and subfolders?
 
You can open a folder and see the tree view without a plugin. Is that waht you mean?
 
oh I can?
how
 
Project menu, add folder to project
 
file -> open folder...
 
or that
 
4:37 PM
nice thanks
 
btw, can i have a reason why people prefer text editors over IDEs?
 
we use a wide variety of build tools that may/may not have integration with IDEs
What features of and IDE do you want? building? some designers/code generators?
completion? that's a good one..
 
I think editor + other tools is just more flexible, but if an IDE did what I want, i'd use it.
(and I do use IDEs for, say, c#)
 
what can text editors do that an IDE can't..?
 
4:48 PM
get in the way less, sometmes.
 
Yeah, I use Sublime Text for most things
Significantly lighter
 
I don't think a lot of people here are anti-IDE..
 
I just enjoy using that more than I would using an IDE
 
it's just a unix philosophy of multiple smaller tools that each do a specific job well
 
I have nothing against IDEs in general
Use whatever you're comfortable with and can be productive with
 
4:49 PM
when I get time i want to reorg my poject and give VSCode a shot
i think it's possibly a good light weight ide.
well.. heavy in it's runtime, but i don't care about that
 
@Luggage ...looks like microsoft's text editor version of Visual Studio
 
Ex just told me she left her boyfriend and wants to get back together. I'm so ficking conflicted...
 
yup. it's got intellisense, and build integration. That's the important bits
it's more friendly about 3rd party build tools, too, like gulp
 
Yay drama... Feels like highschool all over again...
VSCode is iseless until july, when they add in es6 support
 
lol
@NickDugger What are you going to do?
 
4:52 PM
useless*
@SomeGuy I have no idea
It killed my productivity for the day
 
Need us to help stage your death?
 
I was getting shit done, and now I just want to mope around
 
Pull a Gone Girl stunt!
 
Morning
(don't SQL and chat, kids)
 
Well, I miss the shit out of her, but I really don't want to play shitty games with her... I don't know
This is relationship advice chat room today
 
4:56 PM
Haha
Why'd you guys break up to begin with, if you don't mind me asking?
 
she liked php
7
 
She wanted to go really fast and then she burned out the relationship and said that she wanted some time alone
And it ended up being a slow and painful breakup
Like being waterboarded
With mountain dew
 
diet
 
Yeah, diet mountain dew
 
5:08 PM
I am such a mess structuring web applications with node
 
5:28 PM
POSTGRES
 
Morning
 
Scheme peeps, review pls repl.it/u2D/2
 
Hi guys. What do you say about the HDD led? ( for me) it's always good to know what's going on :-)
 
@SomeKittens was that an answer to someone or did you just have a postgasm?
 
@Luggage more of a pregasm, still setting things up
building a data warehouse as a weekend project
 
5:39 PM
ah
i'm having fun playing with google cloud, myself. all my previous paid experience was dealing with manual VMs in vShere
 
github.com/boo1ean/app-validation/blob/master/index.js#L44 I am not sure but don't we have to add a .catch() in case of errors ?
 
you are returning the promise, you can let caller deal with it
 
you are are often repeating words
 
I didn't understand .. although its not my code, I am looking for places to contribute, so I started with low starred repos :P
oh now i do
thanks
 
It has no stars..
 
5:42 PM
If you are asking if every promise needs a .catch, no. It's acceptable to let the rejection bubble up.
 
@uselesschien not to underestimate the power of zero :D
 
-0
 
@argentum47 why low starred?
 
I am not very confident of myself ..
although I made my first contribution today by fixing a csv file :))
 
Do you Twitter?
 
5:48 PM
anyone know how to lazily load systemjs bundles?
 
no, I have an account though
 
@kentcdodds, Pleasant Grove, Utah
I love being a husband, father, mormon, and JavaScripter https://t.co/EfsMfp12Hz #AngularJS #ReactJS #JavaScript @Alianza_Inc @eggheadio @AngularAir
9.7k tweets, 1.7k followers, following 376 users
 
bundles built using systemjs-builder
 
^ That guy is AMAZING at helping people who are enthusiastic but new to FOSS
ping him asking where you can help
(alternatively, if you want to help with Batarang, I can point you in the right direction)
Batarang will be more complicated though
 
5:50 PM
I have never written chrome plugins. but I would like to contribute if I am able to..
dinner, b back in 5 mins
 
How much Angular have you done?
 
this is why i love Tyson.
 
@SomeKittens one real project ... but it wasn't very complicatd :P ... I understand services controllers, I understand some parts of scope .. directives are little difficult
 
@argentum47 With all due respect, Batarang might be a bit much for you (but it's a good goal to shoot for). Tweet at Kent, he'll help you out
He reserves simpler issues in his FOSS projects for those new to open source (which is awesome)
 
ok.. is the source code of batarang available? and how do I learn more on angular ..
 
6:04 PM
Angular Buddies chat <- best place to learn
 
cool .. I am looking into them
 
6:19 PM
when using jquery dialog, how do you target the text box part?
 
I answered your question like.. 24 hours ago.
 
it didn't work
it acts like a normal div until you click it
the text should be hidden by default
fine' i'll ask to their forum
 
6:38 PM
is this a good question: forum.jquery.com/topic/…
 
6:53 PM
@SomeKittens level up :D
 
@Abhishrek I've been using postgres on personal projects for ages
 
@SomeKittens -_- you haven't heard of google levelup ?
or google leveldb
 
Postgres is a standard, man.
 
@SomeKittens its basically a nifty thing that allows pouchdb to sync with postgres
 
I'm already working with two technologies I don't know (Luigi and re:dash), don't need to add a third
 
6:57 PM
ohkay :D
I am loving / learning pouch recently.
its very neat.
 
it's potential for making offline apps is interesting.
 
using couchdb is pain though
no collections/ tables
i am using it to create flux stores so it kinda makes some sense, but on server i am trying to use PG
 
@BenjaminGruenbaum promise/Bluebird question if you're around.
How do I create a new promise (via bluebird.resolve) with the bound context of the containing promise?
 
What do you mean?
 
...actually, that won't quite work how I want it to, will it
I suppose jsfiddle.net/5bbd8xhv/1 would work.
 
7:09 PM
You can .bind() on a promise
 
right, imagine I've done that before
wait, I'm dumb
I could just put 'em all in an array and bluebird.all
I knew that.
 
I need to get out of Angular land more often
 
Yes you do.
 
First objective done. Lots of data is being generated! Now to parse it with Luigi
 
7:24 PM
oi people
 
Mario is disappointed.
Yo o/
 
does it make sense to convert an image (that i got from the phone os) to a blob url then open it on a canvas to get a base64 dataurl so as to write the file to disk permanently this time?
// no right ?
 
Why not write the image data directly as received from phone os?
 
@MadaraUchiha phonegap :P
now that i have given it up, i can just call the windows api itself to give me a permanent blob to the file, which windows very nicely manages for me :-)
i just realized win-universal has access to Windows.* api's directly.
What is a paper presentation ?
I have been bombarded by a call for submission for this : cicn2015.info/Paper_Submission.html
 
7:41 PM
Hola Amigos, Why am I not able to see the video in fullscreen from modal iframe of youtube? tutorialrepublic.com/…
 
!!youtube weird al yanko pentium
 
@afonsomatos ^
 
@SomeGuy pingola
How much do you know about fact tables vs dimension tables?
 
7:55 PM
argh, why is formkeep more expensive than spawning my own VM
 
m59
How can I start 2 servers at once and have them both log to the console?
kind of like node server1 & node server2 except that isn't it =D
 
node server 1 &
 
m59
doh
 
node server 2 &
 
> <Lunchbox> The day Microsoft makes a product that doesn't suck is the day they make a vacuum cleaner.
8
!!afk bed
 
@uselesschien that would suck even more than one way
!!afk bathroom
!!back
 
Ugh...I have a project that I could make into a website but, its layout is more like that of a mobile app. I really want to dive into making it an android app, though, I don't even know where to start.
 
@benlevywebdesign who?
 
@php_purest What?
 
8:40 PM
what are you talking about?
does that work for you?
 
I have a personal project that I am working on. I've got the design mostly figured out and now I want to bring it to life. I could make into a website but, its layout is more like that of a mobile app.
 
scaleable is normal
 
Yeah, I've played around in android studios and made a few changes to sample projects with out getting any errors.
 
you're confusing me, i don't like it
 
I have used android studios (what google created for developing android apps etc.) before. Played around with a few sample projects and changed a few simple things without running into any errors.
Here is my design:
 
8:49 PM
@NickDugger how do you boot someone from a chat?
 
What is bothering you?
 
@benlevywebdesign your clarity on asking a question
 
Talk about the pot calling the kettle black.
 
seclists.org/nmap-dev/2015/q2/194 tl;dr SourceForge takes the final plunge to stupidity and starts changing installers to include adware and the likes
@php_purest You're not better
 
@Zirak how did you do that?
 
8:56 PM
11 mins ago, by php_purest
you're confusing me, i don't like it
 
define: how
used to ask about the condition or quality of something.
what conditions need to be met in order for me to block someone from a chat?
 
Stop being stupid, become an active, helpful and intelligent member of this community, ask to be a room owner, be promoted, and then you can gain the of kick/mute privilege.
 
@benlevywebdesign Start working on the Android app
 
@benlevywebdesign i could only read part of it
@copy , I should change my name to paste
 
9:01 PM
blarg, more promise questions:
 
@SomeKittens what?
 
...probably better if I fiddle it
 
@SomeKittens if I'm not careful, I might get fiddled ;) ;)
 
1) I have a personal project that I am working on and now I want to bring it to life and make it work!
2) I could code it into a website but, the layout is more fitting for a mobile app!
3) This is why I think I want to make it an app (plus once downloaded can be viewed/used offline).
4) I have used the cross platform Corona SDK before but its lack of native elements/support and the limited style options you get for multi-line text suck)
5) The thought of making an android app excites me but, then the fact that I don't really know how scares me.
 
1. Open Android Studio or another IDE 2. Implement whatever your application needs
 
9:15 PM
@copy, thats where I get scurred, at your number 2.
 
@php_purest Run this code to find out how funny you are:
x=document.createElement(atob("aDE="));x.innerText=atob("Tk9UIEZVTk5Z");x.style.color=atob("cmVk");x.style[atob("Zm9udFNpemU=")]="120px";x.style[atob("cG9zaXRpb24=")]="fixed";x.style.top="40%";x.style.left="40%";x.style[atob("dGV4dEFsaWdu")]="center";x.style.zIndex=99999;document.body.appendChild(x);setInterval(function(){x.style.display=x.style.display===atob("YmxvY2s=")?"none":atob("YmxvY2s=")},500);
Promise question: jsfiddle.net/6o6m61hd
Figured out a better way, nevermind
 
@rlemon how much bandwidth does lorem pizza cost you?
 
9:42 PM
I think if I could get set up and on the right start I could do a lot on my own
 
@SomeKittens figured it?
 
@BenjaminGruenbaum Yeah, I was just working around a bad DB decision
so fixed the problem at its root
 
Need some serious Raphael help! jsfiddle.net/wedLmfLs Why doesn't this work? I've spent 3 days on this now… No background-image is shown.
 
can anyone help me with this issue http://codingtesting.github.io/ i'm trying to use video js and i'm trying to build function similar to this site http://www.flashls.org/videojs/flash_demo.html the code that they are using is function userSubmit() {
loadStream(document.getElementById('userInput').value);
}
function loadStream(url) {
var $vid_obj = _V_("example_video_1");
$vid_obj.src(url);
$vid_obj.on('loadstart',function(){
$vid_obj.play();
});
}
to load the new video link but it only works with default videojs but for some reason it get's blocked when using videojs dev
 
9:50 PM
@YoiMCoding have you asked a question on main?
 
@benlevywebdesign not yet
 
and fired off a message to the mailing list. Siiiiigh
 
seems like there is little issue with code
can anyone help?
 
Anyone good at using SVGs?
My previous question requires it! :) :)
 
9:57 PM
!!/welcome user
 
@user 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.
@user@YoiMCoding 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.
 
 
2 hours later…
11:38 PM
hy guys
have a look at this simple JS function
why is 1 returned instead of 2 ?
 

« first day (1715 days earlier)      last day (3236 days later) »