« first day (1871 days earlier)      last day (3060 days later) » 

8:00 PM
What the hell is, "monkey jacking"?
 
!!urban monkey jacking
 
I have a theory, but... mods...
 
@rlemon No definition found for monkey jacking
 
@Nick I think he means like survival of the fittest with random features
??
or like a million monkeys theorem for developing a language
 
or... sexually abusing monkeys; you never know with @Abhishrek
 
8:02 PM
@rlemon the latter
 
The theory that a monkey typing randomly will at somepoint in distant time recreate a shakespear play?
 
!!tell SterlingArcher wiki infinite monkeys
 
funny theorem
 
How does Slack do the team-based subdomain thing? Is that just simple routing on the backend? Or is it more complex than that?
 
8:10 PM
@DemCodeLines It is (just simple routing).
 
let array = [25, 8, 7, 41];
array.sort((a,b) => a > b);
array.sort((a,b) => a - b);
 
How the heck do you create custom subdomains though?
 
You can do subdomains with routing?
 
- ad > yield the same results... but is there a fundamental difference between them?
 
actually, I don't know how you do subdomains at all
 
8:12 PM
@SterlingArcher I believe it boils down to the definition of "truthy"
 
@Nick The only time I have dealt with subdomains is when using a web hosting and using their CPanel. I've never heard of creating subdomain-like effect on the fly with routing.
 
Doesn't subtraction boil down to truthy falsy as well?
Hrm, maybe not
 
since the lambda simply determines when to swap two values (as a boolean), it determines if the result of the subtraction is sufficiently truthy. I'm not sure which language you're referring to, but negative values may be considered falsy
have you tried verifying this behavior with different values in the list?
 
!!> if (-1) "derp";
 
@SterlingArcher "derp"
 
8:15 PM
@SterlingArcher a - b gives you the entire + 0 - spread
 
Negative values are truthy
0 is falsy
 
> gives you 1/0
 
user1596138
@rlemon lol yeah doesn't your McDs have like a $1.49 menu instead of a $1 menu
 
@Jhawins I think it is $1.89 now
 
Wait that doesn't make sense... are negative numbers/doubles truthy??
 
8:15 PM
but yea
 
user1596138
Damn
 
yes, negatives are truthy
 
@SterlingArcher you have three states, greater, lesser and even
not just two
 
So 1-1 = 0, no sort performed
 
there is an edge case I hit not too long ago
 
8:16 PM
Does that make - more efficient than <>?
 
It was because I was doing a boolean operand
can't remember what the edge case was now
but I did hit it :D
 
@Zirak solved it for me
he may know off the top of his head why not to use a>b/a<b as the return
 
Well now I'm super curious
Couldn't you just use >=?
 
user1596138
Wait what are you guys talking about I want to learn
 
8:17 PM
edge case for sorting with (a,b) => a>b;
 
user1596138
Oh he is sorting
 
The differences in sorting > or >= vs -
 
user1596138
- isn't a comparison operator?
 
if( a>b ) return 1;
if( b>a ) return -1;
return a-b; // 0
is how I could write it
 
user1596138
Ah so subtracting them from each other to see if one is greater or less than
 
8:18 PM
> Less than 0: "a" is sorted to be a lower index than "b".
Zero: "a" and "b" are considered equal, and no sorting is performed.
Greater than 0: "b" is sorted to be a lower index than "a".
 
Ron
What's the best place to read about best practices of OOP JS?
 
By that logic, >= seems to be the exact same as -
Because it checks for 0
 
You could also do Math.min(Math.max(parseInt(a - b), -1), 1);, if you hate yourself
 
there is a caveat with a>b
but I cannot remember what it is now
dammit
 
!!define caveat
 
8:20 PM
@SterlingArcher caveat a warning
 
@SterlingArcher Nah, you still need at least two comparisons
 
I have 10 minutes before a [potentially] long meeting. If Zirak answers, please ping me!
@KendallFrey but isn't that 2 comparisons?
 
>=? no
 
a greater than or less than b. Greater, equal, or not?
 
8:21 PM
no
 
!!> [1,11,10,2,14,"abc"].sort((a,b)=>a>b)
 
@rlemon "1,2,10,11,14,abc"
 
>= is the inverse of <
there are still only two possibilities
sort expects 3
 
But it yields the same results (except apparently edge case)
 
same result as?
 
oooops, getting away from me
 
is there any way in angular to have nested forms, each either their own validation?
 
Is someone just going around and downvoting posts?
 
!!> [3,,true,false, "four", true, false, null].sort((a,b) => a - b);
 
8:23 PM
@SterlingArcher "false,,true,3,four,false,true,"
 
@SterlingArcher to replace -, you need at least two comparisons
sort has 3 possible actions. comparison operators can only return 2 possible results
 
Hrm, da fuq
 
@SterlingArcher "false,false,,true,true,four,3,"
 
If you guys are/will be in NYC: eventbrite.com/e/…
 
@rlemon think I found the edge case ^ booleans
 
8:24 PM
also, no comparison operator can return a negative value
 
Interesting
 
user1596138
@KendallFrey Is that true?
 
if this keeps going ping me, I gotta do meeting stuffs
 
user1596138
Won't it be type coerced
 
!!afk meeting
 
8:25 PM
@Jhawins they return true/false (1/0)
 
user1596138
-1 will = 1
 
wurt
no
 
user1596138
Err. I misunderstood because of some wording
 
"Selenium Automated UI Testing in Angular"
Does that make any sense to anyone here?
 
No, because you should be using Protractor instead of vanilla Selenium.
 
user1596138
8:26 PM
@KendallFrey I meant if you returned -1 to something expecting a truthy/falsey value it will just call it true. But that is irrelevant I was misunderstanding
 
Switches just arrived
drools
24 port gigabit switch looks so sexy
 
user1596138
Is there any way to (in Windows) basically point and click something and return the PID?
 
user1596138
I have a stuck cmd window
 
user1596138
It isn't even doing anything that I know of haha
 
user1596138
Don't seem to be able to find it
 
8:30 PM
@Plummer makes sense to me
but yeah, you should probably be using something with a little more oomph
 
@Jhawins Process Explorer seems to allow that
 
I've been using it recently, it's quite a handy tool
 
user1596138
You both said the same thing. Thank you
 
it's a drag-n-drop
 
this entire concept of automated UI testing is new to me and I'm trying to find a good resource to get up to speed. Google search turns up a lot of "here's what we did" articles, but I kinda need a "take it from the top" approach
 
There really isn't a take it from the top approach
 
@Cereal wait
where did the beer come from?!
 
Hey, I've been wondering; Where do you guys put event listeners in your code? A specific file for that? In the html file at the end of the body? How do you usually organize them?
 
The QA dudes on this project are trying to tell me we need to add in a bunch of testing specific classes to DOM elements
 
8:32 PM
@Plummer hah
we just went through that
what was decided is to use data attributes instead
 
@JacqueGoupil where they make sense
there is no "put them here" rule
 
We're already using BEM, I don't know how much more specific we can get
 
data attributes make more sense
 
because I was not adding classes or ID's to all the things.
 
@Loktar I suggested that
 
8:33 PM
well you don't want tests tied to those anyway man
what if the class name changes?
 
Just make up your own tag
 
then the tests break. Tests should be tied to stuff dealing with styling.
 
Leave my styling classes alone.
 
yeah, we use data-auto="someuniqueidentifier"
 
That's probably the best approach since it doesn't step on the toes of anything else.
 
8:34 PM
heh let them tie them to classes. And then change a few of them because something needs to be restyled and has a new meaning :p
then watch them yell about tests breaking
resuggest data attributes after that :p
@ShotgunNinja yeah it works out really well
 
A better way would be to conditionally include those parameters only when compiling the HTML for testing, but there's really nothing that lets you do that well.
 
If anyone comes across any funny SO questions/answers, tweet screenshots here: twitter.com/ShameOverflow
 
@ShotgunNinja well they want to test on prod
the automated tests that is
 
The google devs sometimes make sites using only custom attributes, not even classes! See dartpad's source code at https://dartpad.dartlang.org/
That surprised me a lot.
 
so unfortunately they have to be there :/
 
8:35 PM
that's reasonable, though at the same time it does waste bytes
 
use TABS then
 
yeah, it frustrated me having to even add those, but it was the best solution I could come up with
 
make up for it
 
they were telling us just to add ID's lol
even dupes, it's ok!
I was like fuck no.
 
ew
 
8:36 PM
haha I was pretty annoyed @Jhawins was there
had a meeting about it the next day on the way forward
 
@Loktar did you tell them that is akin to jerking off with sandpaper? might work, but no one is having a good time.
 
lol then they decided to tie a test to one of my classes
and I changed it and they freaked
@Jhawins had to deal with it since I had just left, and he had to tell them again... this is why we use the data tags
@rlemon LOL
 
user1596138
Haha that was ridiculous man!
 
user1596138
> Loktar changed a class so all the tests are broken we need this fixed asap what's going on
 
user1596138
> You were never allowed to be using the classes in the first place lol
 
8:39 PM
man I wish I would have been there. From what I heard he was pretty pissed lol
> Jason Broke all of our tests, what did he do?!!!!
 
user1596138
Haha yea they thought they could put it on you I was like why did we even have those meetings
 
yea everyone trying to pass the buck lol
> I would have tested this but @Jhawins has too many bugs on it and Jason broke all the tests.
^ our life.
 
user1596138
Haha and my bugs were done like... 3 days earlier
 
lol yea
 
user1596138
Course that was a unique situation with a.. uhh... less than adequate QA resource
 
8:42 PM
lol meanwhile one of our testers leaves... just straight up leaves for like 2 months
then rolls back in like nothing happened... and everyone was cool with it
 
I want his job
not really
 
user1596138
One person calls: "I'm working from home"
Next person calls: "I'm headed to Wisconsin"
*2 months later*: "So what am I working on?"
 
LOL god.. that still boggles my mind man
 
user1596138
@KendallFrey thanks, Process Explorer seems pretty useful.
 
I've never worked somewhere where that has happened lol
 
8:44 PM
@Jhawins Yeah, I use it to make my computer less slow when I'm gaming
 
@Loktar you gonna want one of my Tactical Shivs??
 
being that I can suspend individual threads
 
@rlemon haha yeah man those are actually pretty cool
 
those I can ship easier than booze (seriously)
 
was looking at them this weekend, the last one you posted looked so ergonomic
^ not being sarcastic
like it looks like a perfect fit
 
user1596138
8:45 PM
@KendallFrey What do you suspend
 
@Loktar I've got material for like 30 knives
by knife 30 I hope they are actually "good"
 
user1596138
@rlemon I want to see Tactical Shiv
 
@Jhawins lol. wuauserv
(Windows Update)
 
user1596138
lol good call.
 
user1596138
I have no improvement to gain... My bottleneck is only heat
 
8:47 PM
 
It occasionally delivers crippling lag when I'm playing PS2
 
right => tactical shiv
 
user1596138
Hmm what is the use
 
there isn't really one
maybe wood carving
 
user1596138
Haha
 
user1596138
8:48 PM
Well cool.
 
I'm just pissing around getting a feel for it
so far I've used it to open mail and blister packaging
works well for that
 
user1596138
@loktar there are parking spaces up by the building on days like today lmao
 
user1596138
Office is like totally empty because of a little ice
 
haha
yeah idk this morning it was slick for a good 30 mins or so
not worth it with the other drivers on the road
 
they look really weird; make normal looking knives
 
8:49 PM
but I went out to Lanskys with Cat and the roads are fine now
 
If 'property':value and property:value are equal, why choose one over the other?
 
user1596138
It was absolutely terrible when I left at like 8:50
 
yeah that's when Cat got home from taking Jacob to school
said it was pretty crappy
 
user1596138
I followed a semi down 370 cause his dually tracks were clearing the ice/slush crap
 
then I got my coffee and slid a bit
 
user1596138
8:50 PM
lol did you go play
 
user1596138
Or you slid by accident haha
 
he slid in the shower
decided it was too icy out to goto work.
 
@Loktar That makes no sense out of context lol
dancing in the mirror
sliding in the shower
 
hahah
 
user1596138
I'm gonna go WFH I'm just looking at how I'm gonna get React into this mess.
 
user1596138
8:54 PM
!!afk driving
 
we can talk about it tomorrow as well if you want @Jhawins
I can show you how I did it with our other product
I also have it figured out how to do mult sep apps as well
 
user1596138
Yeah I was hoping you'd have time maybe we can just sit down together after standups
 
user1596138
Mostly just stealing your codez from SG lol
 
yeah that's fine
 
user1596138
And figuring out the madness in this project
 
8:56 PM
this guy who basically took over my repo gave me all the ideas lol
I had like one build task
he took it to a whole 'nother level
 
@KendallFrey read about Q-carbon yet?
 
nope
 
harder than diamond, forms diamond like material at room temperature, ferromagnetic, etc
crazy ass carbon
 

« first day (1871 days earlier)      last day (3060 days later) »