« first day (2139 days earlier)      last day (2810 days later) » 

user406009
7:00 PM
I guess the issue with hiring is that there is no good alternative.
 
user406009
I mean, I guess you could start asking people to do those programming quiz thingies.
 
user406009
But those really piss people off.
 
meh. having people write code can be good
 
I'd rather a 20 minute chat over coffee to see if I should even bother.
For us a lot of the hiring process is also fit and feel. With such a small shop it's hard to ignore those you dislike
 
@Lalaland we only do that
why wouldn't you ask someone to code during an interview?
That's what you're hiring them to do
 
user406009
7:02 PM
@Loktar No. I mean before an interview.
 
For the love of God just don't ask them to write it out.
 
user406009
Those online quiz/project things.
 
@Lalaland ah yeah I don't like doing that really
pre interview coding
 
(@Loktar I know you don't)
 
if I'm on the fence with someone I'll have a pre interview talk
like if their experience looks iffy or something
otherwise it's just not worth it wasting the time
 
7:03 PM
i was never any good at giving interviews. I don't miss it.
 
@Jhawins and I have done god knows how many interviews at infogroup, close to 30 or 40 idk
and I did them in the gov for a few years
lol wasting time gets annoying after a while
 
Then you get clowns like me.
 
user406009
@Loktar Well, at least the good thing about interviews is that they waste everyone's time almost equally.
 
haha true @Lalaland
 
user406009
Unlike those quiz things or "weekend projects"
 
7:05 PM
yeah screw weekend projects
that seems incredibly unfair and too much to ask of someone
if a potential employer gives me a weekend project, it lets me know they don't value my time at all
 
what if it was for a dream job?
 
@Loktar made me do terrible things on our interview, and then he gave it to the guy who actually put out.
 
@Luggage if a dream job is making me work for free on the weekend, it's not a dream job
 
as in.. sex?
 
plus my only dream job is not working for someone anyway :p
 
7:06 PM
@Luggage What else would put out mean?
 
an eye?
 
what you do to the cat when it's at the door.
 
@Loktar ...you can't see it, but I'm knife handing the monitor really fucking hard right now.
 
how would you guys improve this?-
			if (x < 0.01) {
					fooBar[2].className = 'on';
					fooBar[0].className += ' active';
			} else if (x > 0.99) {
					fooBar[2].className += ' active';
					fooBar[0].className = 'off';
			}
 
indent less. :)
j/k
 
7:09 PM
I feel there is too much repetition
@Luggage its the darn chat :-(
 
uh.. what
SO pls
 
user406009
@Asperger I would say it's fine as it is. Clarity is sometimes worth a little bit of repetition.
 
user406009
The main other way to improve it would be something like:
 
@Lalaland ok good to know. I always thought you got to compress things really crazy
 
Well, I mean your numbers leave .02 - .98 without any values.
 
7:10 PM
I could put two in a function like:
 
@Asperger You could use a switch, but not sure if that would improve the look.
 
@Luggage the first resume you linked was actually a rip-off of @Loktar's resume
 
do you really use 2 tabs for indentation?
 
yeah and that's SUPER old
like 2010 ish
 
user406009
gist: fb547ea1f6160a5d31d91702c5045f93, 2016-08-24 19:11:38Z
var onIndex;
var activeIndex; // Rename these to match what they actually do
if (x < 0.01) {
  onIndex = 2;
  activeIndex = 0;
} else if (x > 0.99) {
	onIndex = 0;
  activeIndex = 2;
}
fooBar[onIndex].className = 'on';
fooBar[activeIndex].className += ' active';
 
7:11 PM
yea, i found the recent one later
 
@Loktar well, it did say "2012" in the url
so you still had it by then
 
function fn(active, inactive) {
	x[active].className = ' active';
	x[inactive].className = x[inactive].className.split(' ')[0];
}
 
@Lalaland meh. no better.
 
that said, I hope I don't have to update my résumé... ever
 
that would be the only other thing I have in mind
 
user406009
7:12 PM
@Luggage It would mainly only help if you have lots of elements.
 
but the function wouldnt really make things any better
 
user406009
I wouldn't do it for two cases.
 
I only needed it for the first job I landed
 
ya true
@Lalaland right, I really was overthinking it
 
(for the 2nd one, they asked me to update it for... reasons)
(I think their HR practices or we)
 
7:14 PM
resumes are so lame/archaic
I'd rather a 3 minute video
 
ew
 
gross
I don't want to see unwashed candidates in their boxers
 
weed out all those weird people
 
@Loktar you mean developers?
2
 
lol
 
7:15 PM
@ssube the good thing is you don't have to see the boxers on cam
 
whoa
 
lol damn
I'd rather an interactive VR experience over a resume
there we go, updated my reqs
 
all I want is their reddit username
 
> Why am I sitting in a chair tied up with blood all around
 
npm install luggage-resume && npm install && npm start
 
7:17 PM
> I want out of this!
 
user406009
@rlemon Well, there is a good reason why I deleted my reddit account ...
 
@Lalaland hah same
fuck reddit anyway
but yeah got rid of my account a year ago
 
I have a reddit account, no facebook.
 
user406009
You can't get rid of your account here though.
 
user406009
Your chat discussions will live here forever.
 
7:18 PM
my social media trio is reddit / twitter / g+
but I only use g+ for hangouts
 
NMS tanked hard.
 
@Trasiva I wonder if that is any worse than most games
 
user406009
Procedural generation often isn't very good.
 
> The division only lost 59% of its player base after a month.
Far Cry Primal dropped 76%.
Aliens: Colonial Marines lost 85% in 1 month.
 
@Loktar 90% drop off in under a week? I imagine worse than a lot of online games.
 
user406009
7:19 PM
I think FTL was the only game I played which did it well.
 
no surprise. When you realize that the station has the same thigns for sale as your first station and everything else about the game you also experienced on day 1.
procedural generation can be quite good.
 
@rlemon most of those games were really, really bad, too
 
@Trasiva two weeks and realistically if you interpret the data correctly it is like 80%
 
@Trasiva That's an interesting definition of 90%
 
user406009
Far cry primal did that poorly?
 
7:20 PM
it looks like a pretty game tho
if it goes on sale for cheap I'm nabbing it
 
user406009
@rlemon You could also try some of those really old games.
 
like?
 
user406009
I am playing Deus Ex right now and it is certainly fun.
 
!!> 15000/137715*100
 
@Trasiva 10.892059688487093
 
user406009
7:21 PM
The original Deus Ex
 
try fortresscraft if you liked factorio and like survival games.
 
@Trasiva peak to peak, not peak to trough
 
@Lalaland you could debate whether 4 is good, but blood dragon and primal were both jokes
 
system shock 2, if ou are going back that far.
 
they didn't actually put any time into either of them
 
7:21 PM
@Trasiva 45000, not 15000
 
Oh, the timeline's two weeks, my bad.
 
@Luggage yeah that was a great game
 
user406009
Eh, most of the Far Cry games aren't that exciting anyways.
 
user406009
They are just dumb fun.
 
user406009
There is always some joy in running around shooting things.
 
7:22 PM
2 and 3 were pretty good, 3 was the only one with a good plot
 
only one I loved was the first one
 
If i wanted that i'd boot up doom
 
Primal was the 2nd game on Steam I ever refunded
 
Measure from the first complete peak to 7 days later, you get ~65%, not 90%
 
i only bought one of the farcry's and it had such noticeable input lag that I couldn't stand to play it
 
7:24 PM
@Luggage Did you make sure it wasn't your graphics settings?
 
having never played a previous farcry.. farcry 4 is okay..
 
no, it was xbox
 
@Luggage 2?
 
oh
damn
 
yea, i think it was 2.
 
7:25 PM
fuck consoles amirite
 
@rlemon 4 wasn't bad, but the story delivery just wasn't as good as 3
3 was really well written and voice acted
 
couldn't tell ya
 
definitely worth a play if you get it on sale
 
while i prefer PC, consoles should be fine there.. most games were
 
Did you ever hear of the experiment where the test subjects were purposely subjected to input lag, and they got so used to it that when it was removed, they thought the machine was acting before they did?
 
7:26 PM
2 had weird look acceleration to make it more "real" that just felt like lag
 
yea, and I get that. I have noticed myself compensating, but.. this was just too noticible and I got tired of it before compensating
 
what is the point of React.createClass? Why not use class MyComponent extends Component?
 
@corvid go ask the docs
 
@corvid fro es5 users
 
they have an entire page on exactly that
 
7:27 PM
@KendallFrey No, but that sounds pretty hilarious.
 
user406009
@corvid Also, React.createClass supports mixins while the original did not.
 
I don't remember what it was called
 
user406009
Mixins have been sorta "deprecated" or whatnot, but they can still be useful.
 
super easy to replicate though
 
are mixins just the work around for "multiple inheritance" like behavior?
 
7:29 PM
just make a program that will change the color of the screen when a button is pressed
 
@Lalaland not just deprecated: facebook.github.io/react/blog/2016/07/13/…
 
and play with delays
 
> Mixins Considered Harmful
 
superduperdeprecated
 
user406009
@corvid Somewhat. They also deal nicely with lifetime methods.
 
7:31 PM
lifecycle methods are where mixins get into trouble, actually
 
guys, I built a plugin using jQuery that uses the Js-Cookies library. How can I include js-cookies inside the plugin itself?
 
@TahmidKhanNafee Welcome to the JavaScript chat! Please review the room 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.
 
@Lalaland there's a section in that article talking about how they were one of the worst problems
 
@TahmidKhanNafee often, you don't. You declare it as a dependency in whatever package system you are using (npm, hopefully)
 
Alright.
 
7:33 PM
though, offering a standalone build is possible. for that, look at one of the many 'bundle' tools
 
make your plugin not depend on it
 
However, my target audience is not exactly techies.
 
I gathered when you said 'jquery plugin' :)
webpack it into one file.
 
Whats the right way to do that though?
 
you can ask webpack to output a "UMD" so it'll work for everyone
 
7:34 PM
I mean not make it depend on jQuery rand cookies.
adn*
and**
sounds interesting. I will look into that.
 
that would mean, writing the plugin without using those dependencies :p
 
Sounds impossible.
 
definately don't package jquery, only "js-cookies", if you must, and if the license allows
 
Should I ask this as a question on stack overflow? Or would it get downvoted into oblivion.
 
any question can get downvoted into Oblivionâ„¢ but..
I don't think it's a bad question if not already asked.
likely already asked.
 
7:38 PM
@TahmidKhanNafee honestly... github.com/js-cookie/js-cookie/blob/master/src/js.cookie.js looking at what you're talking about.. just minify it and include it in your own source.. or don't use it
 
Don't you love when you didn't spend the time learning something new, and it gets deprecated?
 
it is very very simple to re-create what you need
it is a tiny wrapper
 
Im actually really inexperienced with js itself, so Im not sure if I will be able to rewrite it.
 
Does anyone know what the bound getByUserSince means when I log this object
{ [Function: bound getByUserSince]
  this:
   { getToUserSince: { [Function: bound getToUserSince] this: [Object], fn: [Function: getToUserSince] },
     getFromUserSince: { [Function: bound getFromUserSince] this: [Object], fn: [Function: getFromUserSince] } },
  fn: [Function: getByUserSince] }
 
@ApathyBear - it is nice when procrastination pays off, but don't forget it is the theif of time
 
7:40 PM
@RyBolt It also is a swapper of letters.
 
On another topic, I have an interview test for a job position as a front end engineer.
I will be tested on Angular Material.
Its on Sunday, and I have no prior experience with material.
How screwed am I?
 
@DanielKobe that the function getByUserSince is bound
 
depends on how well you can figure things out on your own.
 
@TahmidKhanNafee well considering "Im actually really inexperienced with js itself" and you are applying for a job which primarily uses js...
maybe get some experience.
 
@rlemon so this and fn are just normal properties of the function getByUserSince?
 
7:43 PM
@DanielKobe no those methods are attached to the bound thisArg
which could be anything
 
I really prefer learning on the job :p
 
they don't pay you to learn they pay you to do
 
That's not how you get a job.
 
(well kinda pay you to learn, but that is your responsibility)
 
I mean, unless you want to work on a dev sweat shop. Then don't bother taking the time to learn.
 
7:44 PM
I know man, it was a joke. Thats why they are testing me afterall.
 
@rlemon does that mean to access fn Id have to say getByUserSince.fn
 
no
 
How do I access the bound properties?
 
14
Q: What object javascript function is bound to (what is its "this")?

espI know that inside the function it is this. var func = function { return this.f === arguments.callee; // => true, if bound to some object // => false, if is bound to null, because this.f === undefined } var f = func; // not bound to anything; var obj = {}; obj1.f = func; // bound ...

read please
 
thx
 
7:47 PM
don't thank me, that should hopefully give you a better understanding by what they mean "bound function"
 
@rlemon to be fair, the terminology used could have been a lot better.
But then again, it's not like I'd do a better job.
 
What's considered the proper way to loop over a querySelectorAll result?
would most good developers use an indexed for loop? Would they do forEach?
for..in with a condition to prevent the properties from being read?
 
which one makes more sense?
 
@Vap0r for... of although I'm not sure if browsers support this yet.
 
@Vap0r never for/in
regular for or forEach are mostly equal, so whichever you prefer
 
7:52 PM
Most developers would likely convert the result to an Array with Array.from - and then use it like an array, but if you only support modern environments or am willing to polyfill - I'd use for... of as it's the standard way.
@ssube you can't forEach a NodeList
 
@BenjaminGruenbaum you're not trying hard enough
 
Make NodeList great again
 
Alright sounds good.
Thanks guys.
 
user406009
@BenjaminGruenbaum I just wish they used the "Symbol" feature for this.
 
user406009
Seems like it would have been a perfect usecase.
 
7:55 PM
@Lalaland why? It's a nonexistent problem.
 
Just found out about the for..of.
I really like it lol
 
then is the symbol, if it has a then it's a promise. If you want a symbol I'd do a Symbol.getAwaiter and support awaiting other stuff.
@Vap0r just note - it requires a polyfill.
 
*for older crap
 
@BenjaminGruenbaum My environment only uses new IE Edge and Chrome
so probably won't need polyfill according to MDN compatibility list
 
user406009
@BenjaminGruenbaum I guess it's not really a practical issue (and I doubt it would show up that often in practice), but it would be nice if everything didn't break if you accidentally named a method "then".
 
7:57 PM
@Lalaland same can be said about a toString or a valueOf, it's a structural interface.
@Vap0r you need to polyfill Symbol.iterator on NodeList - not for... of.
It works in Chrome but not Edge atm, IIRC
 
ugh... when sites only resolve on www. subdomain :(
WHYYYYYYYYYYY
 
Well, I'm actually pro www if you have several subdomains
But, not having a redirect is idiotic - I agree
 

« first day (2139 days earlier)      last day (2810 days later) »