General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
FD 2003
Programming with Mosh
comments
Comments by "FD 2003" (@FD2003Abc) on "Programming with Mosh" channel.
Operator precedence should NEVER be relied upon: ALWAYS use parenthesis to control the order. ALWAYS. Don't rely on PEDMAS
1
Another note - you can disagree with me and my 45 years of application development if you wish. ALL variables and objects should be explicitly declared before using. Dynamic creation of these not only is lazy but violates the important programming concept of Strong Typing. Also, variables should be scoped and typed when given a name. The Python standard is silent on scoping and typing but this is not only lazy, but confusing. If you code xyxxy = tyu123 you have no idea what the operation is. gInt_xyzzy = lInt_tyu123 tells you that the global integer is being assigned the local integer. And as you know it is an integer, you know there are operations that are allowed - but ALSO that any decimals in the operation will be discarded after the operation completes. I also disagree with your comment of "over-documenting." If you have ever worked with a program with thousands of lines you will very much appreciate all the inline doc you can get. There should be standard declaration comment bloc on every function defining the purpose, input variables and return values. As these are functions that will only be referenced should the main code not function as expected. Very few function names are self-documenting like "square." This is to take nothing away from your class - I am taking it from start to finish even though I already code in about 7 languages. Your teaching approach is both logical and comprehensive and I really appreciate the course and all the effort you put into it, now 5 years ago.
1