Re:First private Chinese attempt to send rocket into space f...
by WalterBright on Sunday October 28, 2018 @05:04PM
(#18323187)
I gave a whole presentation about this sort of thing some years back. These concepts very definitely are applicable to software design, especially programming languages.
For example,
a < b < c
What does it do?
Python:
a < b && b < c
C:
((a < b) ? 1 : 0) < c
D:
syntax error!
Instead of trying to better educate programmers and code design reviews to solve it, make it impossible for such to pass the compiler.
For example,
What does it do?Python: a < b && b < c
C: ((a < b) ? 1 : 0) < c
D: syntax error!
Instead of trying to better educate programmers and code design reviews to solve it, make it impossible for such to pass the compiler.