« first day (2034 days earlier)      last day (3136 days later) » 

19:00
I mean...
He doesn't have the balls to follow through now.
I median
@KendallFrey the thing about that...
I moaned
19:01
|
I deviated
I want a 4-day week in general
benefits of a 3 day work week: you have 2 extra days to make French bread
cc @SterlingArcher
ideas....
19:06
> In Ghana there are calls to follow Gambia’s example, to allow time for attending funerals on a Friday.
they're changing the work week to allow for extra funerals?
how many people die in that place?
Maybe they only have them on Fridays
What if you die on a saturday?
@ssube As of 2013 it looks like around 25% per 1k deaths. indexmundi.com/facts/ghana/mortality-rate
So it looks like they're Ghana have lots of funerals.
Maybe they should stop dying so much
yarly
19:12
yo
Ignoring my jQuery usage, how would I combine these two:

	$('.hours').on('change', function(){
		if (this.value === '') { $('#calc-total td:nth-child(3)').text('-'); }
		else { $('#calc-total td:nth-child(3)').text(this.value); };
	});

	$('.hours2').on('change', function(){
		if (this.value === '') { $('#calc-total td:nth-child(4)').text('-'); }
		else { $('#calc-total td:nth-child(4)').text(this.value); };
	});

They are two columns side by side.
I can't ignore it
helperFunction('#calc-total td:nth-child(4)', '#calc-total td:nth-child(4)');
or whatever
function changeHours(num) {
  if (this.value === '') { $('#calc-total td:nth-child(' + num + ')').text('-'); }
  else { $('#calc-total td:nth-child(' + num + ')').text(this.value); };
}
If you're gonna write your if/else's like that, just omit the curly braces all together
19:15
also, yeah, write good code
@ssube Damnit, didn't think about making a function and passing the number in...so smart!
What's wrong with the curly braces? Isn't that good practice?
if (!this.value) return something;

somethingElse;
ui-router or ngRoute?
@Trasiva That's a Accrappy pun
@Waxi curlies are good practice, yes
but use line breaks too
19:16
@Waxi If you're shoving it all one one line, it doesn't matter. Be smart, but be clean as well
for cleanliness, I suggest always using curlies
you can get rid of the curlies entirely, but then you just look like a whore
@KendallFrey What are Uganda do about it?
I do to, unless you're returning something upon a condition
if (foo) return bar // is ok with me
@ndugger IMO that's the worst place of all to omit them
especially in JS, with return's weird interaction with ASI
I'm gonna disagree with you on this
It's the only appropriate time to omit the braces
19:18
@ndugger I don't do that, in js
I didn't realize js would understand it without the braces. I guess it just needs the ; then for else to work, interesting.
I do what nick does but feel dirty about it.
I'm not saying you should do it, I'm just saying that if you're going to omit braces, that's the only time I'd be ok with it
I do, in other languages such as C though.
@Trasiva syria-sly? I have like a brazillian reasons to belize country puns israeli lame, but iran with them anyways
19:19
@Waxi You don't even need an else if the function is that simple; just return in the if
@rlemon kenya teach me puns?
The leading contenders for locations so far are Heckmondwike and Texas.
Omg haha
FINALLY, with some help from the Lemon, I have my first ES6 based project done.
@Trasiva Grats!
19:21
And it has real world application.
Ignore the shitty popup design though.
I'm am not a designer. I hire people for that.
@littlepootis I was trying to make a switzerland pun, but couldn't think of anything funny about switzerland. but the flag is a big plus
Congrats
Share
guys, this line of code generates a random color
"#"+((1<<24)*Math.random()|0).toString(16)
Oh fuck, hang on.
19:23
what is the bitshifting doing
with the |0
@Trasiva BE CONSISTENT

function mouseUp()
{
  window.removeEventListener('mousemove', popupMove, true);
}

function mouseDown(e){
  ...
}
|0 floors
UI router or ngRoute?
`hsl(${Math.floor(Math.random()*360))},50%,100%)`
this also produces a random colour
and isn't so crazy about it
Oh god my stomach hurts
19:24
just wanted to understand the bitshifting more than anything
why 1<<24
@WilliamPaul it's a ceiling
@WilliamPaul Golf purposes probably
math.random produces a random float between 0 and 1
cleverness with bitwise operators is a disease... Just write readable code, damn people.
19:25
(1<<24) is shorter than actually writing out the number
@ndugger It is consistant, because I don't need e for mouseUp.
THIS IS WHY I HAVE TRUST ISSUES
you're god damn right I did
@Trasiva I'm talking about your coding standards--bracket placement.
@Trasiva I think he's talking about the braces :p
19:25
you see the picture you sent me!?
lemon done seent yer dingus
Yeah I'm ugly af without a beard
@ndugger Pretty sure I had it right before I hit 'tidy'
@WilliamPaul you want a 24-bit number and 1<<24 can be more clear than 16,777,216
LOOKAT YOUR MOUTH JORDAN
19:27
@SterlingArcher Did you shave your beard off?
you can't send me a pic making the O face and not expect me to GIMP it
@Trasiva His hockey team got kicked out of the playoffs
Don't mock my O face
19:28
Oh wow, Pornhub has a bug bounty program
@KendallFrey I knew the caps lost last night.
someone said pornhub ?
@BenFortune well guess who's gonna be doing QA tonight
19:28
@KendallFrey "QA"
God that's a risky link to click
@ndugger I just confirmed, holy christ did jsfiddle's little tidy button nuke my js.
is that all << notates ??
@SterlingArcher It's only Wednesday, man up
@Trasiva Just write clean code in the first place
19:29
so 1 << 3 would be 8
@ndugger I did on the JS side, the html was messy.
@WilliamPaul yep
that's how bit shifting works
and 1 << 24 is a cleaner constant than 16,... when you want "the biggest 24-bit number"
yeah sure
okay cool
ty
gamedev? programmers? idk which site if any that would work on
seems like a "try it and see" Q
19:40
@ssube except that's not a 24-bit number
@KendallFrey you're not a 24-bit number
also I realized that slightly too late
no shit
it's 2^24, which is the largest 24-bit number + 1
window.onresize = populateTables; should call the function populateTables(), right?
yes
19:42
Definitely -not- doing that...
lol It's amazing how the simplest bit of computer knowledge makes you look like a genius amongst peers.
@Trasiva debounce it if you are worried
2 people came in here confused as to why their links don't work, so I gave them a 2 minute crash course on relative vs absolute path and now I look like a god among men.
If only they knew I feel so insecure compared to real geeks.
I'd debounce it either way
mouse events tend to get ugly
19:48
Debouncing fixed it.
I really want to tackle a webcam chat room. I haven't seen it done well, other than Tinychat, which uses flash and makes me want to cry.
@SterlingArcher Old but gold.
Ah tinychat... those were the days
I'm too afraid to make a chat service of any kind, because I don't want terrorists to use it.
lol @SterlingArcher is going to kill me
There is a market for chat rooms w/ cams, but nobody is doing it, not right at least. Whoever does it will make bank.
19:50
oh my god
dude what the fuck LOL
@Waxi Many have been closed down because of child porn... It's not a safe business to be in.
Too many pitfalls
No thanks
you know it was a good snapchat when the reply is
57 secs ago, by Sterling Archer
dude what the fuck LOL
@ndugger I haven't heard of that problem, but with good moderation it should be manageable, no?
People can record screens, so now you're accidentally a distributor of child porn... The legal issues are so massive, it's not worth the potential money you could make
19:53
@Waxi Ustream used to do good, IBM owns them now
appear.in is okay
@BenFortune Haven't heard of them, will look into it.
> When retarded people cum, do they look normal for a second?
standup comedy gold
... jesus
@ndugger Implying under 18 is allowed?
19:55
@Waxi Implying people adhere to your ToS
YouNow keeps popping up every now and again, it's such a fucking bait site.
@SterlingArcher What's my cousin Jesús have to do with anything?
Some creepy fuckos in this world.
That comes back to good moderation though. I know when I was using TinyChat users were throwing money at them to have 'premium membership' and it was like $20/mo for better streaming quality and that's it lol. The money is there if you can protect yourself.
19:57
I'm telling you that the risk of legal issues is not worth that potential money. If you feel otherwise, good luck--I'm just saying that I have absolutely no interest in it.
user1596138
@SterlingArcher Yes
@Trasiva You're related to a Mexican? You racist.
@KendallFrey I'm not racist, I'm an equal opportunity hater.
You're not related to a Mexican? You racist.
@ndugger High risk, high reward...not for everyone.
19:59
@Waxi High risk, medium reward
believing intensifies
believe harder
@SterlingArcher lol I told myself this thinking it to be true, but it's not...now I'm depressed.
HNGGGGGG
2

« first day (2034 days earlier)      last day (3136 days later) »