May-19-2017, 10:10 PM
(May-19-2017, 10:03 PM)nilamo Wrote:Since I don't miss C(May-05-2017, 01:03 PM)volcano63 Wrote:I do this all the time, because I like when the compiler tells me I'm stupid. I believe it's commonly referred to as yoda checking, because it sounds backwards. (https://en.wikipedia.org/wiki/Yoda_conditions)if (3 = x)
is illegal assignment, failing compilation.


Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.