logoalt Hacker News

Printf-Tac-Toe

87 pointsby carlos-menezeslast Sunday at 12:01 PM8 commentsview on HN

Comments

JKCalhountoday at 12:52 PM

Contestant: "I'll take My Dirty Programming Secrets for 100, Alex."

Alex: "Its primary purpose is to serve as The One True Debugger."

(It has certainly served me well.)

binaryturtletoday at 3:12 PM

That's the content why I check HN! :)

LoganDarktoday at 2:47 PM

To be fair, this is actually `scanf` and `printf` in a loop. The `scanf` is buried in the `arg` define.

idorozintoday at 10:48 AM

This is both impressive and slightly terrifying. Format strings are way more powerful than most people realize.

show 1 reply
danbructoday at 9:34 AM

How did we end up with printf - within a loop - being Turing-complete? Was it designed that way from the beginning? Were new features added over time until we got there?

show 1 reply