Really lazy weekend. Barely touched a keyboard, maybe just to chat for some time.
Still. I have rewritten `fold` in PHP, which is complete cheating, but at least i know how it should work now. Next step – implement it in C. And this is not because I am learning C, but because of this:
$ time php fold.php 10 syntax.text
$ time fold -w 10 syntax.text
PHP is not fast at all. But i have spent 20 minutes hacking that piece of code together and it totally works. That’s why dynamic languages rule. I still want to learn C, so have to rewrite that again.
Also, here is the picture of a guy stealing electricity on 42nd-Bryant Park: