I would love this idea, if it was limited to 10-20 lines. The forced conciseness of it would make devs focus on brief concepts and structure, rather than complex methods. It would end up being like Dribble rather than Gist/PasteBin, and be a great place to browse for techniques I hadn't previously encountered. Think about how fun it would be to scan through an Instagram style list of stuff like this: ############~C~#…
Quick question: wouldn't 1?1:var always return 1?
if var is a float...
(1?1:var)/2
...becomes... (1.0/2)
...which equals 0.5 and is considered true when evaluated. But if var is an int... (1?1:var)/2
...becomes... (1/2)
...which equals 0 and is considered false when evaluated