Oct-09-2018, 12:26 AM
+1 to not requiring elses to ifs. I don't feel strongly enough about it to make you feel bad or call you names, but I do feel that I should throw in my intuition that it's unnecessary noise, and say that you will probably agree after a few months of Python. While I'm sympathetic to wanting code to be as legible for beginners as experienced folks, I feel like you learn to understand the code fairly fast and it's not worth bogging everyone down. Do with this intuition what you will.
I don't expect everyone to know about this, but Ed Shaw is not an authority on Python. His tutorial is popular and might not be entirely bad, but there are pretty serious criticisms of him that mean I would recommend learning Python from a shell before using his tutorial. Unfortunately I can't find it, but I know there was a good thread that went into detail. Anyone seeing this should feel free to link to it.
Overall, I find the general practices for Python to be quite readable, and I believe they're good. To do any better I would suggest functional programming (which I don't find easy in Python), but I'm probably in the minority there :)
I don't expect everyone to know about this, but Ed Shaw is not an authority on Python. His tutorial is popular and might not be entirely bad, but there are pretty serious criticisms of him that mean I would recommend learning Python from a shell before using his tutorial. Unfortunately I can't find it, but I know there was a good thread that went into detail. Anyone seeing this should feel free to link to it.
(Oct-08-2018, 02:38 PM)stullis Wrote: delivered without tact+1. This is a learning forum, and I learned (here) this lesson at the cost (I'm sure) of a lot of people learning better.
Overall, I find the general practices for Python to be quite readable, and I believe they're good. To do any better I would suggest functional programming (which I don't find easy in Python), but I'm probably in the minority there :)