3 ms·
I think your quote sums up the intention of this article and most of the "don't do this" posts. What they all are getting at I think is that constructs in a la
by DigitalJack 14y ago
I think your quote sums up the intention of this article and most of the "don't do this" posts.
What they all are getting at I think is that constructs in a language can be "abused" or used less than effectively either in terms of processing efficiency or user/programmer interaction.
So when they say "don't do this" it's more to show cases where doing whatever "this" is can be bad. Not that it's always bad and should never be used.
Also, the "don't do this" mentality can be a useful exercise to teach yourself alternative ways of getting things done.
- d--b 14y agoFine, but the point is that the guy is only half-way through his reflexion. OO programming is an effective way to organize the business logic. And that logic should be coded in a sequential fashion to be readable and maintainable. Finding the right balance would be a much more interesting subject than to say 'ifs suck'