« first day (971 days earlier)      last day (3977 days later) » 

9:00 PM
perhaps functions should auto-bind on assignment as a property?
 
Oh fuck no
 
@KendallFrey, screw newcomers what? Over.
 
That's non-intuitive.
 
That'd destroy all generic-ness.
 
9:00 PM
drat, prototypes
 
!!s/what?/sir!/
 
@Shmiddty @KendallFrey, screw newcomers sir!? Over. (source)
 
I could live with functions auto binding as properties, so obj.someMethod would execute someMethod on obj as this unless we override that in some way... oh wait!
 
I love how weird this is. It gives you amazing power. And yeah, it takes you some time to warm up to the concept, but closures also confuse a lot of newcomers, and they're amazing.
oh wait, closures are just functions.
Functions are so awesome.
 
@JanDvorak Thanks for the unload tip, works Great :)
 
9:02 PM
We need pause/resume
 
confunction function what's your closure?
 
function sync(fn){var c = new Continuation(); fn(c.resume.bind(c)), c.pause()})
 
@JanDvorak ?
@JanDvorak We have that, it's called yield
 
this exists so you you can write a.b() instead of b(a). It's NutraSweet.
 
@BenjaminGruenbaum ES6, right?
 
9:03 PM
@JanDvorak Right, we have that in nodejs for quite some time though, it's called Fibers.
 
I want that in a browser
 
ES6
I think Q promises pretty much solves any issues anyone might have had with CPS
 
user1596138
@BenjaminGruenbaum I take it something's wrong with the latter room...
 
@Jhawinsss Spend an hour there, don't talk, just listen. It's pretty much a bunch of assholes and a few decent guys
 
@BenjaminGruenbaum I want to return later. Not now. Not return a promise. I want to wait, with the caller blissfully unaware it was blocked.
 
9:06 PM
You want to block, right?
 
yep
I want to make my own blocking functions
I want pseudo-synchronous AJAX
 
Why don't you dig up Brendan Eich's great-grandmother and have a romantic dinner with her while you're at it?
 
@JanDvorak You want threads?
 
kinda
 
um whats wrong with this fiddle?? jsfiddle.net/Q3Hv6
 
9:09 PM
It doesn't have enough turtles.
 
true...
ill get on it right away!
 
Also, you're creating a regexp from a string. There's no need to wrap in forward-slashes / and remember to escape backward slashes \\.
 
@TrevorRudolph /regex/, not new RegExp("/regex/")
 
new RegExp("regex") is also possible, but stupider
also see debuggex.com
 
9:12 PM
People come and ask about making jsonp requests (or just abuse $.getJSON or the likes), right? I might extend this to include making jsonp requests (and of course, warn about their danger blah blah)
 
@Zirak I think that would be sensible; github has a jsonp api.
 
@Zirak step numbers in binary threw me off for a sec
 
@phenomnomnominal The critics seem to never be happy with anything iOS does, I personally thing it's absolutely amazing, and a step in the right direction, everybody else complains about everything else
 
binary arithmetic 101 is much less awesome than any other 101.
cooking 101: one hundred tips
binary arithmetic 101: just five tips
 
user1596138
@BenjaminGruenbaum I'll have to do that sometime. Right now I'm staring blankly at my desk doing nothing.
 
9:18 PM
@Gacnt Looks like change for the sake of it to me.
 
@loading... What do you mean?
vine.co/v/blOUxUtaKzE That's pretty cool
 
user1596138
@Gacnt It's totally locked down. It's a step backwards into digital imprisonment and raises bigger questions.
 
@Gacnt It's not a massive departure from the existing UI. Except it looks crap.
 
user1596138
There is nothing ground-breaking about it either. I've never seen an idea for iOS by apple that wasn't already implemented elsewhere.
 
@Gacnt It just looks like it's trying to look fresh, but some things shouldn't be changed. Like a bicycle.
 
9:21 PM
@Gacnt I think iOS 7 is just to distract everyone from the fact the next iPhone is going to be nothing more than the iPhone 5 with an s on it :)
 
@Gacnt The first thing that strikes me is the lack of contrast.
 
user1596138
@Gacnt I have this on my Android.
 
I'm wondering if "giant s" refers to an upcoming iphone version
 
@Jhawinsss Oh cool, what's that app called?
 
user1596138
@OctavianDamiean Lemme look...
 
9:23 PM
@Gacnt Yawn. Nobody cares.
 
43
A: New users can't create new tags: show a singular or plural message?

Jeff Atwoodhttp://twitter.com/codinghorror/status/1165936105 Dear Next Person Who Opens a Pluralization 'Bug', I will personally come to your house and bludgeon you to death with a giant S But not you. I like you. You're nice.

 
user1596138
 
Cheers.
 
@Gacnt how on earth do you do that
 
user1596138
You called me out, I just wanted to validate what I said.
 
9:26 PM
@Jhawinsss hah, dude that's pretty sick! :)
 
user1596138
@OctavianDamiean I like it. It's not nearly as smooth as the iOS version looked though I will say that. But it's been made by an independent developer (or team) and not a multi-billion dollar company.
 
anyone tried Cube Slam yet?
 
This bugs, me so much unused screen real-estate
 
@Shmiddty yep pretty sweet aye, over.
 
@phenomnomnominal I need to try with webcams at some point
 
9:29 PM
Yeah it's cool, your opponents face appears instead of Bob
 
@phenomnomnominal I didn't copy. Over.
 
I wonder how they do syncing
copy over copy, copy, over.
 
@Shmiddty Do you HAVe to use a webcam?
 
@Gacnt no
well I dunno in actual multiplayer
I've only played bob
I got to level 7 or 8
 
@Shmiddty Yeah I think it's mandatory in multiplayer
 
9:31 PM
Over.
 
!!s/Over/Copy/
 
@Shmiddty Copy. (source)
 
Solid copy. Over.
 
!!s/Copy/Roger
 
@ShotgunNinja That didn't make much sense. Use the help command to learn more.
 
9:32 PM
@Shmiddty Nicely done!
 
@loading... getting to that level? I'm not sure what you are applauding
 
10-4 roger tango alpha bravo squad copy over and out
 
whisky tango foxtrot
 
@Gacnt roger, roger this is tooti-frooti, what's your call sign, 10-4. Over.
 
Oh guys.
 
9:36 PM
@OctavianDamiean, did not copy that, come again, over.
 
user1596138
Dammit!! Our host broke FTP access to the webserver and then went home for the day knowing that we were screwed!
 
@phenomnomnominal little red jacket over
 
user1596138
Which means I lose hours. Time to go home. Later all
 
It's ok, you only lose $9 :P
 
That pseudo military talk is so bravo sierra. Over.
 
9:37 PM
586
A: What is your best programmer joke?

spelchecQ: How many prolog programmers does it take to change a lightbulb? A: Yes.

 
@OctavianDamiean copy that, roger roger 10-4. Over.
 
Oh Foxtrot Ocar
 
user1596138
@Gacnt Actually, I lose 4 hours at $12/hr.
 
That post is also filled with win
 
$48 before tax
 
9:38 PM
@Gacnt You Foxtrot Oscar. Over.
 
> Saying that Java is nice because it works on every OS is like saying that anal sex is nice because it works on every gender. Over.
 
user1596138
@Shmiddty That's 48 McChickens...
 
I will Foxtrot your Mike
 
Where the fuck can you get a McChicken for a dollar! Over.
 
user1596138
@phenomnomnominal What? Hahaha. Where are you from?
 
9:39 PM
I second the question
No wonder america is fat foxtrot as all fucking foxtrot hell hotel
 
user1596138
@phenomnomnominal McChickens are $1.06 here.
 
New Zealand, roger that, over.
 
10-4 Rubber Ducky this is little red jacket hold on to your lug nuggets it's time for an overhaul, over and out
 
@Shmiddty The game!
 
user1596138
I gotta get outta here guys hahaha. Later
 
9:41 PM
@Jhawinsss, did not copy, over.
 
@Gacnt Over or out, never over and out.
Over means you are on standby and awaiting a response, out means you're done and don't expect any response. :)
 
@niels123 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.
 
Ok, I'm out. Out.
 
@loading... I didn't make it, if that's what you think.
I wish I could take credit though
it's very well designed
 
@Gacnt Now down on your ass shaped face and give me twenty for that stupid mistake!
 
9:44 PM
@Shmiddty Yes. Just got to level 5. The visual design really stands out.
 
I would drop everything and move to California if I got an offer from Google
 
For realz?
 
yeah
 
heh, I wouldn't.
In fact I didn't.
 
Don't come to California unless you enjoy a cost of living bordering on ruin
 
9:46 PM
@jbolanos I pay $2k per month for my apartment
And I would assume that I'd make more money at Google
 
@Shmiddty in Palo Alto you'll pay that for a broom closet
 
@jbolanos Compared to Moscow, London, or Tokyo?
 
London is quite fucking expensive.
 
@jbolanos well that seems exaggerated
 
I wouldn't live in London with 2x my salary :)
@Shmiddty close enough - housing is crazy here - esp in Palo Alto where most of the Tech giants live
 
9:48 PM
I like this one:
There are 10 types of people. Those who think they know the punchline to this joke, and those who will get laid.
 
I commuted 2 hours and even with the cost of my car I saved $1200 a month on living expenses
 
Holy crap.
 
@Zirak What about the other 010 people?
 
@jbolanos you in SF?
 
I was paying $1370 for 2bed/2bath/washer/dryer/parking in El Cerrito
 
9:49 PM
There are two types of people. Those who can extrapolate from inc
 
@jbolanos That doesn't sound bad.
 
I won't live in SF - too expensive when its 35 min BART train ride in if you need to :)
 
The post also has an awesome unix Russian roulette:
 
@jbolanos I assume that's the 'burbs?
 
I was looking at apartments close to Palo Alto and they wanted $2500 for 1bedroom
 
9:50 PM
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
 
@jbolanos (or area). I'm moving to Alameda for the same reason.
1br for $1,300
 
@Zirak I prefer the KMEM roulette
 
Anywhere on the BART line works
 
@jbolanos O bus ~20 min to where I work.
 
9:53 PM
@JanDvorak LOL
 
Yeah - clipper makes things easier :)
 
I take a train ~40 minutes each way. Funny thing is, I live in the city and work in (basically) the 'burbs.
 
@Zirak hah, yea. I have that as a Skype description with an extra notice not to execute it. Guess what, someone was smart enough to execute it anyway.
 
I could live closer to work and pay much less money on an apartment
 
@Shmiddty wow
 
9:56 PM
@Shmiddty like, in a tent?
 
People who love SF will do that - but once you get a place in the city you never leave if you can help it :)
 
@OctavianDamiean nah, I'm paying something like a $700 premium for living in the city
 
Man, I couldn't live in the city.
 
I would pay the $2400 for a one bedroom here if I could afford it: sugarcubebuilding.com
 
Round here, the burbs are more expensive than the city.
 
9:57 PM
20 to 15km outside of the city is fine but right in the city? nah ...
 
@OctavianDamiean It's nice, I don't drive
tons of great food delivery
if I want to go out, I don't have to worry about being sober when I come home
or finding a cab
etc etc
 
now I live in the burb's burbs and I work in the burbs
 
burbs'*?
 
Trains are a good way to travel.
 
trains be wrecking all over the place
 
10:03 PM
Elevators are the safest form of motorised transport, but there aren't many on my commuter route.
 
Only city I could imagine living in would be Whistler BC, Canada.
 
I want to live in Gnome Alaska
 
I've always fancied Vancouver. Expensive though.
Or Melbourne.
 
@loading... I don't know... wheelchairs are pretty safe too
 
s/transport/public transport/
 
10:08 PM
whoot - I closed firebug and my app sped way up :)
 
Though I just had a mental image of free public electric wheelchairs, like they have for bikes in Amsterdam.
 
@Shmiddty That's crazy o_0
2400$ per month is a shit ton of money for 1 bedroom apartment
 
@jbolanos Firebug is a real performance killer.
 
@Oct, mono, live just north of greater Victoria. Best stuff yo
 
10:10 PM
@Zirak fake. It's all the same queries over and over again
 
And no porn
 
Of course. It's still cool.
 
maybe as a Win8 ad
 
@OctavianDamiean I just keep forgetting to close it when I'm done with it - and suddenly my browser is unusable until i remember to find the tab with it open and kill it
 
What shall I code tonight?
 
10:13 PM
Code me some pants
 
!!Star Wars Episode V or Star Wars Episode VI
 
@OctavianDamiean Star Wars Episode VI
 
VI is better anyways
 
wat
 
I'm waiting for VII
 
10:14 PM
posted on June 13, 2013 by Victor Rodriguez

gource - software version control visualization Windows NT grandaddy OpenVMS taken out back, single gunshot heard Rock samples suggest meteor caused Tunguska blast

 
where Mickey discovers the force and electrocutes donald duck
 
KH III will have Star Wars. It must. That'll make it worth it.
 
Imagine a boss fight with Darth Vader.
 
10:15 PM
@jbolanos Would Goofy be Chewbacca then?
 
@OctavianDamiean isn't he?
 
apparently a lot of people are googling "300 rise of an empire" in america
 
I'm still mad they stopped the cartoon
 
+1
 
10:17 PM
daddy would you like some sausage
 
Seriously, I have to create a setup script for when I reinstall my OS to configure everything for me ...
 
someone go do this already, I want some competition :D golf.shinh.org/p.rb?Diamond+Knockout
 
No! No more code golfing!
 
DO IT
 
can someone recommend a good javascript pagination addon? I'm too lazy to write my own
 
10:20 PM
@jbolanos <script></script>
 
@copy Yea, that one is very efficient.
 
pagination has to be done on the server, unless you want to return all records up front
 
I'm paginating records kept in localStorage
 
why?
 
because there's a lot of them and I don't have database support yet
baby jesus love one page apps
 
10:22 PM
collection.slice((pageNumber-1)*pageSize,pageNumber*pageSize)
 
@Shmiddty doesn't that require backbone?
 
lol
 
667
A: What is your best programmer joke?

Brian KellyIf you put a million monkeys at a million keyboards, one of them will eventually write a Java program. The rest of them will write Perl programs.

 
 
10:32 PM
!!> ["hip!","hip!"] instanceof Array
 
@rlemon true
 
495
A: What is your best programmer joke?

RoadWarriorThe fantastic element that explains the appeal of games to many developers is neither the fire-breathing monsters nor the milky-skinned, semi-clad sirens; it is the experience of carrying out a task from start to finish without any change in the user requirements.

so true
 
@MichaelLawrie 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.
 
401
A: What is your best programmer joke?

James Curranchar*lie; double time, me= !0XFACE, not; int rested, get, out; main(ly, die) char ly, **die ;{ signed char lotte, dear; (char)lotte--; for(get= !me;; not){ 1 - out & out ;lie;{ char lotte, my= dear, **let= !!me *!not+ ++die; (char*)(lie= ...

my favorite
 
@Gacnt Market diversification, man.
 
10:40 PM
warning, girls in bathing suits.
not "nsfw" but people will bitch if I don't warn
 
Having trouble with IIFEs, IE and scope: jsfiddle.net/jw4VF
 
0
Q: Why do good answers get downvoted?

Benjamin GruenbaumI've recently noticed this answer got a down-vote. A lot of good answers contain one, or two down-votes. Now I realize this is how the system works, and that other users are entitled to have their own opinion on usefulness. However given: This is a good, updated answer. No comment was left....

Something that I was always curious about
 
revenge votes?
 
"fight the high-rep system"?
 
It can't be strategic, at least not in that specific question's case.
There are no competing answers. The only other answer is mine and it's saying how awesome Felix's answer is.
 
10:45 PM
The plot thickens
 
@copy LOL, that could have been really funny. Downvote a really good answer and ask why it was down voted. Sadly, it would have been pretty silly given meta is crawling with mods and community managers.
 
You're trying this reverse psychology thing, but it doesn't work on me
 
No one will find it there. Muhahaha.
 
11:01 PM
Damn you secret bug that only occurs on iOS6 on a 4S on live and not in dev. Over.
 
Must be related to the secret bug that only appears on live in IE10 that I'm having.
 
Everything except for Linux is making problems
 
It just got another downvote lol
 
345
A: What is your best programmer joke?

SniggerfardimungusHere's one I came up with many, many, many years ago: I called the janitor the other day to see what he could do about my dingy linoleum floor. He said he would have been happy to loan me a polisher, but that he hadn't the slightest idea what he had done with it. I told him not to worry about ...

 
11:20 PM
If text is highlighted from dragging mouse over it, can Javascript grab it some how ?
 
yes, over
 
I actually was just dealing with this. If you're ok with using a jQuery lib, Rangy is your friend.
 
@Dave Check how the selections api works, over.
!!/tell Dave mdn window.getSelection
 
ah its part of the window! i been looking up the mouse :P
 
11:25 PM
hint: you can select with a keyboard, over.
 
Some people don't even have a mouse, over.
 
@BenjaminGruenbaum iPad? Over.
 
good point
although with touch screens wouldnt it be on touch events
 
I select text through sheer force of will
 
@Dave, it's about the selection, not the event, over.
 
11:26 PM
Ok, under.
 
@BenjaminGruenbaum Spent a few hours mouseless a few days ago after my MBP (metaphorically) caught fire.
 
You mean, "ok, out", right? Over.
 
@Dave, didn't catch that, over.
 
@JanDvorak If you copy, I think copy doesn't use a mouse, I wonder if stuff like vimperator still triggers events like mouseover, over.
 
Under - short for understood
 
11:28 PM
@Dave oh, under. Over.
 
As long as you under my under, over.
 
Shouldn't understand mean sit?
 
Can't read you, over.
 
Or perhaps crouch?
 
"I understand bridges" doesn't imply sitting, over.
 
11:30 PM
Why would under mean sit? You could sit under or over, over.
 
What would be under standing?
 
depends what you are under to be standing under, over
Are you standing under the universe? There is no under or over in the universe, over.
undering @Shmiddty :)
 
Wakarimasen
 
Can we be in the universe, if the universe is everything. That exists.
 
@Dave Why did you put a period after "eveything" over?
 
11:35 PM
Why am I so confused... Over
 
Not sure, over. Accident, over.
 
Got a python question, anyone feels like helping?
 
edits are for noobs. Over.
 
I like snakes, over.
 
user1125394
is there a function to test if a var is defined?
 
11:36 PM
This got boring real fast.
 
but its international talk like your on a radio comm day.
 
@cx That's a surprisingly interesting question. My intuition would say no
 
Typeof varname ==="undefined"
 
user1125394
!!> foo==undefined;
 
@cx "ReferenceError: foo is not defined"
 
11:37 PM
but no caps
 
user1125394
the php isset is bad anyway, so js is right not copying
 
@rlemon doesn't distinguish a variable existing and being assigned undefined, and a variable not being defined.
 
php is bad for most things
 
Close enough.
 
Try catch that shit
 
user1125394
11:38 PM
nah will init it with false, cleaner better
 
@cx !!> var foo; foo === undefined;
 
@BenjaminGruenbaum but isn't that why === was used to know if undefined is either string or actually undefined
 
Gah, multiline
!!> var foo; foo === undefined
 
@loading..., didn't copy that, over.
 
@loading... true
 
11:39 PM
@Shmiddty That works. Yeah, I feel pretty stupid now.
 
typeof also takes account of when a var isn't declared
 
I dislike the use of try catch in that manner, and almost in general, but it works
 
@Shmiddty It's a perfectly valid solution to his problem and probably the only one.
@loading... Which is the problem, it doesn't destinguish var x; typeof x and typeof y
 
Also, declared and defined mean different things
 
Exactly.
 
user1125394
11:41 PM
!!> typeof Array;
 
@cx "SyntaxError: syntax error"
 
@BenjaminGruenbaum Yeah, so don't use typeof
 
@cx "function"
 
The ducky part is that you can't make an isdeclared function
Sucky
 
When would that be useful?
 
11:45 PM
Another way is
If ("name" in object)...
It wouldn't be useful unless you are writing awful code
 
Then it's not sucky!
 
Fair
 
@Shmiddty that doesn't solve the problem at all though.
 
The problem is bad code
 
user1125394
dang jquery
 
11:49 PM
If you don't know whether a variable is declared or not, you are writing bad code.
 
Don't blame jQuery
 
user1125394
$('.container [id^="acc"]') I'd like the .container whose id starts with that, it returns me the components inside it whose id starts with..
 
Get rid of the space
 
I love Gosser
 
user1125394
11:50 PM
@Shmiddty brilliant
 
@cx What do you mean 'id starts with' , why would you not know what the ID is?
 
Ok bye
 
Oh god, I regret asking that question already -_-
 
:-)
 
user1125394
@BenjaminGruenbaum I have accSomeNameSomeNumber
 
11:52 PM
Yep, totally regret it.
 
:-D
 
user1125394
as id, but yes your question is valid, I'm certainly bad designing
 
@cx Get rid of it
 
user1125394
I'm doing some hashchange hiddening of divs, but nvm trying to help me
 
@copy Y U NO ANSWER MY PYTHON QUESTIONS :(((( .
 
11:54 PM
I read it 1 hour later and could only have disappointed you
 
18 mins ago, by Benjamin Gruenbaum
Got a python question, anyone feels like helping?
That's not even an hour old
:P
 
Don't ask to ask
2
 
I want to unit test a method that writes to a file. I thought about passing an optional file_handle argument which defaults to open and then mocking that in my test. Any simpler approach?
 
Create a file and then test the method on that
 
Want to eliminate actual file IO out of the question I guess?
 
11:59 PM
It doesn't sound like a good idea to adjust your code to work with your tests
You could also overwrite open
 
I don't know Python, but I think I'd want to mock it so I could test for disk full, or bad permissions, and so on.
 
user1125394
also it's weird the python style to write tests before everything
 

« first day (971 days earlier)      last day (3977 days later) »