« first day (1343 days earlier)      last day (3621 days later) » 

6:00 PM
Was Brendan Eich a troll before he created JS? I am sure functions aren't objects
 
wat
Functions are objects in plenty of languages
 
in JS, you are objects
 
Classes are objects, STRUCTS are objects -_-
 
I said what I meant, and I meant what I said.
 
in JS, you are fucked
 
6:01 PM
No, don't be such a negative nancy.
 
In my above example what functionality does this provide?
var rows = new rowGenerator(); //wtf, rowGenerator is not a object

function rowGenerator() {

//Do stuff
}
^
 
I have no idea idea what you're asking. It allows you to create an object
 
That code sets row to an instance of rowGenerator. Or it would if you hadn't fucked something else up. ;)
 
Here is the full code
 
6:02 PM
Yeah, the code as posted is fine.
Oh, more code... clickity.
 
you can shorten that line to`$(document).on('click', '.remove-row', rows.removeRow);`
 
So are the variables inside the function attributes if called?
e.g. rowGenerator.localscopevariable = x
 
if(jQuery) document.commitSuicide = true
 
function Foo(n) {
  this.bar = n;
}
var a = new Foo(1);
var b = new Foo(2);
a.bar // 1
b.bar // 2
@BDillan they are using as a class like object
function Foo(n) {
  this.bar = n;
}
is your constructor function
 
@NickDugger I'd think that would be a function
 
6:05 PM
I don't even care
 
document.commitSuicide(suicide_type.seppuku);
 
not unless it is a flag.
if( document.commitSuicide ) {
  document.die();
}
 
Lets argue about a fictional property and its correct use.
 
"but failed to do that, as we can see from the very low opinion Java programmers have of JavaScript."
edit
"This indirection was intended to make the language seem more familiar to classically trained programmers, but failed to do that, as we can see from the very low opinion Java programmers have of JavaScript."
The article is right
 
Java programmers are prudes.
 
6:07 PM
We have 'class'
 
!!s/d/n/
 
@RalphWiggum Java programmers are prunes. (source)
 
shove a pickle up your butt
3
 
MY LANGUAGE IS BETTER THAN YOUR LANGUAGE BECAUSE I KNOW HOW TO USE YOUR LANGUAGE IMPROPERLY
11
 
okay, will you do it for me?
:3
 
6:08 PM
@BDillan and interface, and abstraction, and inheritence, and ...
 
@SomeKittensUx2666 rofl
 
Its a strongly typed OOP language
 
The Java I get exposed too is stupid
 
@BDillan Your actions seem to indicate you think no one here knows what Java is
 
@rlemon I understand what you mean. Thanks for the expl
 
6:09 PM
and it seems i'm better at it than the people i'm consulting for it
 
I think java's great for large applications
but when you have more boilerplate than code...
 
there are better alternatives
 
..use C#?
 
c# is much better
 
thank you.
 
6:10 PM
also boilerplate heavy! but I like it better
 
It just seems that JS has alot of room for tedious bugging that's all guys
 
doesn't have to be
Java does
 
debugging
 
...and Java doesn't?!?
 
@BDillan that is true for any language you don't know well.
 
6:10 PM
XML > Java
 
Typically, if you know what you're doing, the tedious debugging tends to drop.
 
anybody else's code is shit. it's like the first tenet of programming... etched into a punch card.
 
0
Q: Bluebird, Promise.bind - how to access bound context in pending promise?

Madd0gSomeone pointed me to Promise.bind() in bluebird to be able to have a context in a promise chain. However, my use case requires me to use this context "from outside" when I only have reference to the promise object (the one with the then and catch API). Is that possible?

 
@Cereal what you see as 'boilerplate' I call 'saying what you mean'. I don't get on with frameworks that assume what I want, somewhere deep within some framework class I can't (easily) inspect
 
@canon BWAHAHAHAH YOU NEEDED FOUR CARDS?!?!?! NOOB!!! WE ALL DO IT WITH THREE!
 
6:11 PM
hah
 
@TomW Yeah, and for lots of things, you simply don't need to say those things
They're not bad languages by any stretch of the imagination
but different tools for different things
 
@JanDvorak the place I go to feel stupid
 
any of you using harmony generators in node? I've been pleased with them
 
I've been working on a bug all day i'm not even sure I can fix.
and it appears i'm making it worse.
 
6:13 PM
rofl
 
@canon I use them in Interview
 
I'm trying to make up for crap infrastructure through code.
 
@rlemon ouch
 
yup
chasing my own tail
 
@SomeKittensUx2666 what's Interview? or do you mean you use them in interviews by way of flexing your javascript muscles? /preen
 
6:14 PM
@canon Yes
 
@rlemon monkeypatch then lie
 
-1
A: Sass/Scss @mixin for element's selector as well

kahsyvYes you can do that. You can create a mixin(a css rule) and include it.

....yep
 
Ah, good times. It's fun when people come in here to bash JavaScript.
 
@SomeKittensUx2666 comma first! you heathen!
and to think I once called you a friend.
ಠ_ಠ
 
50% of the reason I use comma-first is to annoy @rlemon
 
6:16 PM
ಠ_ಠ
<|>
/ω\
 
@SomeKittensUx2666 what's the other 50?
 
he wants a job at Twitter
 
comma first?
 
0.o
\|\
/\ wanker
 
var a = 1
  , b = 2
  , c = 3;
@RUJordan comma first ^
 
6:17 PM
@rlemon ew, no
 
I use comma first in tsql
 
oh god gross
 
oh god I hate that
 
intellisense fights me in C# and javascript
 
6:18 PM
 
so continues the holy war
and there was much weeping and gnashing of teeth
 
@SomeKittensUx2666 nnuuuuuuu
 
@canon write js in sublime bitch.
 
I write my JS in brackets.
 
I do at home
but at work I use visual studio
 
6:19 PM
It's 2:20 and I still haven't had lunch yet...
 
most of our projects are .net
 
I write my js in js files. what the fuck are you all on?
@RUJordan same
busy
need
bug
too
fix
throttle killed my order. f u chat.
 
yeah my co-workers are in a big meeting so I'm waiting for them
 
JS looks poop in VS, but I also have to use it at work.
 
@NickDugger any workplace that enforces an editor is not a good workplace
hey flaggot! :) "fuck" in itself isn't offensive in this room
 
6:21 PM
I can't stand using IDE's. Every one has tried is so complicated to learn, and makes simple edits a bitch and a half. ST3 is so lightweight and never lags on me, or is overly complicated to use
 
AND dismissed :)
 
I use Brackets for developing the front-end, then use VS for integrating, but I'm sure theyd prefer I use just VS
 
everyone loves me, you stand no chance.
 
@RUJordan ST3 is what I use at home on my macbook
 
@rlemon You causing trouble?
 
6:22 PM
no someone seems to want to flag every occurrence of the word fuck
 
don't forget the stick man with ballsack :D
 
0
Q: Chatroom Owner Privelidges

RUJordanIt's kind of annoying to not be able to see what is flagged as a room owner. Could we owners under 10k reputation be allowed to see flags coming from said specific room? (And then at 10k normal permissions override)

 
microsoft's editor for js (the one written in JS) is quite okay
 
upvote because I still have 3.3k rep left
 
lol
 
6:23 PM
and I would like to see flags
 
!!define privelidges
 
just so I can laugh
 
I'm pretty sure its been asked before
 
@AbhishekHingnikar No definition found.
 
Guys I made a picture of all of you

http://i.imgur.com/Fc3L8lh.png
 
6:23 PM
@SomeKittensUx2666 hey thanks for the accept :P
 
is this.setAttribute("data-owner","1"); the right way to store data in the DOM ?
 
@rlemon well fuck. Since the meta split it's so damn hard to find dupes
 
@Loktar yw
 
that bb code
 
6:24 PM
@RUJordan pfft... get rep, imo. :P
 
@WalleCyril yes, but someone will argue you shouldn't be storing data in your views
 
!!ban BDillan 1h
 
@AbhishekHingnikar Could not process input. Error: bot.users.findUserId is not a function on line 76
 
have been. Been trolling main so hard @rlemon complained about my fastest gun in the east
 
6:24 PM
@BDillan are you angry because you came into the Javascript room and realized we don't like Java?
 
@rlemon ^ oi
wth was that ?
 
wimp

![enter image description here][1]


[1]: http://i.stack.imgur.com/TvFYD.png
How does one post pictures!
 
read the FAQ
 
Shoot yourself in the foot
 
6:25 PM
there you go
 
it's not even funny
 
Programming language has nothing to do with how good you are as a developer
 
@BDillan did some js dev stole your job ? and your girl ?
 
Are you 12?
 
I am 12
 
6:26 PM
!!mute BDillan 1h
 
@rlemon Could not process input. Error: c.findUserId is not a function on line 113
 
The only real language-bashers are the Java devs that bash C# and vice-versa. javaScript devs don't give two shits.
 
damn
 
Whats the difference between var Foo = function(){/* ... */};, var Foo = function Foo(){/* ... */}; and var Foo = function NotFoo(){/* ... */}; ? I'm using the first type of constructor-Declaration and saw today the second type. All three types are working
 
@rlemon i tried -_-
!!mute 2249815 1h
 
6:26 PM
We don't care because there's no competing language
 
room mode changed to Gallery: anyone may enter, but only approved users can talk
@AbhishekHingnikar Muted user 2249815 for 1h
 
Why mute him?
 
what is great is that other users have before joked about being underage. due to US law SO asked them to prove they are over 13 otherwise they delete the account
 
@AbhishekHingnikar ?
 
anyone else remember that on meta?
 
6:29 PM
Oh SO is 13+?
 
@RUJordan he is subtly trying to start a language war?
@RUJordan all social media sites in the USA are
it is law
 
@bluelDe The first is an anonymous function assigned to Foo. The second is a function named Foo assigned to Foo (resolves to the same named function). The third is a function named NotFoo assigned to Foo.
 
The internet is 13+ in first-world countries
 
@BenjaminGruenbaum tried to mute the bot.users.findById is not a function
 
I mean, why did you mute that guy? Also, who did you mute?
 
6:29 PM
BDillan
 
He was flame-baiting
 
> he is subtly trying to start a language war? source
 
@rlemon why shouldn't I store data with this.setAttribute("data-owner","1"); ? After all I use this for the css
 
@rlemon subtle... rofl
 
@rlemon oh I didn't read. Ha saying Java is better than JavaScript (or the developers are) is like saying my car is better than your car
 
6:30 PM
the rest is stored in var javascript
 
You get to A to B? No shit, so does mine!
 
Making this network-agnostic is O(n^2)
 
Nowayyyyy
 
@WalleCyril ask @BenjaminGruenbaum. he loves telling people why not to use data-* attributes
 
6:31 PM
@canon Is there an advantage of using the second one? I don't see one
 
data-* attributes make me hard
 
how can I ask him ?
 
@BenjaminGruenbaum am i not supposed to mute ?
 
@WalleCyril Separation of concerns, I'd imagine. Anyhow, depending on browsers you need to support, you can also use dataSet, i.e.: this.dataSet.owner = 1
 
@WalleCyril say "@BenjaminGruenbaum why shouldn't I use data-* attributes to store data in my DOM"
 
6:31 PM
@bluelDe when debugging it's sometimes useful to have a function name
 
"@BenjaminGruenbaum why shouldn't I use data-* attributes to store data in my DOM"
 
I am now also interested
 
user1596138
Hahaha just walked in from lunch and the boss and his wife are like spooning on the office couch. Interesting.
 
> * You must use Stylus or LESS for writing CSS code
I like this place already
 
I need to support IE 13+ FF 33
 
6:33 PM
@Jhawins startup?
 
@SomeKittensUx2666 gross... keep your pre-processors out of my CSS
 
@WalleCyril looks like he is AFK
 
@AbhishekHingnikar naa, you can do whatever you want we're all equals and shit :P Your judgement is as good as mine here, I was just curios since I don't have any context.
 
user1596138
@TomW Nope. 18 year old local business
 
6:33 PM
Ah.
 
anyway, you can also read this
 
I used to dislike people muting, but honestly I've figured out I shouldn't judge because every time I tried to tell someone not to mute I was wrong.
 
i'm pretty sure it goes along the lines of what Benji would say
 
LESS makes my CSS super clean. CSS needs everything LESS does.
 
@BenjaminGruenbaum oohkay
 
6:34 PM
@WalleCyril hmm
@WalleCyril that's a great question you have there.
 
Not SCSS though. Its variable scope is fucked.
 
and what is data set thing ?
 
What sort of data do you want to store there?
 
IE 13?
I thought IE was only at 11
 
IE 13 :o
 
6:35 PM
I want to store visual effect stuff for use in CSS
 
user1596138
 
user1596138
Be jealous of my deep dish
 
holy hell
 
:-/
@Jhawins fuck u, :-( i want to eat that pizza
 
looks like a heart attack
a delicious heart attack
 
6:35 PM
@WalleCyril All modern UI design is built around a single principle - separated presentation. You want to be able to run your core application logic separately from you presentation layer. In our case, the business logic layer is written mostly in JavaScript and the presentation logic is written using the DOM, CSS and some JS too.
 
@Jhawins you might have pizza, but you don't have a laptop! harharhar!
 
user1596138
I've never had a deep dish as legitimate as this place down the road makes them haha
 
@RalphWiggum I had literally got to 'cious' and you beat me to it
 
user1596138
@NickDugger XD You win hahaha
 
@Jhawins apply s/sh/ck/ do your below the pizza message
 
user1596138
6:36 PM
If I'm being honest I only made it through 1 piece.
 
:3
 
@Jhawins or a decent phone
 
user1596138
@RUJordan Ha
 
user1596138
@AbhishekHingnikar Hey I have an iPhone that has a giant hole in the back
 
@BenjaminGruenbaum IE 13 because it is a long term project , so I can use data-* in my case ?
 
6:37 PM
@NickDugger I agree about the LESS thing
 
@WalleCyril If you want to store a visual effect in the data of the DOM element, since it only applies to the DOM element and not the state of your application - I think that's a legitimate use. If that state actually mandates application state and not visual state or a binding - that's abuse. If you just want to do a data-slide to indicate it has a sliding effect that's not nearly as bad, but honestly I'd just give it a descriptive name and put that logic in CSS.
As a CSS animation.
 
> IE 13 because it is a long term project
you might be getting ahead of yourself
 
microsoft should drop the browser -_-
 
I tried to download ie12 via the dev channel
 
@WalleCyril only use data-* attributes for properties that relate directly to the presentation of the element itself or to bind it otherwise. As long as you're not running your application from the DOM and querying your presentation for application state you're ok. It's a thin line though.
 
6:38 PM
and installation died
 
ie11 has become acceptable, but it still sits behind FF.
Chrome > FF > IE > Safari
 
@AbhishekHingnikar I think having IE around is awesome
 
Actually, I don;t even think Safari is running the same race anymore...
 
when ie will be fully html5 compalient, we will be having html7 as standard.
 
Sure it is
 
6:38 PM
@WalleCyril you can't really plan ahead for browsers that haven't even been developed yet =x
 
@BenjaminGruenbaum not so much fan of ie :-(
 
@BenjaminGruenbaum I agree... more competition is good for all of us
 
except for its good for downloading chrome
 
Safari has one of the fastest JS engines, and the best dev tools
 
Safari is shit.
 
6:39 PM
@AbhishekHingnikar me neither, but like @canon said, the competition is good for all of us.
 
@BenjaminGruenbaum without IE what would we blame when our code doesn't work?
 
@NickDugger whatever you say buddy
 
user1596138
 
Because I refuse to blame @SomeKittensUx2666
 
@RUJordan very true.
@Jhawins :[ what did u do ?
u idiot
 
6:39 PM
I don't even know how safari is doing at this point
 
@Jhawins did you just do that.... oh noooo
 
@RUJordan Blame everykittensUx2666 then
 
I've been using chrome as my primary browser across platforms for a while now
 
@canon better then IE
 
user1596138
Nope that's how it was when I got it
 
6:40 PM
> My AJAX callback wont work. This is why I hate kittens.
 
user1596138
My brother jumped off a 2 story roof for some reason.... Busted his ankle and the phone fell out of his pocket airborn.
 
How do you not slice your finger everytime you unlock that thing
 
@Jhawins whoa
 
user1596138
Somehow it isn't actually sharp at all.
 
> "For some reason..." = "drunk"
 
6:41 PM
@Jhawins i kept my broken back for like 3 months before getting it replaced
 
user1596138
The camera quality is soooooo much better now.... Not
 
the phone has got a class ;-)
 
@Jhawins brothers are imbeciles. You know any given parental couple only have one set of brains to use between them?
 
user1596138
Totally missing the whole lense/diffuser
 
my brother used to be wild lol he's the reason I am who i am now
 
user1596138
6:42 PM
I have a new back now though. Just need to put it on today.
 
That's why EVERYONE'S brother is an idiot
 
user1596138
My buddy's phone went for a swim. So he said I can have the back off it. They sent him a new one
 
@RUJordan what'd I do?
 
For me IE is good for 3 things: Good for testing IE compatibilies , good for style editor, good to save battery on a laptop on a trip.
 
user1596138
But it's white. So black front white back. Eh
 
6:42 PM
My brother once got me drunk with him at college, and he saw a PT cruiser. He said "Jordan. I don't like this car." And he threw up on it.
In hindsight I feel bad for the owners, but shit happens in college lol.
 
I have an ajax request for an php web application as like as below ::

$http({
method : 'POST',
url : 'ajax.php',
data : {
xz: "this is test",
zy: "this is another test"
},
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
})
.success(function(data) {
console.log(data);
});

But there is no output in my console. What can I do now ???
 
I've never gotten so drunk that I puked. Nor have I had a hangover.
 
@SomeKittensUx2666 you're the go-to blamer for when code doesn't work and IE has been dissolved
 
@BenjaminGruenbaum last time I tried dev tools in safari (a few months ago), they were pretty bad
 
@sabbir check for errors
 
6:43 PM
@RUJordan wait...are YOU the idiot?
 
Do you know you have ctrl+p in chrome dev tools, like sublime's?
 
@TomW no, I seriously went to college with my brother. We had a house for 3 years off campus.
 
user1596138
!!reversedefacation
 
@Jhawins Command reversedefactaion learned
 
If Im loading my JS file before the html code, will that cause it to not be able to react to button clicks?
 
6:44 PM
Although I have done my share of stupid shit
 
@Jhawins That didn't make much sense. Maybe you meant: reversedefactaion
 
user1596138
Shit I'm going to mispell that every damn time...
 
@BenCraig yes\
javascript is syncronously executed
 
user1596138
Oh and I even did it wrong to begin with.....
 
@BenCraig yes. How can the JS use the page when it hasn't even been loaded yet?
 
user1596138
6:45 PM
How did I jumble it up that bad
 
I can only guess ;)
 
@RUJordan I mean, I'm certain of my theory that given >2 brothers (by definition) at least one of them is an idiot. He might love it, grow into the role, but an idiot he will remain, always
 
user1596138
As if
 
What do you like about node.js | ( and if u know python then about python) ?
 
user1596138
@AbhishekHingnikar It's not PHP
 
6:46 PM
Node knows when to hold 'em, and when to fold 'em.
 
@TomW well... he's a rising star in his recruiting company, and I'm a software developer. We're book smart, but not action smart lol
 
Then why is JQuery working if its the first thing I load after my style pages?
 
!!afk preparing for some machine learning test. If you have any JS questions ping @rlemon if you have any php questions ping @Jhawins if you have any Java questions ping both.
 
He's calmed down a lot though since he's had a gf. So I guess I'm the idiot now :(
SHIT
 
!!afk ping @BenjaminGruenbaum because it is fun
 
user1596138
6:46 PM
@TomW I have 4 brothers, 5 sisters.
 
!!nudge 3m ping @BenjaminGruenbaum so that it pings @rlemon and @Jhawins
 
@RUJordan Nudge #1 registered.
 
362
Q: I'm doing 90% maintenance and 10% development, is this normal?

TiredProgrammerI have just recently started my career as a web developer for a medium sized company. As soon as I started I got the task of expanding an existing application (badly coded, developed by multiple programmers over the years, handles the same tasks in different ways, zero structure). So after I had...

 
@Jhawins u got a host ?
 
user1596138
@RUJordan oh you wanna play that game?
 
6:47 PM
am I the only one who loves maintenance?
 
to host a single .html file ? /with some css/
 
!!nudge 2s @RUJordan
 
protip: eliminate nudges with a refresh
@NickDugger Nudge #2 registered.
 
user1596138
@AbhishekHingnikar Yea a shitty free one
 
6:47 PM
lol
 
you don't have to write all the boring boilerplate to write every time you start a new entity or stuff like that
 
@AbhishekHingnikar github
 
@rlemon hmm yeah good idea <
 
!!s/maintenance/php/
 
6:49 PM
@NickDugger am I the only one who loves php? (source)
 
@SomeKittensUx2666 kendall being the one who took the picture?
 
@SimonSarris Happy birthday!
10
 
@FlorianMargaine I don't love maintenance, but I get used to the idea of being considered good at it
since it's all I get to do
 
@SimonSarris happy birthday man!
 
@FlorianMargaine yessiree
 
6:51 PM
@RUJordan, no errors. In ajax.php::
var_dump($_POST);

And It returns an empty array
 
@CaptainCanvas context.fillText("Happy Birthday!!!!!", 10, 10);
 
@FlorianMargaine Maintenance teaches you a surprising amount about frameworks. Specifically, the parts that the previous developer didn't understand.
 
@sabbir what are you talking about?
 
exactly
 
@SimonSarris omg happy birthday bro!
 
6:54 PM
Who the cheese is @SimonSarris?
 
A brilliant, brilliant man.
 
author of HTML5 unleashed
one of the rare to have the canvas golden badge on SO
and he used to be regular here. He still comes now and then.
 
@RUJordan, I just want to pass parameter for ajax call in angularjs
 
he promised to father my firstborn.
 
@SomeKittensUx2666 Because I live in the attic, and less than half that
 
6:56 PM
is angular + php really a thing? isn't that like putting a jet engine on a biplane?
 
@rlemon so your second born is stuck with you? Some parent you are
 
@rlemon on the internet, nobody knows you're PHP :P
 
Simon still logs into SO
I think he is just a bit put off by the general attitude on SO
people as of lately seem mean overall to newcomers
 
Never heard of HTML5 Unleashed. I don't read much...
 
!!afk fucking late ass lunch send @rlemon my <3
 
6:58 PM
@Loktar THAT SO ISNT TRUE> YOU SHUT YER MOUTH YOU NOOB!
 
@SimonSarris HAPPY BIRTHDAY
 
jeeze even mean to latecomers :(
not even a word
 
I'm angry at you because no good steam games yet
you get blamed for all things gaming
 
also happy birthday @simonsarris !!
 
I was under the impression everyone on SO was mean
I never like asking questions for this reason
 
6:59 PM
You ever get so angry you become bread?
 
@rlemon steam sales have been disappointing me too
but thats because I own like 45% of all steam games lol
 

« first day (1343 days earlier)      last day (3621 days later) »