Re: [PIC] Learning C

Isaac Marino Bavaresco <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <[email protected]>
The formatting you described resembles the Whitesmiths style (or 
something similar).

That's the style I use. It seems much more logical.

Cheers,

Isaac


Em 14/11/2024 09:32, RussellMc escreveu:
>   David C Brown, <[email protected]> wrote
>
>> Onew of the problems I have with trying to understand code examples in C is
>> that so many of them are incomprehensibly dense.
>>
> When writing C++ code I formatted in a way which to me makes it far more
>> readable than the normal manner of presentation.
>
> I place  { on the line following and then indent code following an Indian
> it again for any other functions such as if / while / case ... .
> The end result is code who's structure leaps out and grabs you. I started
> off being somewhat surprised that this wasn't standard practice come to
> accept that most people prefer density and obfuscation.
> Apart from taking more space I can see no disadvantages and this approach
> and for me the gains are substantial.
>
> I spent many decades working mainly in assembler and
>   actually find it generally easier to see what's going on than in most
> higher level languages.
>
>
> Russell.

-- 
O software antivírus Avast realizou uma checagem de vírus neste e-mail.
www.avast.com

-- 
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
https://mailman.mit.edu/mailman/listinfo/piclist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.