« first day (2355 days earlier)      last day (2596 days later) » 

11:00 PM
Array.prototype.binarySearch = function(t) {
    var middleIndex = Math.floor((this.length) / 2);
    var midVal = this[middleIndex];
    console.log(this);
    if(this.length <= 1)    return midVal == t;
    if(midVal > t)  return this.slice(0, middleIndex - 1).binarySearch(t);
    if(midVal < t)  return this.slice(middleIndex + 1).binarySearch(t);
};
-- or --
function binarySearch(arr, t) {
    var middleIndex = Math.floor((arr.length) / 2);
    var midVal = arr[middleIndex];
    if(arr.length <= 1)    return midVal == t;
    if(midVal > t)  return binarySearch(arr.slice(0, middleIndex - 1), t);
    if(midVal < t)  return binarySearch(arr.slice(middleIndex + 1), t);
}
 
lol the ss-tube @ssube
 
the array method is undefined
 
don't extend objects you don't own; do the second way
 
Oh. For some reason, my canvas is just rendering stuff off screen after the update. Weird
 
the second way is much better
 
11:01 PM
I'm just curious as to why its not working
 
it doesn't really matter, since it would break someone else anyway
 
Ai true
How do you think that is in terms of efficiency?
 
@KendallFrey @Zirak
 
@Jasch1 well, you don't need to slice, you can just pass a start and end index
 
Ohhhhhhhh..... think I found my issue
fetch doesn't set the cookie header automatically?
 
11:06 PM
@ssube wdym?
 
TIL
 
Sorry I haven't worked w/ algorithmic stuff so not up to snuff w/ array methods
 
return binarySearch(arr, 0, middleIndex - 1, t);
then middleIndex = Math.floor((end - start) / 2);
the rest is pretty much the same
 
array.slice creates a new array
 
cool, cookie works now... I didn't know fetch omitted cookie by default
 
11:08 PM
any ideas why on commiting linting wouldn't run?

"pre-commit": "lint",
"lint": "tslint 'src/*.js'",
 
then i have to make helper functions
 
@ndugger lol that seems to catch so many people
 
@SuperUberDuper is that using npmjs.com/package/pre-commit ?
 
@Loktar I mean, I guess it could maybe possibly help with XSS? But you should just protect against even letting XSS happen vs trying to secure your data after the fact, lol
 
11:12 PM
yeah it's dumb
 
i thought it was built in
 
I remember dealing with that when I first used fetch
then @Jhawins had the issue as well
 
I've used fetch a lot before, just not cookies, strangely enough
http/2 should have added a new alternative; cookie syntax sucks butt
 
@ndugger there are plenty of alternatives already
 
11:14 PM
I know everything, except for everything
 
"lint": "tslint 'src/*.js'", goes inside "scripts" in your package.json
the "pre-commit" thing goes in the root of package.json
 
I need to add pre-commit linting. I added pre-push test running for my project at Target, though
 
I want my commits to be instant. i would grow tired of waiting for a full project lint
 
you can have both with some kind of status check
 
I think that's more of a "CI" task than a pre-commit
 
11:18 PM
but usually I lint before the commit
seems better
 
I get to use React/MobX/Babel/Webpack + Node + Electron at Target... like, honestly, I don't even get to fight for what I want; they just give me ultimate autonomy and let me do what I want. It's almost boring not being frustrated with people.
 
are you hiring?
 
lol
 
always
their turnover kind of forces it
 
You get free turnovers?
are they apple?
 
11:20 PM
They didn't drug test me, so, there's that
 
I would work almost anywhere that had free turnovers
 
i probably shouldn't work there.
 
Seriously though if a company tried to drug test me I'd just withdraw my name from consideration
 
@Meredith That's why they aren't drug testing developers anymore; nobody wanted to even take the drug test, regardless if they took drugs or not
 
it's pretty normal in some big companies.. i'd just quit until i passed a home test if I had to.
 
11:21 PM
"regardless"
 
oh absolutely, drug testing is for jobs that might kill somebody and the govt
and mcdonalds
 
They all do drugs
 
of course
 
the govt and mcdonalds don't want you to work there, so they test
 
I kind of want my mcdonalds employees to smoke pot. I feel like the food would be better somehow
 
the last place, i just asked a bunch of related questions to the HR guy until he said 'we don't drug test'.
 
ha
 
lol
 
Then abruptly hung up the phone (this part is a joke).
 
I didn't even ask with Target. I just decided that I would go through the process, and if there was a drug test, I would bomb it and become homeless.
 
11:23 PM
It's illegal for a company to drug test you as part of an interview in Straya
 
cool look at you guys and your civilized country
 
it's common (but not consistent) in the US. It's not part of the interview, but just part of the hiring process. sometimes they do a credit check, etc.
 
@ssube Marriage equality? Not so much...
 
my current place ran a background check
 
Some of the best people I've worked with consistently operate on a higher level
 
11:25 PM
yea, i've had that.
 
I asked for a copy out of curiosity and they sent me an email the next day like "oh no, we found something that might be bad"
it was a speeding ticket
 
omg
 
work oddly didn't care
 
@ssube You WHAT?!!
 
yeah I was doing like 10 over one time (or so it ended up getting written down)
the cop definitely didn't ask me what I was driving and how much it cost while cutting 20 off the ticket
 
11:26 PM
My days of speeding are behind me... I used to get so many tickets...
 
I have no idea why he did, I expected +20
but hey
 
Were you renting a ferrari or something at the time?
 
nope, just my bimmer
 
he thought you were late for a middle manager convention.
 
oh I was, that's all that happened at my last gig :)
 
11:31 PM
ahahha and now you're back to writing code?
oh man, i really hate when people ask "are you winning?"
 
I've never been a manager, I'm not really management material, but they had almost as many managers as devs when I left.
 
did that cause you to leave?
 
it was one and the same with the larger problem that did
 
it takes a special type of manager to resist adding extra process as their own value add
 
the sort of org that thinks 50% management is useful doesn't really get anywhere
 
11:33 PM
yep totally agree
 
it was also the sort of shop where the senior folks were allowed to skip code reviews
that directly cost them money a few times and was always ignored
like, a bug accidentally issues a bunch of extra gift cards
 
"accidently"
 
I mean, I actually want people to review my code... It's a good thing... even if I was allowed, I'd still do it
 
it was, it just ran twice for a bunch of people thanks to untested logic
 
yeah, i love it when people call me out on my mistakes
because then we both get to learn something
 
11:35 PM
@ndugger I spent an hour this afternoon writing a disaster recovery plan for an update query I'm running tomorrow night
 
At my place senior means about 50% of your time will be spent sitting with other devs helping them to suck less
 
I*
 
U*
 
O*
 
K*
 
11:36 PM
sounds like a great place @monners
you hiring? lol
 
We are, actually.
 
i won't tell them that i see you all the time on stackoverflow chat if you don't
 
you don't put SO on your resume?
 
I don't
 
huh isn't it pretty standard to put stackoverflow/github on there
 
11:37 PM
I think it goes well in the open source contributions/community participation section, like you'd put working on a JS proposal or something
 
i mean it would definitely put you above a lot of applicants
 
> Here are the repos and tags I've contributed to significantly...
 
it says, hey this guy does this for fun
 
I have my github on my resume, but nothing about stackoverflow
 
unless its a workplace which doesn't encourage that sort of behaviour
 
11:38 PM
get moar points
put it on
 
because I actually think SO's main site is garbage for JS content
 
that doesn't really matter near as much as showing that you are competent enough to teach
if anything, you want them to only look at your answers
 
I don't have that much content on SO that I'm happy with
Most of it was made while I was still retarded
 
When I write my tests I use karma start with single run = false. what should be the command I run on my CI server?
 
you usually have a separate config file for CI
 
11:41 PM
@SuperUberDuper if you use single run = false and your tests never end, what could make them end after one run?
 
i dont know
I can specificy when the test ends?
 
you have the answer in your question almost verbatim
 
i dunno @ndugger, isn't it good to show your progress of retarded to not rearded?
 
no, I'm still retarded
 
well the worst thing that can happen is if you look at code 6 months ago and go
yup, this is pretty much how i would solve it today
 
11:44 PM
I'm pretty sure I've peaked. It's all down hill from here.
 
i believe in you @ndugger :)
 
A good stack overflow question is an accounting or your ignorance. Of course you think of yourself as retarded when judging what you had to ask others.
 
Been trying for days to get some help with this. If you guys would take a look I would really appreciate it: stackoverflow.com/questions/43081608/…
 
I have an IQ of 135, but I'm basically a retarded ape.
 
@natem1270 you are loading bootstrap.js but then making your own dropdown?
 
11:49 PM
@Luggage I'm very new to web design. Is this the reason it's not working as desired? How would I use boostrap to do the dropdown?
 
also the jsfiddle in the comments shows that the menu sliding in and out just fine, i mean there are a few styling issues but it works
 
@derp hmm... on my screen it doesn't display any animation
 
user1596138
Anybody here used the TBell app? You 110% lost in this UI like I am? Sort of relevant for front end chat
 
user1596138
What were they going for. My head hurts, I'll just order at the store.
 
Hello guys!
 
11:54 PM
@NateMathews, is some sort of firewall blocking some of the cdns then?
you can check in the console log
also are you clicking on the hamburger menu? the styling makes it the same colour as the header
 
I have several settimeout functions to show how my sprite moves, but when it move to the left or right is just teletransport. How should I animate it so it looks more like moving to the next point, transition (css) animation() , any idea?
 
@randseed1724 search MDN for requestAnimationFrame
 
thanks dude!
 
hahah beat me to it
 

« first day (2355 days earlier)      last day (2596 days later) »