Sujet : Re: Joy of this, Joy of that
De : Pancho.Jones (at) *nospam* proton.me (Pancho)
Groupes : comp.os.linux.miscDate : 23. Nov 2024, 00:07:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhr2r7$1cdln$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 11/22/24 19:30, The Natural Philosopher wrote:
Coding is always a balance between flexibility and clarity, there is no "right" answer. You can make code more flexible by adding another layer of indirection, but it becomes harder to understand.
>
>
I echo that. The 'nogoto' was really a fool's rule. The wise man's guidance was 'make it clear what you are doing because you or someone else - may need to understand it in a years time'
I dpnt find OO in general makes code easier to understand.
It's hard for me to understand reluctance to use OO. I learnt Smalltalk before I learnt C. I never did much development in C, mainly maintenance, but when I did it had an OO feel. When C++ came along I was very happy.
To me saying you don't like OO is a bit like saying you don't like structs. Yes, instead of a struct you could use a block of memory and offsets, but why would you want to when you have a struct.
I find it hard to imagine any other way of coding.