« first day (1559 days earlier)      last day (3390 days later) » 

7:02 PM
@rlemon Is that the one where he talks about getting his stolen computer back by hacking into it?
 
@Shmiddty yes
:D
 
That was a pretty good talk
On the topic of the HoloLens: pretty fricken cool, but why are they still doing the interfaces incorrectly? If I want to rotate something, detect my hands "grabbing" it and "rotating" it, don't make me select a tool and do it virtually
 
@KendallFrey it's your birthday today?! Congrats!!!
 
@KendallFrey You're old
 
@rlemon classic
@SomeKittens also good
 
7:08 PM
@Shmiddty am
 
Happy birthday @KendallFrey!
You'll be able to buy alcohol in 3-something years!
 
I could buy alcohol a year ago
 
Oh, you can buy alcohol at 14 in Canada?
 
lol no 18 or 19
depends on a province
 
7:14 PM
I'm not young enough to be SomeGuy's dad. Not that young.
 
or if you are me, you just goto the reserves where there is no rules
 
^
 
@rodling Ontario?
 
And casinos
 
yap
 
7:15 PM
o/
via @JecebahnYaledimacOndestal
 
@rlemon Must not have seen you hulking out
 
ikr!
 
@Shmiddty photoshop
 
I found a picture of me when I was very skinny
 
7:19 PM
There are no pictures of me when I wasn't very skinny
 
I went from very skinny to a little chubby to healthy
 
I ordered from ThinkGeek (thanks, @rlemon!) and the small was too big for me.
 
skinny to a little chubby took me 4.5 years. a little chubby to now took like 8 weeks
I might have been skinner than @Jhawins is now
 
@Shmiddty 2.7m for that? want to die, now, and painfully
 
@SomeKittens damn, they delivered that fast?
thinkgeek orders take ~2 weeks to get to me
 
7:23 PM
@rlemon Nah, ordered, not received.
 
then how do you know if the small is too big?
or are you just assuming?
or did your wife measure you?
 
IM SO CONFUSED!
 
2.7m for that ^^
 
7:24 PM
We'll see if they even bother verifying it.
 
Aw, I'm too young for that.
 
I'm sure a lot of people who signed up for it are
I technically am
 
@KendallFrey happy birthday buddy :) love you bro beans
 
I'll turn 30 in September
!!> 63489 * 35
 
@Shmiddty 2222115
 
7:26 PM
@SterlingArcher s/you/your/
 
This isn't just a simple code shove
Appropriate for some .gov
Put it in Mongo DB, baby
It'll never be pushed to live
'till it passes our C.I.
Push it to AWS, baby

SCALE
 
@rlemon isn't the only one who can make parodies.
 
@Loktar you're going to love this
Especially his faces
 
!!> '$' + (63489 * 35).toString().split('').reverse().join('').match(/.{1,3}/g).join(',').split('')‌​.reverse().join('')
 
7:28 PM
@rlemon "$2,222,115"
 
much easier to read
 
It'd be cool to have String.Format like C#
 
in HTML / CSS / WebDesign, Apr 29 '14 at 12:52, by rlemon
Tiny Avatars, In the Stack Chat,
Tiny Avatars sent from Imgur,
Tiny Avatars, In the Stack Chats,
and their questions, all the same.

There's a pink one, and a green one,
and a blue one and a yellow one.
And they're all sent from Imgur,
And they're all ignored just the same.

And the Users behind the Avatars,
all went to Vampurversity!
Where they were given Avatars,
Identicons all the same.

The entitlement, and the begging,
The Vamps love to berate you!
But none of them will bother me,
Because now they all look just the same.
 
wtf @SterlingArcher
this is amazing
 
7:29 PM
@Loktar right? Jokes aside, the dude has an impressive vocal range and intensity
 
hell yea
 
But his faces made me lol
 
> I'm so tough, I'm so damn tough
 
LOL @ Slam Metal
 
haha yea that part was great
and grindcore
 
7:32 PM
That whole thing was gold. I didn;t think I'd find it that funny, since I'm pretty disconnected from Metal these days, but I chuckled at a few
 
I pulled my neck this morning
 
@rlemon is that what the kids are calling it now?
 
so I enjoyed it, but I'm having trouble chuckling
 
haha
 
morning everyone
 
7:34 PM
morning @corvid
 
@Loktar OH SNAP LOL
Yeah slam metal is what made me laugh the hardest
 
sup hussies
any angular treeview recommendations?
 
read h as p and was like wow @taco
 
taco dun went there
 
whatchu taco bout?
 
7:37 PM
I don't wanna taco 'bout it
 
man... I've tried everything in the docs for angular but can't get this simple save callback to work
 
burrito be allright
 
!!google best angular treeview
 
!!go home or suck it up
 
7:38 PM
@rlemon go home
 
I LOVE YOU CAP!
<3
 
When life gives you lemons...
 
make a robert
 
When life gives you rlemon...
suck it up?
 
Not it
 
7:40 PM
When life gives you lemons, burn its house down. With the lemons.
 
lemon pledge
 
heh looking up pairing flatiron with react.. this result amused me
> Because not everyone's hair will react... - The Flatiron Salon
 
lemon meringue pie
 
I say no
 
7:41 PM
Did someone say lemon pledge?
 
@MikeNolan go 'way impostor lemon
 
you aint even a real lemon, bro
 
How is your last name even Lemon? Did your family invent the lemon @rlemon
 
7:43 PM
lol
 
@OctavianDamiean I MISSED YOU
 
He's back?
 
9 hours ago, by Octavian Damiean
holy fuck this room still exists
 
7:51 PM
Stop living in the past @Zirak
 
I live when Martha lives
 
7 hours ago, by rlemon
OoooOooOooOooooOOo00ooOOo-0oOOOoooo
@Zirak I had you in mind
 
Will I regret asking who Martha is?
 
She's long gone
 
respect.
 
crl
7:53 PM
Do most pastebins allow cors? or do you know one that does?
 
Hi guys. Why does
    function Core() {
            this.version = "1.0.0";
            this.game = function() {
                this.name = "testing";
                this.displayName = "Testing Game";
                this.icon = "https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/256/Model.png";
            };
            this.getInfo = function() {alert("You are playing " + this.game.displayName + " version " + this.version);}
        }

        var game = new Core();
        game.getInfo();
Naah
 
this.game is a function
 
Yes
I tried this.game().displayName
And it didn't even executed
 
It got executed, but changed this
 
7:56 PM
Scope changed
Have you done debugging yet?
 
No
I'm doing it on jsfiddle
 
@TomášAresakMalčánek jsh.zirak.me/19835
 
Please go try some basic debugging before coming here
Make the effort, and so will we ;)
 
The this inside of this.game is the same this as inside of getInfo
 
Oh
How to move up in hiearchy? I've done only down
Like this.
 
crl
8:00 PM
you could store this as a variable and use it in getInfo
 
I'm confused :(
 
!!afk going home my neck kills
 
crl
var self = this;
this.getInfo = function() {alert("You are playing " + self.displayName  ....
 
That accomplishes nothing
 
So
function Core() {
    this.version = "1.0.0";
    this.game = function() {
        this.name = "testing";
        this.displayName = "Testing Game";
        this.icon = "https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/256/Model.png";
    };
    this.getInfo = function() {alert("You are playing " + this.game.displayName + " version " + this.version);}
    this.debug = function() {alert(this.game);}
}
Returned
function () {
        this.name = "testing";
        this.displayName = "Testing Game";
        this.icon = "https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/256/Model.png";
    }
 
8:06 PM
Hey @Zirak, when do we get to choose a message with our !!s?
 
But this.game() is undefined already
When I tried
 
@KendallFrey uhm...yes
I'll look into it tomorrow, promise!
 
@TomášAresakMalčánek console.log(this) in both functions, and see there differences
 
I saw differences
Read
this.debug returned... this.game
But I can't use it
I don't know how to access it
 
What are you trying to accomplish?
Why is this.game a function?
Did you perhaps mean it to be a simple object?
 
8:09 PM
^ functions should either accept parameters or return something, not just set variables
 
It would return variables
I just made it to learn it
 
No, it assigns variables. It returns nothing
Listen to Zirak and try a simple object
not a function
 
But I want to return something later?
Maybe?
 
is it better to have the backend return a redirect on a successful post or to just do it from the front end?
 
ugh man.. so browserify is dead simple.. webpack is not... but webpack has a lot of really cool features :/
 
8:10 PM
And I want to learn function. Ofcourse I can just use php instead of javascript. it would be better either
 
/me dives into webpack
 
Because it will work
 
I mean check that shit out
hot module replacement
 
@TomášAresakMalčánek Then have game return an object?
 
@crl I've tried your thing -> {var x = this.game; console.log(x.displayName);}. It was undefined either
@Zirak do you mean this
var apple = {
    type: "macintosh",
    color: "red",
    getInfo: function () {
        return this.color + ' ' + this.type + ' apple';
    }
}
?
 
8:14 PM
uhm...maybe?
 
function Core() {
    this.version = "1.0.0";
    this.game = {
        this.name = "testing";
        this.displayName = "Testing Game";
        this.icon = "https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/256/Model.png";
    };
    this.getInfo = function() {alert("You are playing " + this.game.displayName + " version " + this.version);}
    this.debug = function() {var x = this.game; console.log(x.displayName);}
}

var game = new Core();
//game.getInfo();
game.debug();
SyntaxError: missing : after property id _display:25
fu?
Uh.. Replace = with :
Oh cool. So I have to do objects only all the time?
 
No
If you want something which operates on an input and gives an output, that's a function. If you want a block of static data, that's an object.
 
Can you give me example of function please?
 
function addOne(a) { return a + 1; } // why am I doing this
 
:D
So how do I access the color in here?
function Foo() {this.bar = function(color) {this.color = green; if(color == this.color) return true; else return false;}}
;)
 
8:22 PM
Use standard object notation too
function Core() {
    this.version = "1.0.0";
    this.game = {
        name : "testing",
        displayName : "Testing Game",
        icon : "https://cdn2.iconfinder.com/data/icons/free-3d-printer-icon-set/256/Model.png"
    };
    this.getInfo = function() {alert("You are playing " + this.game.displayName + " version " + this.version);}
    this.debug = function() {var x = this.game; console.log(x.displayName);}
}
colons and commas
 
Yep I've fixed that myself Sterling Archer, thanks
 
use classes
 
Good man :)
 
@TomášAresakMalčánek this is valid, but won't do much (assign before test)
 
why do so many libraries seem to have slight differences in how they handle success/fail callbacks?
 
8:23 PM
Why would they not? People aren't robots
 
@corvid because nobody bothered to standardize callbacks or promises or anything useful until recently
 
@corvid Because they are written by different people and there are no standards.
@Zirak [1,2,3].map(addOne) for this?
 
Do you guys think there are too many JS libraries?
 
8:26 PM
I think it doesn't depend so much
 
another dumb question, if I change a back end route, do I have to restart my Node.js server?
 
Sub question: do developers place too much depenency on said library?
 
You use only what you want
 
(I'm exlcuding jQuery from this question)
 
That's not the problem, the problem is that nobody knows what the fuck they're doing and delivering it as the next greatest thing
 
8:26 PM
@TomášAresakMalčánek That's not entirely accurate
 
Well yeah you are right
 
If someone asks me to recommend a front-end UI library/framework, I stutter and change the subject, because everything's shit
 
@corvid If you changed your server-side code, you need to restart nodejs, yes.
 
Do you think the effort would be better spent making native JS worth not having so many libs for?
@Zirak just say jQuery and slap them
 
hm Flask has a reloader for that in debug mode
 
8:27 PM
@SterlingArcher Exactly
 
@SterlingArcher You're misunderstanding the libraries and frameworks are for
 
Enlighten me sir
 
Being a JS coder was hard, and then jQuery came and allowed all those mediocre-noob "devs" to join the industry
 
hehe... jQuery came.. that's a first.
 
jQuery made making websites cheaper
 
8:28 PM
At the cost of bloated, poorly written websites, no?
 
Today in 2015, the jQuery is Angular
 
And tomorrow, who knows
 
Is this the same in other languages?
 
Libraries and frameworks won't go away, because they're there to take something only pros can do, and dumb it down to the lower levels
And that comes with a price
@SterlingArcher Oh yeah
 
8:29 PM
@SecondRikudo That's too much of a blanket statement
 
Java has so many libraries and frameworks I wanna puke.
 
So what's the "jQuery of Java"?
Spring?
 
@Zirak Yeah, I'm probably exaggerating here
@SterlingArcher Yup
 
I'm learning spring :embarassed face:
But at least I'm making the effort to learn the underlying structure
 
Why is it embarassing (still learning Java myself)
 
8:30 PM
@SterlingArcher Do you have a strong understanding of Java before you attempted Spring?
 
Strong? No. Mediocre? Maybe
 
@taco Java is like landing in the world's biggest pile of horse shit: It's a bit sticky at first, maybe somewhat comfortable, but you gotta wait a bit till the smell hits you.
 
Java was my primary language in college before I concentrated on web languages. Then I read an entire java book, wrote a few programs for my boss and they threw me into spring
 
@Zirak Knock knock
 
So I'm doing my best to learn both as best I can
 
8:31 PM
@SecondRikudo THE DOOR
 
But to be fair, I'm having so much fun using Java and Spring, because it makes coldfusion look like a little bitch
 
@SterlingArcher You should totally drop that and try node
 
@Zirak yeah I avoided Java until we started using JaxRs for our backend API's last fall. I checked it out in the late 90's and thought it seemed like shit :/
 
It's cool and does all things.
 
8:32 PM
ColdFusion is like HTML and Java drunk fucked and HTML used crack during the pregnancy
@SecondRikudo to be fair I advocated Python over Java but Java won
 
"Won" how?
 
I was outvoted
 
Fuck ColdFusion... ugh
 
@SterlingArcher Eh
Java is far far too verbose for my tastes
 
Plus I'm the most junior developer so my vote wasn't so heavily weighted
 
8:34 PM
The support calls I got for ColdFusion were usually a novice Windows Admin user using a control panel, who could barely code HTML
 
And the blankets best practices are killing me
"Every object should implement an interface because of reasons"
 
My senior developer (the only other coder) wrote most of our most important company operations in Java, so we decided it would be best to make the transition from CF to Java and keep it there
 
That's nice
 
While using Python for things like cron scripts etc
 
Except the object is a freaking God with 50 methods, and the interface has all those methods as well -_-
 
8:34 PM
* > CF
 
CF has some ups, but mostly it's downs
 
@SterlingArcher So far, haven't reached the place where node breaks down due to pref.
 
I'll take your word for it
 
That said, I haven't done any super pref intensive apps with node
But I assure you, writing JS is much more fun than writing Java.
 
components and functions are absolutely retardedly overhead to write, but it's wonderful for traversing SQL query results etc
 
8:35 PM
@taco that's actually very helpful, thank you
 
Nobody ever got fired for choosing java
 
@corvid np
 
I feel like I am doing basic restful routes wrong :\
 
@SterlingArcher C# is better
 
@FlorianMargaine lol
 
8:36 PM
ColdFusion also has good spreadsheet tools for excel
 
And for all purposes, Node is just as good.
Especially now with for of
 
crl
@SecondRikudo what's "pref"?
 
@crl Performance
Should be perf, sorry.
 
crl
oh ok
 
1
Q: Does minimizing the length of the scope chain improve performance?

AmadeusDrZaiusBackground I often use the module pattern to organize my code, so that functions and constants operate on a need-to-know basis. If CONSTANT or someFunc are only used by anotherFunc, then I enclose the definition of anotherFunc in an anonymous function, so that the former two don't pollute the gl...

 
8:38 PM
router.post("/", function(request, response, nextUrl) {
  Article.create(request.body, function(error, data) {
    if(error) {
      response.writeHead(500, {"Content-Type", "application/json"});
      response.write(JSON.stringify(error));
    } else {
      response.writeHead(200, {"Content-Type", "application/json"});
      response.write(JSON.stringify(data));
    }
    response.end();
  });
});
 
short answer: yes
long answer: @BenjaminGruenbaum
 
lmao ^
 
is it just me or is that way too verbose? Can this be factored down?
 
I'll give you a hint
 
@corvid Yeah, factor out into a function
 
8:40 PM
var status, result;
if (error) {
    status = 500;
    result = error;
}
// ...
 
@Zirak Nah
 
@corvid If that's express, you can do response.json(data)
 
response.status(500).json(error)
@corvid ^
 
that too
 
you guys are ninjas
 
8:41 PM
@taco I am
Don't know about the others.
 
I'm not, still an express n00b
ALL the deprecation notices!
 
I'm not a ninja, I'm a Rockstar
get it right!
 
@SomeKittens I asked you for a better express alternative already, right?
And we haven't found one
 
res.setHeader("Content-Type", "application/json");
err ? res.status(500).json(err) : res.status(500).json(data);
res.end();
 
I'm a cheese danish
 
8:42 PM
That's sad
 
I'm a taco cat
 
@corvid ternaries are silly
 
I should use that as my avatar
 
@Zirak Koa, Hapi, possibly even RESTify
 
if it's just one line I feel like ternaries are just so much easier and more readable
 
8:43 PM
err && ( res.status(500).json(err).end() );
res.status(200).json(data).end();
 
Holy shit that's glorious
 
@rlemon That doesn't work
 
and my new willpaper
wallpaper
 
@Zirak you don't work
 
return is a statement, you're trying to use it like an expression
Oh and @rlemon please create an issue for that /mdn bug you found
 
8:44 PM
I'm pretty sure .end jumps you out
could be wrong
 
brb, changing avatar
hmm
 
oh yeah... the setting the header is pretty dumb I just realized
I assume .json() does that
 
didn't change
 
@taco takes 30 mins for the chat
upto*
 
@corvid In express, at least, it does.
 
8:45 PM
@Zirak what I'm currently doing
lisp-to-js language :P
I'l try to use this...
 
wow factored down to 1 line... you guys are good at this
 
That's not factoring. But.. if express didn't ahve that helper you can always make it.
 
@rlemon ah ok
 
@Luggage yeah, but didn't know it existed and it's incredibly helpful
 
totally pointless, but neat!
 
8:51 PM
Hi.
 
@corvid Express's res.json() (pretty simple): github.com/strongloop/express/blob/…
 
@SomeKittens pretty cool, but I think I am too noob right now to use it
 
@corvid psst - speaking of too n00b, I built a plugin that replicated existing express functionality.
 
@corvid what ya working on
 
@taco very basic ReSTFuL application, which is more or less an image board with users, settings, images, etc'
very generic type of site, really
 
8:55 PM
@corvid 5chan?
5 > 4
 
feels like he just got a death note
 
@Matt How so?
 
From @SomeKittens xD The music video lol.
 
pretty much, yeah
 
@corvid it works well with mongodb
 
8:57 PM
@Matt You're very welcome
 
I have mongodb running but mongodb is so awkward :\
 
@SomeKittens very much appreciated. Lol.
 
I use mongohub for mongodb
on my laptop
 
I use postgres for my mongodb
 
wat
 
8:59 PM
I use
 
I used it for a chat app for Titanfall. I think it works better for document stores like corvid might use it for
 

« first day (1559 days earlier)      last day (3390 days later) »