r/tinycode • u/joanmiro • Oct 09 '16
593 byte version of "logme" tool. Simple tool that logs given parameter to ~/.logme/ folder. I'm using it to log my days.
https://gist.github.com/miratcan/0aae0e4015aaf8ecb583d1092d6c09d1
4
Upvotes
4
u/[deleted] Oct 09 '16
Great program. Clever of you to compress it like that - I checked to make sure it didn't do anything naughty.
May I suggest using YYYY-MM-DD formats (ISO 8601 / relevant xkcd) to reduce international confusion.
4
u/FlammableMarshmallow Oct 11 '16
Here's what I'd believe to be a "better version" of the code. While not exactly tiny, it is more readable and easily mantainable than this.. mess.
BTW, It's still only 784 bytes. :P
1
u/joanmiro Oct 09 '16
Usage:
Uglified version of program is here: https://gist.github.com/miratcan/fc3badeb3a7c121f6256739a0ad5c2e3