Hacker News new | past | comments | ask | show | jobs | submit login
Hacker Typer: How To Look Insanely Busy In A Coffee Shop (2011) (hackertyper.net)
91 points by erickhill on Dec 7, 2013 | hide | past | favorite | 32 comments




OT but this is the first time I've seen the ternary operator used with only one operand. Apparently, it's only valid in GNU C though.

https://en.wikipedia.org/wiki/%3F:#C


I've seen it used a lot in Objective-C for default values:

    NSNumber *value = dict[@"key"] ?: @1;


?: is the "Elvis" operator.


That's pretty a hilarious name for it. Is this from the Groovy community?


The standard name is the "Null-coalescing" operator, see http://en.wikipedia.org/wiki/Null_coalescing_operator .

It's only called "Elvis" in Groovy. The name was announced one day by its Project Manager as part of a marketing campaign to make the name "G-String" mean a string on Elvis's guitar instead of a revealing item of clothing.


Yeah, it is a pretty nice shortcut. They also added it to PHP in 5.3 so you can do something like this now:

  $var = trim($_POST['var']) ?: 0;


I once wrote a quick Java program that recorded our project's build output (about 5 minute's worth at the time) and captured the time between each line of the output. Then it could play back the build output at the same pace. I could run that in a loop in a shell window and I could nap for an hour while it looked like I was waiting on a build to finish.

We joked about having a screensaver that looked like code being written and played realistic keystroke sounds like you were typing.


Then you just need a keyboard with pulls the right buttons down while you are napping with your hands on said keyboard.


Why not just write a script to continuously run the build?


Because that would need more energy, maybe.


The code comes from the Linux kernel: http://lxr.free-electrons.com/source/kernel/groups.c


Tip: Hit Cap Lock 3x (Then hit Alt 3x)


This has been posted so many times, very old


I remember readying an magazine article (K-Power?) about the 1983 TV series "Whiz Kids". They used a similar typing simulation to make the hacker kids appear to be perfect speed typists. The magazine even include a BASIC program so you could run it on your home computer, too. :)

The Associated Press review of the show said: "Whiz Kids does not make a whimper on the sex-and-violence scale, yet it may be more dangerous to children than anything on television this season. Our adolescent heroes – sort of Hardy Boys high on silicon chips – engage, willy-nilly, in assorted illegal activities: computer tampering, driving without licenses and grave-robbing."

https://en.wikipedia.org/wiki/Whiz_Kids_%28TV_series%29



The file you appear to type is groups.c from the linux kernel: https://github.com/torvalds/linux/blob/dc0755cdb16cb129c4054...


Be warned: if you type like this: http://www.youtube.com/watch?v=sffBHGpIRZE

...people will know that you're faking it.


Only if you make the "bing" noise though. Don't be so obvious.


This is hilarious! I wish I could really write code that fast.

Most of my actual coding is head-scratching and browsing documentation.


First day of freshmen programming class our professor made everybody go on this site when students came in late... One kid literally walked in, turned around, walked out and dropped the class.


It's not hilarous on an iPad 1. Nothing happens beside the prompt blink. How could I look insanely busy with that in a coffee shop ? ;)


Can't look busy on my phone either.


I guess we are supposed to bring our desktop computer in the coffee shop ;) it's for laptop users, but this is so oldish. Who is still doing that ?


The best part IMO is that backspace functions like backspace.


I cracked up when I tried this. Not sure why


Ahhhh, so this is how Win8 was written.


This is hilarious! Great work


Clever and satirical. Nice.


This is very funny to me I started cracking up right away nice.


this hardly belongs on the front page of hn.


Genius!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: