« first day (1579 days earlier)      last day (3368 days later) » 

7:02 PM
Is there a semantic object notation specification??
 
You're just copying me. I made a personal miaou theme, and now you're making a personal SO theme. Clearly, you're just jealous of my enormous brain.
 
very
and also how handsome you are
 
crl
!!> [2,1,'',5,''].filter(v=>!isNaN(v))
 
@crl []
 
crl
hmm
I'd like to filter out non-numbers, oh I should do the opposite
 
7:05 PM
!!> [2,1,'foo',5,'bar'].filter(Number)
 
@NickDugger [2,1,5]
@crl [2,1,"",5,""]
 
!!> [2,1,'foo',5,'bar'].filter(Number).filter(Boolean)
 
@rlemon [2,1,5]
 
crl
ok thanks
 
Ehhhh
!!> [2,1,'0',5, 0].filter(Number).filter(Boolean)
 
7:07 PM
@NickDugger [2,1,5]
 
dem zeroes, m8
 
bah
no one uses 0's anyways
 
!!> [2, 1, 'bar', '0', 5, 0, 'foo'].filter(function (x) {return !isNaN(Number(x)); })
 
@Retsam [2,1,"0",5,0]
 
!!> [2, 1, 'bar', '0', "100", 5, 0, 'foo'].filter(function (x) {return !isNaN(Number(x)); }).map(Number)
 
7:11 PM
@Retsam [2,1,0,100,5,0]
 
user1596138
wow @rlemon all that snow didn't touch us but it looks like you guys get hammered
 
yea it is coming down alright
 
user1596138
We always share weather. Why are you cheating
 
foo = {};
foo.prototype = {
	bar : function(){
		alert("Jeez");
	}
};

foo.bar();
 
Can Texas have some, please?
 
7:12 PM
Why it throws undefined is not a function?
 
because it isn't
prototype is only for functional objects
i.e. a function
 
Prototypes are attached to the constructor for objects, not the object itself.
 
function foo() {};
foo.prototype = {
    bar: function() {}
};
var baz = new foo(); // or use object.create
baz.bar()
 
user1596138
:P
 
@Jhawins I honestly didn't notice lol
 
user1596138
7:14 PM
I knew you didn;t do it on purpose lol
 
ok, how would you create a static class then?
 
Do you want to use our glorious lord and saviour, ES6?
 
@rlemon I'm maintaining mine, he's maintaining his
 
simply, var object = {....}? And no, please no ES6
 
@bad_boy By creating a function then instantiating it?
 
7:15 PM
@rlemon Just a touch
 
or by just putting methods in an object
 
@Retsam it's not a static class by definition
 
@bad_boy This is JS; "static classes" aren't really a thing (at least, with your "not ES6" caveat)
 
function foo(){};
foo.bar = function() {};

foo.bar();
 
I create singleton classes by makign a class and setting module.exports to be a instance of it.
 
7:17 PM
@Retsam yeah, everyone knows that, and so-called classes aren't really things
 
well, mostly returning the instances from define(), but whatever.
 
//or just do
var slide = {
    poop: function() {
        return '@rlemon'
    }
};
slide.poop();
 
@KendallFrey kk, well I'm' (not right now) going to fix the upload dialog and the spinner icon
 
But, yeah, what @Luggage just said. You can also just attach the function to the object; like @NickDugger says, but then you can't leverage prototypes.
 
I'll ping you when I do
 
7:18 PM
sup nubs
 
function foo(){};

foo.prototype = {
	bar : function(){
		alert("Jeez");
	},

	baz : function(){

	}
};
is way better? no?
 
that's a 'class', yes.
Though, I suggest capitalizing Foo().
 
except now the constructor property is unset
 
user1596138
You're unset!
 
that didn't even make sense
 
7:20 PM
extend the prototype or just set each one individually. e.g.: Foo.prototype.bar = function() { ... };
 
constructicons unite!
 
in terms of OOP, public props always break encapsulation
 
the name "bad_boy" makes me cringe...
 
@NickDugger whatcha gonna do?
 
If you want real, 100%, unadulterated OOP, javascript isn't the right place for you. We can emulate it, but that's about it
@Loktar peel my eyes out, that's what
 
7:21 PM
encapsulation is overrated
 
And emulating is good enough.
 
@bad_boy I'm getting a strong vibe of "I'm trying to bring my Java/C#/C++ idea of OOP baggage into JS" here
 
Watcha gonna do when they come for you!?
 
I yell at my friend for trying to turn any language into python. Learn the native idiomatic ways first, then bend the rules after you are fluent in the native tongue.
 
@Retsam yeah that might look so, but it always hurts so much when breaking encapsulation
 
7:22 PM
@bad_boy Umm, that's not normal, and you should consult a doctor if breaches of Java-style encapsulation causes physical pain.
 
jeez, lolz
 
user1596138
@SterlingArcher found good wastedgif candidate
 
everythingz mustz endz withz az zz
 
/me wishes violations of SRP caused actual pain
 
are you sure it's encapsulation you're breaking?
 
7:23 PM
@SomeKittens Dogmatism is bad, yo.
 
@Jhawins don't leave us hangin!
 
user1596138
Sorry upload isn't working..
 
@Retsam In that case, you'd need a good reason to break it other than "I'm lazy"
 
user1596138
1 sec
 
user1596138
i.imgur.com/4MX9GZl.gif // Walmart wasted - wasted part
 
7:25 PM
@SomeKittens In some cases non-SRP code is just simpler. The key to the SOLID principles (well, software principles in general) is that when applied unthinkingly they create unnecessary complexity.
 
user1596138
From that trending Facebook story
 
user1596138
Dat headbutt!
 
walmart is the bane of all existence
 
haha wow, I bet that girl though she would insta win with that
 
user1596138
In Texas
 
7:26 PM
For me SRP means naming functions for what they really do
 
@Retsam Right, you'd say "The simpler code is worth the electric shock"
 
@Loktar I don't know why. even with all her weight behind it the other chick barely moves.
 
@Jhawins People here are fucking nuts
 
inb4 PHP electric shock cartoon
 
!!youtube brick house
 
7:26 PM
 
handleOnClick is a responsibility
 
@JanDvorak setsSomeVariables()
 
user1596138
I worked at walmart lol people are just as nuts here
 
@Luggage unclear; initGlobalState
 
7:27 PM
abusesJQuery()
 
user1596138
Just last night I had such a weird experience at Walmart... This employee just kept talking to me and following me around at like 11 lol he seemed to tripped out or high or something.
 
yeesh.
 
> ...which was reported to Redmond 13 months ago.
 
hah yeah thats so crazy
 
I can see the business reasons behind not being forward about it... but this security risk has existed and they knew about it for 13 months?!
 
7:32 PM
Shocking that a business would make a poor decision. This has my knickers all twisted, I tell you h'what
 
user2620028
@NickDugger has hilarity ensued with your new avatar yet or is that still pending as promised?
 
I think I'm about due for an avatar change...
 
user1596138
My avatar is pretty sweet. Jus sayin. Since nobody ever noticed :P
 
What kind of witchcraft is that?
 
guys, I have a question about mongoose... can you make a plugin to make a "generic" relationship?
 
user2620028
7:36 PM
@Jhawins i couldn't ever make it large enough to see what the hell it was lol
 
user1596138
lol it's a LTE picture of a jacob's ladder between pepsi cans...
 
2 sode cans with wires attached and either flames coming out or some plasma between them.
ok, plasma, then
 
user1596138
But it looks like a teleporter or force field of some kind
 
It's a stargate.
 
user1596138
7:37 PM
13kV lol
 
user1596138
It's the same thing as that CD eating gif I posted..
 
user2620028
@NickDugger nope just lazy i suppose lol
 
@corvid explain some more your intentions.
 
@Jhawins oh dayum
 
I learned some basic mongoose before I switched to postgres.
 
7:39 PM
@Luggage so imagine there is a Tag model. It is intended that I can say "this model has Tags", but I want it in generic enough a way where I can do it quickly without repetition.
 
I fought a mongoose once
vicious little fucker
 
user1596138
@Shmiddty my only real tip on the tooth thing... If you have trouble getting it to stop bleeding seriously use a tea bag like you'll see suggested online. It helps so damn much. // forgot to say that earlier
 
one of those statements was a lie
 
@corvid You can make a schema / model with tags and just .extend() it.
 
user1596138
@SterlingArcher I have a ferret. Kinda the same thing.
 
7:41 PM
21 mins ago, by Nick Dugger
the name "bad_boy" makes me cringe...
 
I hear that ferrets smell bad
 
^ Can we not star messages like this?
 
user1596138
@NickDugger Only if you feed them cheap ass walmart food
 
I love ferrets. People are all like ew they smell... but that's because they don't bath them
 
I'd still get a ferret
 
user1596138
7:42 PM
Feed them real food and they smell fine.
 
I want a dog, though
 
To be fair, I do realize that washing a ferret is more or less the act of jerking.
little tubular bastards <3
 
user1596138
The food I buy is so god damn expensive... But she seriously just smells like shit and is lazy and miserable seeming if I don't so.
 
sounds like I need some of this food..
 
Me too. I smell like shit and am lazy.
 
7:43 PM
@NickDugger they do
maybe everyone buys them shit food ive ever met
 
but they smell like cute, walking turds.
 
user1596138
It's $19 for 3lb of food but it lasts a really long time lol
 
we wanted a ferret.. but dat smell lol
 
user1596138
Idk I've had 3. I promise their diet makes a huge difference.
 
7:44 PM
also taking care of them seems more involved than I thought
like you cant just feed them and forget like cats
@Jhawins is that accurate?
 
all the stuff I've read talks about caging them at night and stuff
 
gotta cage them a lot. they'll poop anywhere
unless I'm wrong and ferrets can be litter box trained
 
user1596138
@Loktar lol idk. One of mine was really high maintenance and had health problems (they can get flu from humans and stuff they have problems with getting sick sometimes). The other one didn't do anything at all. The current one I have is fucking hilarious and is basically 0 maintenance. We just let it out whenever.
 
nice
 
user1596138
7:46 PM
Oh and I have 2 dogs. They all play
 
well, that's cool but not for me.
any animal that I have to let out because it can't be trusted to be out all the time is not for me.
 
user1596138
I just have to keep the dog food put up when the ferret is out or it will eat it and smell like shit. I know this is weird... But yeah, if you let them eat shitty food or food for other animals they will smell like shit.
 
anyone knows how to implement custom map style to angular js google map?
Cant seem to find anything in their documentation
 
@rodling sorry, I only know Gangnam style
 
user1596138
@Luggage Yeah I let it out for hours at a time. Some times overnight. It goes back to it's cage (with open door) and sleeps in the hammock periodically throughout the day.
 
7:48 PM
you have to feed them petunias and those little pine tree air fresheners.
 
user1596138
It's as self sufficient as my dog.
 
If my brothers dog could cook and open doors he'd be a human.
 
@taco well if it helps..
and no gif to support it? *sigh
 
most humans in the US can't cook.. so he's be BETTER
 
user1596138
And in the mornings it attacks your ankles lol. I'll record it sometime. It comes up and like jumps and grabs your leg and then runs and hides behind something and looks at you.
 
7:49 PM
I've experienced that. It's funny for a while.
 
user1596138
Or it will follow you around the house ~5 feet back and stay behind corners stalking you private detective style.
 
Then when you fall over while trying not to crush a ferret it stops being funny.
 
user1596138
My 6 year old sister is absolutely in love with the thing. She'll just pick it up and fold it in half and take it somewhere.
 
Causing self injury just to prevent the ferret from murdering itself with your feet.
 
user1596138
Just kick it away. They're so damn durable lol
 
user1596138
7:50 PM
You can literally just fold it over itself hahaha it's almost gross
 
Perhaps rely on their evasive abilities?
 
The only animals you won't trip over usually are big dogs. And that's almost entirely because they run at you like "hey human, look at the floor, it's fun!" and knock you over on purpose.
 
yea.. cats do that same.
but I like them so it's ok. :)
 
my cats like to run in front of me and then lay down while i'm walking
I have no remorse, it is their own fault they get kicked
 
user1596138
YEah I don't avoid animals I walk straight through them. They'll learn.
 
7:52 PM
Do they not mind?
 
they get up and run. clearly they don't like it, but they keep doing it
 
user1596138
I just make sure I'm not being unnecessarily mean out of anger or anything.
 
Cats are just little shitmonsters; evil and conniving
 
yea i'm not booting them. just a natural walk.
 
The "cats are evil" is just stereotype.
 
7:53 PM
Be sure not to trip over them.
 
ohh I have done that many times as well
 
How about "cats have no respect for humans"?
 
broke my closet door off once
 
some of them are just chaotic neutral.
 
user1596138
Well off to the dentist for me. Later guys
 
7:54 PM
mine are not trying to be assholes. I suspect they think "look. human. I will flop myself in front of you. pet me!"
their timing is just all off
 
user2620028
@Jhawins peace
 
Cats respect humans about as much as humans respect humans.
 
user1596138
@HatterisMad I'll hit you up later will you even be awake still? You can send me stuff however you want. Maybe just make a gist with multiple files on github? That would be easy to go through
 
user2620028
I had a cat when i lived on a farm. It grew to be fairly large and would get pissed off when the opossum's would try to eat from its bowl. It would actually fight them and kill them.
 
user2620028
@Jhawins its 3am here im heading to bed soon. Will upload tomorrow when i get a chance and link you
 
7:56 PM
@HatterisMad extra protein, well-earned
 
user2620028
@Jan Don't piss off the cat lol. Lesson learned.
 
Not if you're an opposum
 
@HatterisMad have you met any ladyboys in Thailand yet
 
user2620028
I have not become acquainted with any if that is what you are asking
 
ewhat
 
7:58 PM
Just found out about lady boys on An Idiot abroad season 2, episode 2. Love that show
 
user2620028
They are easy to spot however, my next door neighbor is a ladyboy and is living with like 4 girls in a one person sized apartment.
 
. o O { Philsoraptor: is @HatterisMad an idiot or genius abroad? Hmm }
So do ladyboys date men or women
 
The only thing worse than memes is misusing memes
 
Tell me all about ladyboys, bro
 
user2620028
I believe that would depend on their reasons for becoming ladyboys. The most common answer i believe you would find to be men.
 
user2620028
8:00 PM
@nick your avatar is toast lol
 
. o O { Socially Awkward Taco: not sure what I did wrong }
 
@HatterisMad It's not toast, it's a burnt grilled cheese sandwich
 
@HatterisMad do you have hot water and appliances?
 
user2620028
Yes i have hot water, a fridge and microwave. Public washing machine, drying is hanging clothes on the balcony for like 6 hours.
 
But it is warm year round, I take it?
 
user2620028
8:03 PM
Actually now that i think about it i don't really have hot water to the whole apartment. There is an inline hot water heater right before the shower head in the shower.
 
I noticed the Dutch hang their clothes outside as well
@HatterisMad ah yeah, Costa Rica has those shower heads too
 
user2620028
Yes in the coldest part of winter it gets down to 67 degrees fahrenheit or so
 
user2620028
Well it is actually a wall mounted box but feeds straight to the shower head
 
like that or something right
 
user2620028
good god no.
 
8:05 PM
lol
Those are called suicide showers
 
@taco that's ghetto as shit in a shopping cart
 
Let's heat up the water with electricity
 
user2620028
 
user2620028
taco where the hell did you find that lmao
 
The concept is pretty basic. Rather than having huge hot water tanks and spending all that money to keep water constantly heated, water is instead heated right before it drops onto your head
@NickDugger lol
 
user2620028
Yeah inline water heaters have been a concept for quite a long time.
 
That dolphin needs some "Deal With It" glasses
 
in Tavern on the Meta on Meta Stack Exchange Chat, 6 mins ago, by ChrisForrence
cv-pls http://stackoverflow.com/q/28463405/899126
 
user2620028
always fun talking with you @taco
 
user2620028
8:12 PM
night guys heading to bed.
 
later m8
 
Node + Express people: do I seriously have to use regexp to match two paths to one 'handler' ??
router.get(/\/|\/dashboard/, function(req, res) { // I want / and /dashboard to point to the same code
 
hmm, not sure
 
in older express I could pass them in in an array
router.get(['/','/dashboard'], ...
but that was deprecated
no clue why, it made sense imo
 
@rlemon No?
router.get('/', dashboard);
router.get('/dashboard', dashboard);
 
8:19 PM
I really just want the array method back without adding stupid ass fluff
@SecondRikudo thanks cap' obvious :P
 
@rlemon You're welcome. Flies away
 
that isn't elegant imo, the array method was.
 
pretty sure this guy is 'wasted' imgur.com/gallery/gTBQbAO
 
stupid-ass stuff, or stupid ass-stuff?
 
@rlemon I agree. Not sure why it's not available anymore.
 
8:20 PM
How is it not elegant?
 
@Luggage 'less elegant' rather
 
just make a helper to take an array.
 
@NickDugger where did the car even go...
 
@Luggage NO! I WANNA BITCH ABOUT AN API DECISION I DONT AGREE WITH!
 
I couldn;t even tell you. It crumpled so easilly
 
8:22 PM
in an ideal world you won't want your implementation of the routes inline, so Second's method is quite elegant.
 
I do agree that the array method is a lot nicer, but I haven't had the need for multiple paths for the same route, yet
 
@Room - can we label in images/gifs please? I enjoy wasted gifs, but I don't like seeing people die if I can help it.
 
fair enough
 
:(
 
This one didn't bother me since you never saw him
maybe the car was unoccupied, huh?
 
8:23 PM
plot twist: that was a google driverless car, nobody was hurt
 
yea, that one wasn't bad. just throwing that out there. I enjoy that reddit (mostly) does it now
 
@NickDugger u f
 
Did I just see somebody die?
 
@rlemon sounds like a good place for a Stack Overflow question.
 
there are questions about it
most just hand out a helper, which I can write myself. or use regexp
neither I find an optimal solution. so I'm going with regexp
 
8:29 PM
@JanDvorak that right there is the question of the century.
 
@SterlingArcher ass-stuff is never stupid
 
@JanDvorak ass-stuff, always ass-stuff
 
not if it's my ass
 
Thank god it's not your ass
lmfao
That's a bold statement there, baby.
 
My friend was in a zombie movie that "premiered" last night
They're supposed to release a video game to go along with the movie
Can't speak to the quality of the game though. The movie was low budget
 
8:35 PM
What was his role "man killed by zombie"?
 
She was the damsel in distress
I guess
 
I take it as a point of pride that I keep getting "Line contains a trailing semicolon" linter errors while trying to write coffeescript.
 
@SecondRikudo I really would be surprised if it wasn't a dupe
the deprecation notice has been since like early 3.x
 
@rlemon Even if it is, one way or another you get your answer.
 
I think it's a sad song
 
it def brings on the feels
 
great melody, but sad
 
but that is what I like about it
any song that moves me is a great song imo
 
@rlemon does moving you to the bathroom count?
 
8:47 PM
.... dubstep with the right bass will do that
 
brown note was mythbusted
 
the brown note is a myth
 
@rlemon maybe you'll like my friends band
 
@adeneo Y U NO READ QUESTION
And since when did you have twice the rep as I? :o
 
That's an EP side project he did with money from his band with Columbia. In that song he's got a duet with Shirley Simms from the Magnetic Fields
 
8:52 PM
@SecondRikudo - TL;DR, I never read anything, I just answer
 

« first day (1579 days earlier)      last day (3368 days later) »