4 ms·
I'm just a non-computer scientist who mainly codes in Python and Matlab, but a lot of these suggestions (making a number a vairable if it is used more than once
by Eduardo3rd 14y ago
I'm just a non-computer scientist who mainly codes in Python and Matlab, but a lot of these suggestions (making a number a vairable if it is used more than once, etc) seem like normal coding practices to me. Do very many coding tutorials leave out this sort of thing?
- yen223 14y agoThe tips written there should (hopefully) be fairly obvious to seasoned programmers, I agree. However, I find that this is particularly helpful in that it based on an actual working code base, instead of contrived examples. It demonstrates that writing clean code isn't just a pointless academic exercise, there is a purpose to it.
- timwiseman 14y agoYes, most of them are normal coding practices. But ways to write better code generally are or at least should be normal coding practices. But many people do not know what the normal practices should be.
- stonemetal 14y agoThe lowest quality of code I have ever seen has been tutorial code. In my experience(of reading various tutorials) it is uniformly badly written. There is never any error detection, basic things like setting up constants are relatively rare, Logging and debugability is never considered.