r/WatchPeopleCode • • Apr 03 '15

Evolution of a tiny program [GIF]

88 Upvotes

8 comments sorted by

9

u/welle Apr 03 '15

Not sure if something like that belongs here. I wrote a small program today and replayed the history to create this gif. Just thought it looks interesting.

-9

u/y45y564 Apr 03 '15

yeah it's interesting, doesn't really fit with the sub though

8

u/silentclowd Streamer Apr 03 '15

I actually think it does. It's not the normal livestream that this sub was built for but are we not watching someone code?

-2

u/y45y564 Apr 04 '15

yeah in a very literal sense. But taking that I could record myself making a video writing a secret code to a friend of me representing words with hand claps.

I thought it was a cool Gif (if I little low res!), but didn't feel that it matched the tone and content of the rest of the sub

17

u/silentclowd Streamer Apr 03 '15

Really cool but I wish it was a high enough resolution to actually see what the code it. :)

4

u/welle Apr 04 '15

Next time I'll try to make it readable.

Related: http://robertheaton.com/2014/06/20/code-review-without-your-eyes/

6

u/silentclowd Streamer Apr 04 '15

Ha! I wear a pretty intense prescription that, er, had an incident with a bicycle tire a few months back...

Anyway, I had to do all my coding without my glasses until my new ones came in. The only bearable answer was to increase my font size on sublime text 10 fold -- about 50 characters per line.

Memories :D

0

u/[deleted] Apr 03 '15

[deleted]

18

u/welle Apr 04 '15

I did the editing with Vim, having persistent history enabled. When done, I decreased the font size in the terminal until the full code was visible and went back to the beginning of history with something like 1000u. To create the gif I used a program called gifgrabber, but unfortunately it can only record up to 30 seconds. Going forward in history by holding <C-R> was too slow for that, so I recorded a quick macro to go forward by two changes at a time qq2^Rq, and used a mapping map Q @q, so I could hold down Q to play it back at double speed.