« first day (1887 days earlier)      last day (3065 days later) » 

6:00 PM
Didn't somebody post a node debugger the other day? I have to find a problem in somebody else's code, but they don't have good logs. :(
(it's a library, so I can't just add logs either)
 
iron-node
 
This is crude, but it shows my problem: jsfiddle.net/churbq9a Looping twice doesn't seem efficient.
 
@AwalGarg I'll check it out
 
@ton.yeung I've been knocked out a handful of times. It's always varied from right away, to one case where it was almost ten minutes after the fact (I was hit by a car).
 
@SterlingArcher Ibet he lost a few teeth
 
6:02 PM
@SterlingArcher Rivers of blood
 
@Waxi yea, a .reduce() is what you want. Or even just a plain loop. You loop over the list and for each item say "did I start a variable for thi group yet? if not start one, otherwise, add the value to it".
 
@AwalGarg +1 for iron-node; If you're not using it for debugging node.js, you're not debugging.
 
@Waxi So what you want to do, very roughly, is: 1) group by group (reduce into an object using group as the key), then 2) map each group to find the length and total, then 3) map each group to take the average
 
and store the results in an object. Object.create(null) or just {};.
what's your environment? es5? es6?
 
I just don't write bugs to begin with
 
6:03 PM
@ton.yeung That's because there's no real baseline for it. It varies for each person, and every kind of hit.
 
@AwalGarg my last gig, my team lead said that entirely seriously
 
@Codeman hire me, then
 
@Luggage I will look into the reduce method. I've never head of it; however, your recommendation of looping through and checking for variable creation might work. My environment just a browser lol.
@ssube Yall recently taught me about the map thing, which is awesome, but group by is new to me. I'll have to look into that.
 
@AwalGarg sure, we're hiring 5 people. You wanna move to Seattle or North Carolina?
 
@Waxi ruby's enumerable module would blow your mind
 
6:06 PM
My mid has been blown
 
reduce is only just a fancy foreach. it's just a loop with an additional return value passed along.
 
@Waxi try something like this
 
at least in the context of JS
 
@ton.yeung .NET, TypeScript, SQL
 
var allData = [
	{ group: '1', duration: '60' },
  { group: '1', duration: '60' },
  { group: '2', duration: '60' },
  { group: '3', duration: '60' },
]

const groups = allData.reduce((p, c) => {
  let arr = p[c.group] || [];
  arr.push(parseInt(c.duration, 10));
  p[c.group] = arr;
  return p;
}, {});

const results = Object.keys(groups).map(key => {
  const vals = groups[key];
  const sum = vals.reduce((p, c) => p + c, 0);
  return {
    count: vals.length,
    sum,
    avg: sum / vals.length
 
6:06 PM
my daily is almost entirely C# at the moment
 
that's the readable long-form, so you can clean it up a ton
 
@Cereal I''m not ready for Ruby lol
 
@Codeman oh, hmm, maybe yes. I don't know much C# or TS though. I know SQL, and I know JS pretty well, can learn TS. Does that work?
 
@ssube Thanks for confusing the fuck out of me, but let me see if I can make sense of this. Thank you.
 
Hmm, I installed Steam on a second computer and now I get random notifications saying that the other computer is or isn't available for streaming
kinda annoying
 
What in the fuck
 
@Waxi simple grouping into arrays: jsfiddle.net/okf2oxr1
 
@Zirak this is majestic af
 
I think you'll realize that it's just looping.
 
@Waxi so, you take the data. You group is by the group field, with each key having an array of values (the durations). console.log(groups) will show you the intermediate step. Then you walk over each key in that object, find the length, sum, and average.
 
6:10 PM
So I'm gone for a few days and tons of drama?
 
Tonnes.
 
@Zirak metric fucktons
yesterday, briefly
 
@Zirak lol I know you're getting off to this right now
 
@Luggage @ssube Thank you guys. Let me absorb this and understand.
 
6:12 PM
no, no, don't .absorb().
 
@SterlingArcher lolololololol
 
@SterlingArcher could've been super awkward for the mom
 
or really flattering
 
@Zirak I have to ask you something I've wanted to ask you since I first met you
.. Why ._.
 
6:13 PM
> Are you a goat?
 
@SterlingArcher Yes, I am your father
 
YOU SAID I WAS A FIGMENT
 
@SterlingArcher You haven't experienced the joy that is ambient Zirak noises over hangouts.
 
@SterlingArcher I'm also your mom, and your generic god figure
@KendallFrey Good times
 
@SterlingArcher You misunderstood. He said "fig mint"
 
6:14 PM
@KendallFrey that was nice, specially with codepenis' presence
 
@AwalGarg yeah, if your fundamentals are good, that's fine. C# is an easy language to learn.
 
I've watched Zerk play hit lute for about 30 minutes tho
 
I've listened to Zirak talking about getting a seat belt autographed
Do you remember that @Zirak?
 
@AwalGarg you interested? I can forward your resume to my manager
 
@SterlingArcher Mandolin!
@KendallFrey wat?
 
6:16 PM
0
Q: Weird HTML behaviour

Hassan AlthafI have this page: And, when I attempt to register with no fields, it correctly displays errors this way: However, while I was testing, I inserted one random character in each field, and pressed register and this is the screen I received (note that the error is correct, but that messes up my...

 
That does sound likely, I just don't remember that specific occasion
 
@Zirak Guess not. I was dying of laughter.
 
@Luggage I understand what you're doing here. Looping through, extracting the values, and pushing them into their own array, where I could later use for my calculations. Not bad not bad.
 
@AwalGarg iron-node is loading up, but breakpoints on cluster threads aren't doing anything.
 
@ssube Your way introduces a lot of new concepts to me, might take me a little longer to make this work for me, but I wanna learn this!
 
6:17 PM
@Zirak ukulele whatever!
 
@KendallFrey erm...errr...context?
 
Someone else said something about getting a CD autographed at a concert or something, and you misheard "seat belt"
 
@Codeman sure, that'd be nice. CV at careers.stackoverflow.com/awalGarg, Email: awal@js.org
 
Or maybe the other way around, idk
 
Wait... you got your seat belt autographed?
 
6:18 PM
@SterlingArcher You won't hear her again if you're disrespectful towards her.
 
@Waxi and you can jsut skip a step and do the calculation right there.
 
You said something to the effect of "I ran out to the car and ripped off the seat belt and took it to him to sign."
 
^ lol wat
 
@ssube I haven't really used it on clusters, sorry :/
 
6:18 PM
@KendallFrey That's not a very good seat belt.
 
@Codeman Salary? Hourly? Relocation?
 
He didn't actually do it ofc
 
I was having an issue for the longest time... turns out I was doing infinite recursion/redirect on a 500 error... derp
 
Oh, and there's the classic elbow licking story
 
6:19 PM
@AwalGarg damn. I'm trying to debug something in bull for github.com/ssube/eveningdriver
 
i smrt
 
@Trasiva it all depends, I'm salaried and I got relocation when I originally moved to Seattle, but didn't require it to go to MSFT.
 
http://www.commitstrip.com/en/2015/12/16/when-youve-been-keeping-a-project-running-by-the-skin-of-your-teeth/
CommitStrip
When you’ve been keeping a project running by the skin of your teeth
CommitStrip
1450289680
 
@Codeman delete it, I am RO so I can see it anyways
 
6:19 PM
@AwalGarg anyone can see, can't they?
 
not if it's deletedd
 
Only room owners
 
just send whatever you want the manager to see, I will forward directly to them
 
jontron pls
 
oh, that's good to know
 
6:20 PM
@Codeman Well, if I'm moving from Iowa, I'd definitely probably most likely need relocation, haha. I'm so broke it's depressing. :(
 
@Codeman anything I want your manager to see?
 
@AwalGarg > As part of design ironNode does not support remote debugging, debugging of multiple processes (e.g. cluster).
 
@Trasiva you'd have to discuss that but it's not out of the question, I'm sure. I got a pretty hefty signing bonus
 
@ssube heh
 
6:21 PM
@Luggage lol, that's MY email address. not my manager's. I'm not that dumb :P
 
@KendallFrey I still do it sometimes
 
@AwalGarg full disclosure, I have no idea what the implications are if you aren't currently authorized to work in the US. But you can work that out yourself, I'm sure
 
@Codeman How dumb are you?
 
@Trasiva dumb enough to get a FTE job at MSFT :P (so... hopefully not that dumb?)
 
@Codeman Good point.
 
6:22 PM
for what? exposing an email?
 
meh. you can find that stuff if you google my username anyways. I don't care
 
@Zirak You need to start a YouTube channel
 
my email is all ver the place. i just depend on google to filter a butt-load of spam.
 
that shit will go viral
 
if you're gonna be paranoid, you need to be seriously paranoid. Data is viral
 
6:23 PM
You're viral.
 
As soon as I figure out this last bit, I can start testing my timeclock before releasing it to the company...fack yeah! And it wouldn't have been possible without the generous help of you all. Thanks.
 
@Codeman yeah, that's not an issue. Sent :)
 
I'll send an invoice.
 
@Luggage Haha
 
@AwalGarg cool :) I'll forward it along
 
6:26 PM
Thanks!
 
I charge per line of code, including whitespace.
 
@AwalGarg when do you graduate? any internships? freelance work?
 
comments extra.
 
@Codeman I graduate 2 years from now, but I've been meaning to drop out in January if I get a good job. No internships, but yeah, freelanced for pocket money in the past few months.
 
@Luggage // pays more
if (cond) {
    stmt;
}
// than this
if (cond) stmt;
 
6:29 PM
@AwalGarg You still freelancing?
 
Not anymore. I am looking for a real job now :P
 
Then I guess I'll just put an ad on Craig's List for a hot girl that can code and want some extra money.
 
That started out because someone said he charges per line.
 
@Waxi And I'll put an ad on craiglist for world peace.
 
haha, locale.za
 
i love these chultu chars there
 
The only useful part of unicode.
 
ohh, and emoticons
 
*emoji
You forgot about Klingon characters
 
6:34 PM
@Codeman You got a few minutes?
 
@SterlingArcher You like this thingy things youtube.com/watch?v=UioNzGntBag
 
@Trasiva sort of, just open a private room and I'll respond async
@AwalGarg to be frank - it's very unlikely for you to get a job here if you haven't at least graduated school. I would encourage you to apply for internships, for sure, but I don't have direct access to that :/
 
wait, you surely mean graduated "college"?
(also, np ofcourse)
 
what if you have 13 years experience? still need school?
and I wrote Linux. That Linus guy is lying.
 
@Codeman Where is here?
 
6:38 PM
Micro$oft
 
wait, Microsoft?
 
@AwalGarg well.. you generally either need to graduate school or have some experience, especially for a big move like that
 
uhh
 
That dollar sign is now official.
 
we have some intermediate positions open, but not any junior ones that I know of
 
6:38 PM
the dollar sign is to avoid showing up on google search results for microsoft
 
@Codeman Oh, I have graduated from school already
 
@AwalGarg I mean graduated from university
 
Ok, then no.
 
I completed a prison GED program.
 
@Luggage you're hired
 
6:39 PM
How many years of experience does one need before the lack of degree no longer matters?
 
I graduated high school... barely. I told my teachers that I was depressed, so they just let me pass.
 
depends on the company. some will always need a degree (like goverment contractors)
 
@ndugger You're always depressed.
 
others just care about you doing the job and experience is even better than a degree
 
I'd expect Microsoft and ilk to always require a degree
 
6:40 PM
@Trasiva no, I'm depressing--there's a difference
 
@Waxi usually university or equivalent years of experience (typically 5)
 
I expect that a proven experienced developer can get hired no matter what.
 
but yeah... I don't think we hire people with no degree AND no experience...
 
@AwalGarg Nah, if you have some really awesome projects/code to show, I'm sure they'd let the education slide
 
@AwalGarg Not true, a lot of the silicon valley folks have started to realize that a lot of the good developers have experience and no degree.
 
6:41 PM
yeah, if you've got professional experience, that's great
 
@Codeman I can vouch for him
 
@Zirak offer withdrawn. with prejudice.
:P
 
like @towc could talk his way into a job, especially if it involved making animations all day.
 
Say Zirak says he's ok
 
I'm sure you vouch for him, but I don't have hire power. I'm just saying what my manager would say. "why would we hire an unproven engineer?"
 
6:42 PM
what is this about?
 
just talking about getting programmer jobs without a degree.
 
@AwalGarg finish school or do some serious freelance work, then let's talk ;)
 
@Codeman Tell your manager Zirak says he's ok
 
greg for employee 2016
 
pls remove your hat man
 
6:43 PM
@Codeman -_- finish "college". I have done freelance work as I said, but that's ok :)
 
@Trasiva you had a question?
 
I do not see these hats.
 
well, being a top developer on codepen is not an official degree, but it is of the same value for some people I guess. Moreover the employer can see in more detail what the employee has to offer
 
omg now a beard
 
@Codeman I've pinged you twice in the room I made.
 
6:43 PM
@AwalGarg you should include your freelance work on your resume then ;) right now it looks like you're just a college student with no experience
 
it would be funny to se a hat on @Zirak
 
@Trasiva weird, I didn't get an invite. invite me again?
 
@Codeman Isn't it visible already? o.O
sec, checking
 
@AwalGarg A degree is worth some to employers
 
@Neoares I don't have any hats :( Wore beards or cylinder hats in previous years
 
6:44 PM
I don't even have an education section on my resume lol
 
yeah, @Zirak check out my beard
 
I didn't include one in a resume I just made. No reason to list my high school.
though.. to be fair, i didn't even nee d aresume. they came to me.
 
@Codeman A degree without experience is worthless.
 
the beard works better upside-down, as hair
 
ah, duh, right. It isn't there
 
6:45 PM
@MadaraUchiha still better than no degree, no experience. But I agree it's no indicator of long term ability
 
I have a degree in jquery development
 
I'm not talking about what people in suits see through their weirdly colored business glasses.
@Luggage Define "experience"
 
@AwalGarg Impressive
 
@ndugger I'd put money on some 'technical programs' having a jQuery class.
 
If the person in question has a rich Stack Overflow and/or GitHub account, that counts as experience in my book
 
6:46 PM
paid development experience where you made real things people use?
yes, that can work.
 
@Zirak IKR. It stomps your little mustache to ground in 2 seconds :P
 
@MadaraUchiha I don't disagree. However, I'm just being frank and saying you need to really make your experience POP if you don't have a degree
 
@AwalGarg Do you remember what I tell you every time we bring up the subject in private?
 
right.. my code on github is shameful. all my real work is paid and closed source.
 
@Codeman That's basically what I did.
 
6:47 PM
 
It's how I got the job I'm currently in.
 
@AwalGarg no, I do not see any freelance work in your resume. Only open source stuff you've committed to. Which is great, but not as good as professional work
 
It's how I got companies fighting over me (I know I'm not being super modest here, but it's true)
 
@MadaraUchiha Alright, lets do this. Everytime you see a new question which you honestly think is worthy answering on Stack Overflow main site, ping me (related to tech I work with, ofcourse).
 
I don't have a degree.
 
6:48 PM
guys :| Stripe is weird. Is any information returned from a request to the stripe API safe to publish? People can't do anything with it without the Stripe secret key, right?
 
@Luggage lol, my github is full of random shit I wrote in college. It's terrible
 
but I have a couple of repos and 76k rep on Stack Overflow
 
@MadaraUchiha i believe you.
 
thankfully I have some cool stuff like helping out @SomeKittens with maintaining ng-ui
 
@Codeman yeah, I think I mistakenly removed it in my recent refactoring of things. I am adding it back, sec.
 
6:48 PM
@MadaraUchiha You mean mod? By giving lots of head?
 
@Zirak I mean reading you a bedtime jQuery doc story.
And ignoring the bed creaking while you "listen"
 
That's just asking for a "yo mama" joke
 
:( my framework loses the session id when it renders the error/500 page. Strange...
 
@MadaraUchiha It's not exactly abnormal to have multiple companies bidding for you
 
@Meredith I think it is when you're fresh out of the army (or, highschool, basically), and have no degree.
When you're a seasoned dev with 2-3 companies behind you, maybe a degree or even two, it's not surprising.
 
6:51 PM
I graduated in 2012 and I had 5 offers open for me to choose from when I was interviewing recently.
I live in Seattle, so that helps :)
 
hi
 
@Pedro 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.
 
@Pedro howdy.
 
@ssube For some reason, Oracle wasn't using an index in certain queries, so adding an extra IS NOT NULL forced Oracle to use an index, so my Promises settle much quicker now.
so it wasn't a Promises issue at all, as far as I can tell.
 
I've a question how to make a system of exchange of events of diferent users in fullcalendar
there is so many variables that I don't know how to keep it simple
 
6:58 PM
Hmm, while I am adding it, I'd like to add a recent one as well. Someone at a famous university hired me to design a website for them, which sounds simple but it involved one little detail which made me do something that you don't get to do in everyday websites. How do I put this as an "experience"? Hired by $famousUniversity doesn't sound valid.
@MadaraUchiha ^
 

« first day (1887 days earlier)      last day (3065 days later) »