top | item 6865571

Hacker Typer: How To Look Insanely Busy In A Coffee Shop (2011)

91 points| erickhill | 12 years ago |hackertyper.net | reply

32 comments

order
[+] adamnemecek|12 years ago|reply
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

[+] conradev|12 years ago|reply
I've seen it used a lot in Objective-C for default values:

    NSNumber *value = dict[@"key"] ?: @1;
[+] erikig|12 years ago|reply
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;
[+] ja27|12 years ago|reply
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.

[+] phaer|12 years ago|reply
Then you just need a keyboard with pulls the right buttons down while you are napping with your hands on said keyboard.
[+] rcfox|12 years ago|reply
Why not just write a script to continuously run the build?
[+] cantcatch22|12 years ago|reply
This has been posted so many times, very old
[+] cpeterso|12 years ago|reply
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

[+] eponymous|12 years ago|reply
This is hilarious! I wish I could really write code that fast.

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

[+] haydenjameslee|12 years ago|reply
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.
[+] chmike|12 years ago|reply
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 ? ;)
[+] alelefant|12 years ago|reply
Can't look busy on my phone either.
[+] chewxy|12 years ago|reply
The best part IMO is that backspace functions like backspace.
[+] alexvr|12 years ago|reply
I cracked up when I tried this. Not sure why
[+] zoom|12 years ago|reply
Ahhhh, so this is how Win8 was written.
[+] adam419|12 years ago|reply
This is hilarious! Great work
[+] cylinder|12 years ago|reply
Clever and satirical. Nice.
[+] shire|12 years ago|reply
This is very funny to me I started cracking up right away nice.
[+] pokpokpok|12 years ago|reply
this hardly belongs on the front page of hn.