??? 09/26/05 12:34 Modified: 09/26/05 13:02 Read: times |
#101533 - "clever" Responding to: ???'s previous message |
I find that the line between a clever programming trick and a case of spaghetti code can be blurry. In most cases, it seems to be more of a question of generally accepted programming practices.
I have heard of this one ("clever" vs "accepted programming practices") more often than i care for. "clever" in 98.17% of the cases mean "will bite you in the butt some day". It seem that the main "defense" you put up for your "clever" idea (nothing new under the sun, seen that one for decades) is that crutches makes your program "ugly". Who would you rather marry: an "ugly" woman that is the best companion you can have or a "clever" woman that gives you trouble all thr time? That everyone has failed should not keep you from trying if you are Sir Edmund Hillary, but in programming that applies only to algorithms, not to their implementation. Erik |
Topic | Author | Date |
RET to a different address | 01/01/70 00:00 | |
here is how pseudocode | 01/01/70 00:00 | |
RET to a different address | 01/01/70 00:00 | |
no flaw, but 1.000.000 gotchas | 01/01/70 00:00 | |
That's what I wanted to know | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
"clever" | 01/01/70 00:00 | |
OT: my wife | 01/01/70 00:00 | |
no flaw, but seriously not recommended | 01/01/70 00:00 | |
experience | 01/01/70 00:00 | |
reload SP | 01/01/70 00:00 | |
restoring stack | 01/01/70 00:00 | |
Recognisable string![]() | 01/01/70 00:00 | |
named return value | 01/01/70 00:00 | |
Bad Practice | 01/01/70 00:00 | |
Well phrased | 01/01/70 00:00 | |
What I am doing with it | 01/01/70 00:00 | |
try...catch | 01/01/70 00:00 | |
setjmp / longjmp | 01/01/70 00:00 | |
when to try ... catch | 01/01/70 00:00 | |
the borderline | 01/01/70 00:00 | |
Promises | 01/01/70 00:00 | |
who cares if an exceptiom is "acceptable | 01/01/70 00:00 | |
Parsing input data | 01/01/70 00:00 |