Just because you can, doesn't mean you should

Python lets programmers redefine initializers at runtime. Don't do that.

Screen Shot 2017-05-19 at 19.07.53

The C preprocessor lets programmers redefine "true". Don't do that.

Screen Shot 2017-05-19 at 17.11.35

Swift lets programmers use very foolish variable names. This may be the lesser sin, but still, don't do that.

Screen Shot 2017-05-19 at 17.07.26

Given python has a reputation for relatively defect-free code, it's remarkable how few guards it has for enforcing good code — no type safety, no access modifiers, only enforced indentation.

Original post: https://kitsunesoftware.wordpress.com/2017/05/19/just-because-you-can-doesnt-mean-you-should/

Original post timestamp: Fri, 19 May 2017 23:09:23 +0000

Tags: C, Coding, Programming, python, Swift

Categories: Software

© Ben Wheatley — Licence: Attribution-NonCommercial-NoDerivs 4.0 International