http://www.codingindelphi.com/blog/wp-content/uploads/2016/11/Logo-300x138.png 0 0 firstname.lastname@example.org http://www.codingindelphi.com/blog/wp-content/uploads/2016/11/Logo-300x138.png email@example.com 07:19:082015-05-04 07:19:08Flotsam and Jetsam #104
- Stefan chastises me for making another one of my pronouncements on “evil” programming techniques. I admit to a bit of hyperbole, but it’s not without a point. The argument against my pronouncements is that the wise and judicious use of these so-called “evil” features or techniques is good. I don’t agree. I think that if a “feature” has the ability to be *easily* abused, then it should be avoided. For instance, some make the argument that there places where the
withstatement makes sense. Well, my counter argument to that is if you allow the
withstatement in a few places, it’s very easy to use it in just a few more places, and then the next thing you know, your code is full of
withstatements. It’s a slippery slope that you should never start down. The same is true for nested procedures. Sure, there might be places where they “make sense”, but if you allow them in one place, what is to stop a junior programmer from getting the wrong idea and go crazy with them? This is especially true for features that simply need not be used at all – such as
withand nested procedures. You can write beautiful code without them, so why risk sliding down the slope? Better to ban their use altogether. (Cue the “Then why don’t we all just use assembler” comments in 3..2…1….)
- I’m a big user and proponent of the Spring for Delphi framework. If you are, too, then you might consider donating to the project. The website now has a PayPal donate button.
- I recommend that you give a very careful read to Marco’s post about what was going on at the Microsoft BUILD conference last week. Lots of interesting stuff there for us Delphi developers, both in the Windows and cross-platform realms.
- Torry.net is for sale. Hat tip to Olaf Hess in the non-tech group for this piece of information.