Better HN
topnewbestaskshowjobs
Log inSign up

CurlyJefferson

6 karma · joined Aug 12, 2018 (8y ago) · 2 submissions

Submissions

comment 8y ago · link · parent

I find it interesting to read various vegetarian-related quotes. One begins to see how much a part of the history of human thought it really is. Here's a collection I found with a quick search: http://notable-quotes.com/v/vegetarianism_quotes.html

I was pleasantly surprised by some of the names I came across - Leo Tolstoy, for instance.

comment 8y ago · link · parent

"Stop trying to shorten code by 2 lines."

Agreed. Python code tends to be concise as is. There's no need to add little tricks to cut out a line or two at the expense of readability.

Along those lines, in a recent code review a developer balked at some proposed code and boasted how he could do the same thing in fewer lines. His "improved" code had a keyword parameter where the default was set to a lambda function containing nested list comprehensions plus a zip function... I voted against his "improvement" since it was the most unpythonic thing I'd ever seen. I'll take added readability and simplicity at the expense of a few extra lines.