« first day (1466 days earlier)      last day (3465 days later) » 

8:00 PM
oh. oh dear.
 
That reminds me of american dad where they roasted Roger and pulled out of the objects he's had sex with xD
 
@SterlingArcher your pedo is showing again
 
lol fuck you
 
better
 
how old are you Kendall?
19?
 
8:01 PM
14
 
too old
 
@SterlingArcher wants to fuck a teenager?
 
forth
 
@rlemon I mean, it's not unreasonable.
@Shmiddty clever
 
8:04 PM
@rlemon been there, done that
 
done that
 
!!> 28/2+7
 
ahahahah
 
@rlemon 21
 
#punintended
 
8:05 PM
teenagers are outside of my limits
not to say I want them in my limits
 
!!> 22/7
 
@SomeKittens 3.142857142857143
 
Can X/Y = Pi?
 
don't think so
 
8:06 PM
nope
 
isn't PI an Irrational Number ??
 
yes!
 
The number π (pi) has been studied since ancient times, and so has the concept of irrational numbers. An irrational number is any real number that cannot be expressed as a fraction a/b, where a is an integer and b is a non-zero integer. It was not until the 18th century that Johann Heinrich Lambert proved that π is irrational. In the 19th century, Charles Hermite found a proof that requires no prerequisite knowledge beyond basic calculus. A simplification of Hermite's proof is due to Mary Cartwright. Two other such proofs are due to Ivan Niven and to Miklós Laczkovich. In 1882, Ferdinand vo...
 
@rlemon that's numbersogymistic
 
!!> x = Math.PI; y = 1; x / y
 
8:07 PM
@KendallFrey 3.141592653589793
 
see?
 
Kentroll Frey strikes again!
2
 
God dammit, he's not wrong technically -_-
 
of course not
 
lol
 
8:09 PM
I guess pi is at its base a fraction though
Just not with integers
 
You guys are all wrong for assuming {X,Y}∈N
 
@BenjaminGruenbaum mind helping me with an Angular problem? It's got unit tests!
 
Math.PI ∈ IEEE754
 
@TravisJ pi at its base is 10 :)
 
8:13 PM
Hi guys
if you have
 
can someone please tell me why chrome is just now jumping when using .html to replace a div?
 
@Randallsm83 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.
 
@KendallFrey - Numerically, but not conceptually.
 
@SomeKittens node + express question
function foo(req, res, next) {
    if (req.bar) {
        return res.redirect('/page1').end();
    }
    next();
}

function bar(req, res, next) {
	foo(req,res,function() {
		if( something ) return res.redirect('/page2').end();
		next();
	});
}
they are both middleware
I need to check 'foo' always, and 'bar' sometimes.
 
@SomeKittens shoot
 
8:14 PM
I didn't want to duplicate the foo code in bar
 
var SomeClass = new function(a) { this.a = a; }
SomeClass.prototype.fn = function(b) {console.log(b); return this; }
is this to instantiate an object
 
@BenjaminGruenbaum ctrl.$formatters isn't being called when I change the model value on scope in the tests
 
var o = new SomeClass(5);
 
!!> var SomeClass = new function(a) { this.a = a; }; var o = new SomeClass(5); console.dir(o)
 
@rlemon "TypeError: SomeClass is not a constructor"
 
8:16 PM
@SomeKittens did you try manually trigerring a digest?
 
!!> function SomeClass(a) { this.a = a; }; var o = new SomeClass(5); console.dir(o)
 
@rlemon "TypeError: console.dir is not a function"
 
er, w/e
@ziGi get the picture?
 
  setName: function (newName) {
    $scope.model.instanceName = newName;
    $scope.$digest();
  },
@BenjaminGruenbaum ^^
 
@rlemon yeah
I was just wondering
 
8:17 PM
<input ng-model="model.instanceName"
 
I have to read a bit more on prototypes apparently
 
if you are doing var foo = new function(){} the resulting Object is not a constructor
 
yeah, it's a function
 
@rlemon but in the first they do what I do?
var Point = function(x, y)
{
    this.x = x;
    this.y = y;
}

Point.prototype.translate = function(x, y)
{
    this.x += x;
    this.y += y;
}

var point = new Point(17, 42);
 
8:18 PM
var SomeClass = new function(a) { this.a = a; }
SomeClass.prototype.fn = function(b) {console.log(b); return this; }
var o = new SomeClass(5);
 
oh sorry I write new
it's a mistake
my bad
 
yea, that 'new' makes a world of difference
 
@BenjaminGruenbaum I saw that - wasn't quite sure if it was what I was looking for
 
I am an idiot
 
8:19 PM
Sometimes I get really frustrated at the quality of the code of my coworker, who has more experience than me. Do I have the right to do so, or should I just not care? This questions is already asking for a certain answer, but what do you think?

Can a lower level guy confront a more experienced developer about the quality of the code? Is that crossing weird social boundaries?
 
You must now sacrifice one goat to rlemon
 
Mainly because I'm making the change outside of the directive.
 
@NickDugger depends on if it is actually bad or if you just perceive it as bad.
you have a history of these things
 
@rlemon yeah I know it, since JS don't allow class definition so they invented the prototype
 
@rlemon well, the most recent thing is that he decided to edit a library we use, instead of extending it. Now we can never update the library.
 
8:21 PM
@SomeKittens to be honest I'm not sure.
 
That's not code quality, that's just moronic.
 
@KendallFrey there's other things as well
 
Where is florian with the zoidberg gif
 
@NickDugger real life co-worker? If you can - don't condemn, complain or criticize. Instead educate.
Have a constructive discussion with them.
 
@NickDugger 100% of the time I've verbally complained about code quality I've regretted it. 100% of the time I've asked for clarification it was helpful.
"Hey, I don't understand why you did X. Why would you use it over Y?" Don't be afraid of looking stupid.
 
8:23 PM
@BenjaminGruenbaum I have no idea how I would tackle that without the other person feeling belittled.
 
app.get('/foo/:key', checkFoo, handleReq);
function checkFoo(req, res, next) {
  if( !someCondition ) {
    return res.redirect(/* the same page minus the /:key bit .*).end();
  }
  next();
}
 
@SomeKittens Why don't you add {1} to it?
 
@SomeKittens he has a limited knowledge of javascript, yet he writes as much as I do. So when I read over his code and ask, why didn't you use X? He'll say, "What's X?"
 
req.params.key!
got it
thanks for the help room!
you guys saved me once again
 
8:24 PM
for example, he was unaware of "hasOwnProperty"
 
@NickDugger Then tell him about X (but don't be patronizing)
 
I had no idea my co-worker has had the OnePlus One for a couple months now
 
!!xkcd 10000
 
@NickDugger By asking "why didn't you X", either he learns something or you do
 
8:24 PM
fail
!!xkcd today's lucky 10,000
 
^ Take that attitude.
 
haha
 
that 404 page gave me an idea
 
8:25 PM
@NickDugger don't put people who have been in the industry longer on some sort of magic pedestal
 
I'm going to start a band called 4OH!4
 
everyone has more to learn no matter the years of experience
 
user2620028
hasn't someone beaten you to that sterling?
 
@SomeKittens but he's like 12 years older than me, and has way more years of experience as me. He's leaving the company in about a week, so I don't ask about how to communicate with him specifically, but we will be getting another dev in after he goes.
 
oh.. just leave it then
if he is leaving don't even bother
 
8:26 PM
^
 
user2620028
@SterlingArcher 4oh4.ca/about-us
 
just fix it when he leaves
 
@NickDugger that's really hard.
 
but I don't want the next dev to be as... bad...
lol
 
@HatterisMad looks like I'm one of todays lucky 10,000!
 
8:27 PM
@NickDugger i got it working
 
eh educate the next dev
he should look to you anyway
 
@NickDugger worry about that when the time comes
 
since you've been there longer
 
bitching at the old dev won't teach the new dev anything
 
do you have any coding style guides you follow?
 
user2620028
 
point the new dev to those
 
13 likes is not a band
 
@NickDugger is used

function myfunc() { alert('hi'); }
var tmp = "myfunc";
window[tmp]();
 
That's a group of friends who wont make it past college
 
user2620028
@SterlingArcher actually i was thinking of a korean pop band.... but it must be slightly different because the google search didnt bring them up.
 
8:28 PM
lol
 
@devdar no... why are you creating global variables?
 
@NickDugger suggest code reviews and ask questions, don't belittle him and don't put him in a corner.
 
EXPRESS PEOPLES! how do I get part of the route?
 
@All thanks for the advice. It's a weird place to be in since I'm young and new to the industry.
 
8:28 PM
return res.redirect('/' + req.route.split('/:')[0]).end();
 
No one puts baby in a corner
 
seems ugly af
 
@BenjaminGruenbaum did you see that the dev is leaving in a week anyway?
Kind of makes it all a moot point imo
 
@rlemon what part of the route?
 
@SterlingArcher first part
 
8:29 PM
Every test is easier to write than the last one
 
/foo/:key <- I need the /foo bit
 
> AH MAH GAWD I CANT STAND WHEN MY MOTHER IN LAW LEAVES THE TOILET SEAT DOWN! WHAT CAN I DO TO MAKE HER STAHP, she gets on a plane tomorrow.
 
What's wrong with split?
 
@Loktar oh, if he's leaving in a week @NickDugger your time is short and you have to do damage control right now
 
8:30 PM
You need to go through his code bases, with him and document things. Resist the urge to actually fix things - document.
 
^
 
sarcasm? Anyways, I was asking for interacting with the new guy, when we get a hire. I don't know how to approach others about their bad code
 
@SterlingArcher ugly af imo
 
@rlemon well, it seems like sound logic, but let me think
 
8:31 PM
@NickDugger lol yeah a bit of sarcasm, it sounded like you were complaining about one individual who leaves in a week :P
 
@SterlingArcher that's genius
:D
 
@SterlingArcher I was hoping there was something internal
 
@NickDugger don't approach others about their bad code, have clear coding standards and facilitate pair programming every now and then and code review.
 
@NickDugger formal code reviews are a way to make it your responsibility to point out bad code and not do it to be a dick
 
but yea, if there isn't that works.
 
8:32 PM
Alright, I think I will approach my boss about code reviews.
 
I think clear coding standards is the most important thing
 
Also, remember - everyone wants to improve and be better - even if some more than others, no one wants to be the bad programmer or write bad code but plenty of people are.
 
otherwise people will fight you regardless @NickDugger
 
@NickDugger if you approach your boss, you better be ready to explain why it's going to save them money.
 
it's always about the money
 
8:32 PM
@BenjaminGruenbaum he's usually really understanding. I think he'll be okay with it.
 
It's all about the Benjamins
 
if bad code makes you more money than good code, it becomes good code. TRUTH
 
hahah yea
 
@NickDugger he might be, but it's still a good idea to explain how it's going to save him money.
 
@NickDugger how many devs are on the team?
 
8:34 PM
@BenjaminGruenbaum @NickDugger keyword "technical debt"
 
I know that I appreciate being proven that there are better ways to do things; I always want to do it the best way possible. I'm just afraid that when I tell other people that there are better ways to do things that I will offend them and cause some strain on a work relationship. -- I think code reviews can be a great solution.
 
also like what @BenjaminGruenbaum said, its important to outline it because you never know when another dev might try to undermine it and talk to your boss and say it cost money do to slower code production :P
 
@KendallFrey there is actually a very good response article with a similar conclusion as a response to a Bob Martin "test everything, even when PoCing" BS post.
 
@Loktar 2 front end guys, but one is leaving.
2 back end guys, and they're looking for a third
 
so three total including you?
 
8:34 PM
Nah, I'm one of the two
 
or just you and one other front end guy?
ah ok, that was the situation I was in
it definitely sucks, but is really important to communicate
omg so important lol
 
How to Win Friends and Influence People is a great reference for situations like this
 
@NickDugger don't dash criticism unless asked. Seriously, that's one of the biggest mistakes people make. I make it too.
 
I can't even count the amount of bad days I had due to lack of communication :?
 
Educate and improve.
 
I love my job, it's just frustrating to have half of the code being kinda mewashahahasfg
 
this thing is really cool
 
@BenjaminGruenbaum bleh same here
had a meeting last week about building a new app, I pointed out I dont want it to be jquery speghetti like our other apps :/
the developers agreed but I think I hurt some feelings
I should have worded it better
 
I criticize too much, and nothing good comes out of it :D
 
I do know that I am going to rewrite some of my coworkers code once he leaves, I just don't know how much yet. lol
 
8:36 PM
Every time you start a new project, you have the opportunity to write fresh, new spaghetti code.
8
 
@Loktar sometimes you have to hurt feelings to get a message across though. You certainly could have worded it worse.
 
I prefer ravioli code
 
At least that's how it feels here
 
@KendallFrey wish I could star that twice :D
 
@BenjaminGruenbaum starred on behalf
 
8:37 PM
Where did I read that article about a rewrite?
 
Especially in rewrites. @NickDugger if you haven't read Joel's article on that it's quite dramatic and painfully correct.
 
Joel?
 
@KendallFrey Joel
 
Billy?
 
8:38 PM
Hey @BenjaminGruenbaum nice to see you, what's up
 
Called "things you should never do"
 
Software
 
yup
posted a millisecond before I would have
 
@ziGi the sky :D
 
8:39 PM
Well, I super appreciate all of the advice, again. I should really be in the other seat, writing the bad code. It's an odd place to be, since I'm such a newbie
 
you are so funny
you should become a stand up comedian maybe
:D
 
My sarcasm detector is going off the charts!
 
Conversations with ignored people really make me want to unignore them
 
!!s/\bc/s/
 
@KendallFrey My sarcasm detector is going off the sharts! (source)
 
8:40 PM
Can anyone tell me if there is a difference between Judaism and Zionism and if so what is it?
 
I don't know why, that's funny
 
I hear it a lot lately interchangeably
 
@KendallFrey I lol'd
 
@ziGi Judaism I've heard of
 
8:40 PM
O.o
 
I lol'd
 
isn't there a religious chat?
 
@NickDugger welcome to software development where most developers are bad :D
 
@SterlingArcher I will never forget hearing my coworker clearly say "pig shit" in a meeting once
 
not trying to be a dick becuase I love getting into those discussions
but I smell bait
 
8:41 PM
@ziGi you should google it. You and religious talks don't mix well here.
 
Yay life
 
yay cinnamon life
 
@KendallFrey my boss said suck it in a meeting once
 
!!s/and religious talks //
 
@phenomnomnominal @ziGi you should google it. You don't mix well here. (source)
2
 
8:42 PM
haha
 
I mix?
 
@ziGi yes there is. Judaism is a religion, Zionism is a national movement of the Jewish people to re-establish the country of Israel which was a Jewish country 2000 years ago. Also - you can totally google that.
 
My company swears too much.
 
I am not a DJ to mix
 
Did nobody lol at the comic? D:
 
8:42 PM
@phenomnomnominal My company never swears
"pig shit" is a terrible faux pas
 
Ok ok ok ok one more xD
 
I don't know if anyone else noticed though
@SterlingArcher seen it
 
Our head of commercial called something a clusterfuck in an all company meeting yesterday, twas funny
 
GOD DAMMIT I HATE YOU KENDALL
:cries and runs away:
 
I LOVE ME TOO
 
8:43 PM
simpsons did it
 
!!s/H//
 
@phenomnomnominal GOD DAMMIT I ATE YOU KENDALL (source)
 
I'm very easy on the digestion
 
Is Sterling a French Canadian now?
 
8:44 PM
He's a secret agent.
In ISIS.
 
@KendallFrey it was shockingly non-sexually delicious
 
50 secs ago, by Caprica Six
@phenomnomnominal GOD DAMMIT I ATE YOU KENDALL (source)
because you are not saying the 'H'
 
that's how French talk
 
8:45 PM
@ziGi that would be 'Ate
not Ate
Dumbass.
 
@rlemon lmfao
 
HATE is read as ATE by french people, cause they don't say the H usually, especially if they have a heavier accent
 
bye bye @zigi
 
French != French Canadian
 
wat
 
8:47 PM
Do you read ATE and EIGHT the same way?
 
@rlemon seen also
 
Yes
 
French Canadian is fake french
Franglais
 
French Canadian is fake Canadian
 
Spanglish
Pft. All of Canada is fake
 
8:48 PM
Espanelenchlish
 
@SterlingArcher your genitalia is fake
 
the word fake you write is fake
 
@SterlingArcher exactly, it is actually a tropical oasis up here. We just let you all think it is snow and ice and polar bears so you'll stay the fuck away
more poutine for us
 
cause it is not really existing, it is virtual
 
^ false
 
8:49 PM
how do I know that actually you guys aren't just a really evolved AIs?
 
doesn't negate it being a word
 
@rlemon one day I will try poutine
 
Let's see how tiny avatars work for me.
 
i am a meat popsicle
 
@KendallFrey I WAS IN A CAR ACCIDENT YOU ASSHAT
lol jk, it's all there
 
8:49 PM
@ziGi I am.
 
that means that Caprica is the child creation of an AI
wow, such an evolved AI
it can code
 
@SterlingArcher I was too, don't be a jerk about it
 
but if an AI is evolved enough can't it change it's own code and recompile itself?
 
(function(doc) {
  doc.write('Hello World!');
}(document));
 
@KendallFrey pft, hitting a mailbox is not a car accident
@CapricaSix -1 doc.write()
 
8:51 PM
need i repost the picture?
 
Of your vagina?
 
of the car
 
rlemon got a good shot of it aleady, I'm good
wait are you serious?
 
it was expensive
 
it's a Mangina
 
8:51 PM
yes im serious
 
not a Vahina
 
Shit man, my bad, didn't know.
 
#SuddenRegret
 
8:52 PM
!!s/R//
 
@KendallFrey #Suddenegret (source)
 
His car has a vengine and runs on vas
:D
 
I... I don't get it
 
well found someone else using lememe, but they are crediting, but they used my API key
 
!!s/de/a-/
 
8:52 PM
mixed emotions
 
@phenomnomnominal @KendallFrey #Suda-negret (source) (source)
 
suddenly, an egret
 
haha :D
it's like an eclair
just more evolved
 
@rlemon well, at least credit.
 
8:53 PM
wow, actually there is a bird called egret
ahaha
who tells you
 
@BenjaminGruenbaum yea, but imgur limits N imgs/day per api key
still don't want someone nipping my api key
 
@KendallFrey lol oh
 
how did he get your api key?
 
@KendallFrey are you a French Canadian?
 
@KendallFrey client side, it's public.
 
8:54 PM
those are supposed to be private
 
I don't know why but I always mistake you with Florian
 
in a few weeks / month I will re-write lememe (cc @mikedidthis)
 
@KendallFrey - anyone post-wardrobe-malfunction
 
"Oh no, my penis somehow escaped my zipper and is now on national tv oh nooooooo"
That's what I think a "wardrobe malfunction" is
 
@FlorianMargaine is that a tattoo or hair on your neck on your profile pic?
 
8:57 PM
@SterlingArcher "good thing I just happened to be wearing my pasties during this unplanned wardrobe malfunction"
 
pasties..?
ohhhh
haha
 
today you're one of the lucky 10000
 
that's twice today dude
 
see also: why I don't trust pastie.org
 
Lets go to the grocery store.
 
8:58 PM
I'm the lucky 2/10000!
 
your math sucks
 
my math strong
 
haha this reminds me of my colleague who didn't know what a logarithmic chart is
 
8:59 PM
!!afk home
 

« first day (1466 days earlier)      last day (3465 days later) »