« first day (1901 days earlier)      last day (3062 days later) » 

8:00 PM
@MadaraUchiha Lol what
 
‮Reverse pings! @Cereal
 
 
S-stop
 
HAMMERTIME!
 
‮Halt!
 
8:00 PM
HAMMERZEIT!
 
Right, shower time
 
I love a good, refreshing cup of communism in the morning
 
nailed ity
 
@rlemon is this what happened to you? i.imgur.com/9qrwMsu.gifv
 
8:05 PM
similar, table saw.. didn't have enough pressure on the push stick past the cut and the blade caught the wood and tossed it back at me
 
and now bob is a unic
 
*eunuch
 
nahh hit me in the gut.
inch below the belly button
 
I'll spell it how I want to spell it
 
if something hit me an inch below my belly button, it'd miss me between the legs
 
8:07 PM
wat
 
WHY DO I KEEP SEEING THAT DAMN ANIME EVERYWHERE
 
@Cereal Because it's freaking awesome.
 
anime is bad
 
crl
is it a good idea to put values in a an event being propagated?, would be very handy in my case
 
8:14 PM
Turn this string <span>20150228</span>02/28/15 into this 02/28/15?
Should I use regex?
 
crl
!!google should I parse html with regex
 
first link - favorite post
 
crl
usually use DOMParser for html
 
Time to do some reading...thanks.
 
crl
8:20 PM
!!> DOMParser
 
@crl "ReferenceError: DOMParser is not defined"
 
Hey Guys !
 
Anybody has experience with PI ?
the Raspberry one ?
 
Could you imagine if software had to accommodate the lowest common denominator?
 
8:22 PM
Maybe I have an XY problem, not sure. I have an object and one of the property values is a string with html tags inside, and then when I show this to the user, I don't want to show the tag and what's inside. DOMParsing still my best bet?
 
crl
new DOMParser().parseFromString('<span>20150228</span>02/28/15', 'text/html').body.firstElementChild.innerHTML
 
@crl textContent
 
crl
^ yes
 
@ndugger I'll sprinkle these here in the chatroom whenever I find them:
 
I don't need a domain name for a website right? I can just use it's public IP?
 
8:28 PM
// This pattern
.then(function() {
  return new Promise(function(resolve, reject) {
    doSomethingWithCallback(data, function() {
      resolve();
    });
  });
});
 
@SterlingArcher Yup
 
Can be improved in many ways
Especially since you use bluebird
 
I wanna so stuff but I don't have time for stuff >.<
 
.then(() => Promise.promisify(doSomethingWithCallback)(data))
Is one way ^
 
@MadaraUchiha Aye, I wasn't initially using bluebird; I dropped it in to improve async/await performance. I'm not familiar with their extra api things
 
8:30 PM
Even without bluebird:
.then(() => new Promise(resolve => doSomethingWithCallback(data, resolve)))
This looks much less verbose ^
Arrow functions is love, arrow functions is life.
 
Can you point out in my code where the verbose promise is?
 
ADAM, EVE and an Apple, my current project :-)
 
Oh yeah, the setup script is really messy
I just tossed it together so I could push out a beta
 
You also have nested .then()s there.
That's generally a big no-no.
 
8:33 PM
^ Very big one
 
You should probably turn the whole thing to an async function when you get the chance
 
^ Yep, he ninja'd me on typing that.
 
Yeah, I'm planning on redoing that whole file, actually. I'm gonna split it up into separate modules, and package it up.
 
It's a perfect candidate since it has a lot of async actions happening one after another.
 
It was thrown together in a couple of hours, just so I could push it out the door, lol. I had every intention of redoing it later :p
 
crl
8:35 PM
usually adam is the man, so pink would suit eve better
 
@crl what does pink have to do with eve?
 
crl
her gender
 
what does pink have to do with females?
 
@crl my co founder is a feminist try telling her that
 
crl
at least in France, it's common to represent females with pink and males with blue or whatever
hehe
 
8:37 PM
@ndugger Note that it's probably not the best idea to use promisifyAll on core APIs in a library/package.
 
> At the turn of the 20th century, Dressmaker Magazine wrote: 'The preferred colour to dress young boys in is pink. Blue is reserved for girls as it is considered paler, and the more dainty of the two colours, and pink is thought to be stronger (akin to red).' As late as 1927, Time magazine reported that Princess Astrid of Belgium had been caught out when she gave birth to a girl, because 'The cradle…had been optimistically outfitted in pink, the colour for boys.'
it's all made-up bollocks
 
Because it pollutes the global objects, and the consumer will see these methods added to fs or whatever module you promisifed.
 
@MadaraUchiha @BenjaminGruenbaum told me to do it, lol
 
I wear pink to work a lot
 
Current Target :

ZeroConf -> PI & iPad
 
8:38 PM
@ndugger I already mentioned that @BenjaminGruenbaum is a cunt.
 
@SterlingArcher I used to wear purple to work a lot (my favourite colour)
 
Aren't you american?
 
I'm America
 
@SterlingArcher Going in the buff would get most people fired.
 
@SterlingArcher o/ bro
 
8:39 PM
Then why spell color "colour" like a Brit? lol
@Abhishrek hey doode
 
I wore my shirt inside out for this entire morning before I noticed.
 
How did it go?
 
Hangouts :P
 
I'm just wearing the company athletic shirt
 
@ndugger Your Blackbeard class is comprised of nothing but static methods and properties.
Just use an object literal.
 
8:41 PM
woo singletons
 
Nice win on HN @SomeKittens
 
@MadaraUchiha I know that I could, but I'd rather keep all of my code consistent; I'll not stop using static classes, just because they could be something else.
 
export default {
  prop1: foo,
  prop2: bar,
  prop3: baz
  async staticMethod1() {
  	// ...
  },
  // ...
}
@ndugger Static classes are a lie even in classical OOP languages.
 
@MadaraUchiha must resist flagging it, meta drama too tempting :D
 
Guys I need a game idea I can do with NodeJS and ES6
Something fun, that will help me learn
 
8:42 PM
@SterlingArcher you should remake my helicopter game, but make it multiplayer
 
Redoing SourceUndead is going to drive me insane, especially setting up the server
 
@SterlingArcher Whitebeard, a framework to compete with @ndugger's
 
lol
Redbeard
 
Betterbeard
 
crl
8:43 PM
how could I do the opposite of a promise (switching resolve and reject order)? var Lie = (res, rej) => new Promise( (_res,_rej) => {}...stuck there
 
hello there
 
@SterlingArcher I have an unfinished one
 
@SterlingArcher asteroids game
 
@crl X/Y; what are you trying to do?
 
where you are an asteroid
 
8:43 PM
I wouldn't even know where to start making a framework
 
the learning bit is all done
 
and you collide with spaceships ?
 
i have a simple question. Can i post a topic about, what are span tags, in Html? It seems there are none
 
@SterlingArcher Neither did I when I started
 
crl
just a thinking game
 
8:44 PM
@Abhishrek lol
 
@Abhishrek Solar 2
 
@MadaraUchiha I'd star that
 
Preferably I'd like to make a game.
 
Not sure why my framework was starred and pinned, but I'll take all the stars I can get
 
speaking of making things, I've got plans in the pipeline to make a successor to REBEL
 
8:44 PM
@SterlingArcher Use my framework to make your game
 
somone please help.
i have a simple question. Can i post a topic about, what are span tags, in Html? It seems there are none
 
Maybe I'll just suck it up and redo SU
I was very proud of the async map system
 
crl
there's an html room
 
@ndugger annotations are the devil!
(Spring MVC flashbacks)
 
Annotations are beautiful, and you're just salty
 
8:45 PM
@ndugger if (settings) try { tsk tsk tsk
 
Salty like Blackbeard?
 
you should remake one of my favourite old php text-games... what was it called... something like "Legend of the Green Dragon"
 
@ndugger Annotations are magic.
 
@MadaraUchiha that's what we call laziness... lol
 
And magic is dangerous.
 
8:46 PM
@ndugger that game was awesome
 
crl
s/m/tr, smells like java, well python too,so that's not a good criteria
 
the game you could play with hotkeys?
 
@SterlingArcher It's been a very long time since I've played one of those kinds of games
 
@ndugger You should, right now, set up eslint as part of your build, and make sure it passes, with as strict rules as possible.
 
8:47 PM
Btw, i made a game here : codecademy.com/Amanuel2/codebits/IU5L6T
 
@MadaraUchiha I do that sometimes
@crl so .reflect()?
It's useless though.
 
@BenjaminGruenbaum Everytime you do, another jQuery article is created.
 
@MadaraUchiha b-b-but why? I don't see anything inherently bad with if () try { ... }
 
@MadaraUchiha I like jQuery.
3
 
@BenjaminGruenbaum I like trains.
@ndugger It triggers my mental alarm when reading code.
"if + try = wtf?"
 
8:48 PM
@MadaraUchiha I like PI
 
Well, it seems better than having an extra set of curly brackets and another indent
 
@crl I'm late on this, but thank you for the code.
 
I don't really see why people are so afraid of an extra indent vOv
 
+1
 
The benefits brought by a sane linter outweigh any personal bias you have about code style.
Not to mention that ESLint can be configured almost entirely to match your coding style.
 
8:51 PM
Although I have 11 indentations at some places.
 
global.database
 
oh god... yeah...
I forgot about that one
 
@Abhishrek I'd like you to read this, especially the Chapter 1
 
That's definitely shameful...
 
8:52 PM
@FlorianMargaine that was a joke
 
> Now, some people will claim that having 8-character indentations makes
the code move too far to the right, and makes it hard to read on a
80-character terminal screen. The answer to that is that if you need
more than 3 levels of indentation, you're screwed anyway, and should fix
your program.
 
@ndugger This is part of the reason I dislike the use of classes in general, and static classes in particular.
 
> Don't put multiple statements on a single line unless you have
something to hide
 
Everything I read so far reminded me of Java
 
crl
8:53 PM
@BenjaminGruenbaum is it possible with native promises out of curiosity, (just making new Promise( (y,n)=>y(2) ).then(x=>console.log(x)) and new Lie( (y,n)=>y(2) ).cach(x=>console.log(x)) behave the same way
 
@MadaraUchiha he wants to have spring for js, so that's a compliment
 
@FlorianMargaine Springs best, and only "real" feature is the IoC
 
lol... I wanted it to seem familiar to people that have used Spring or .NET MVC
 
@FlorianMargaine gosh
 
The spring MVC doesn't bring a lot of extra value over, say Express's API
@ndugger Is there an example project with it?
 
8:54 PM
I'll get a lot of hate for it, but at the end of the day, I made it so that I could learn; not so everyone could use it. I'd love if people did use it, but that's not my end-goal
 
To see the API in action?
 
Oh fuck me sideways I never saved my SQL create script
 
It's fun how hackable Atom.io is. I didn't like the behavior of some of the core functionality (fuzzy-find); so I cloned the package, made some changes, and used my modified version instead.
 
fucking fuckity fuck shit balls fuck
3
I've basically ruined my game
 
@MadaraUchiha I've been working on one as I develop the framework, but I don't have anything to show, really. I just started a new one since the framework hit beta, and I can throw some code together over new years break, and upload that to github. I'll keep you updated
 
8:55 PM
Normally I'd look at the tests, but you have none (also, chat.stackoverflow.com/transcript/message/27829423#27829423)
 
lol, tests
 
@ndugger I usually start with those.
 
Nov 24 at 19:11, by Florian Margaine
@ssube tests? my customers test, not me
 
TDD is the work of the devil
 
@ndugger TDD works.
And works well
 
8:56 PM
so does my left hand
 
@SterlingArcher Lol What is that'
 
@ewrwr an expression of frustration with myself?
Ok honestly. Who flags "fuck me sideways" but not "fucking fuckity fuck shit balls fuck"?
 
While I think tests are important, I just haven't had any luck with TDD; the times I've tried it, I find it sucks the joy of coding out of the process.
 
If you're gonna flag me, flag me properly.
 
Who flagged you?
 
8:57 PM
!!afk keep the criticism coming; I'm gonna play rockband with coworkers
 
@ndugger The reasoning for TDD is that it helps you define your goals for any particular units more clearly before actually getting to write it.
 
@BenjaminGruenbaum dunno, but I lol'd
 
@MadaraUchiha also regression.
 
@retsam really? I find the opposite - if I'm dragging on some code, I start going more TDD so I can get a quick feedback cycle going.
 
@khanfx 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.
 
8:58 PM
@Retsam When approaching something new, I normally follow:
 

« first day (1901 days earlier)      last day (3062 days later) »