Re: [PIC] Learning C

Neil <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <[email protected]>
That is truly the one downside in C... some coders' styles can render 
code quite illegible. I am certain some developers do it for "job 
security", though I've seen this mentality render those developers less 
promotable out of their current roles, as it would make their current 
role harder to backfill.

Worse, there's a competition that encourages illegibility... 
https://www.ioccc.org/
Here's one example... https://www.ioccc.org/2020/endoh1/prog.c

Though I recommend a basic text editor to start learning, I find that a 
C-savvy editor that can collapse blocks ( enclosed with '{' and '}' ) to 
be very helpful.

Cheers,
-Neil.



On 11/14/2024 3:56 AM, David C Brown wrote:
> Ans 404 to you :-)
>
> Onew of the problems I have with trying to understand code examples in C is
> that so many of them are incomprehensibly dense.
> What would be five or six lines in Pascal or Basic is a single line in C.
> I appreciate that that is down to the programmer not the language but it is
> off putting
> i have to remind my self of the old adage:  You can write Pascal in any
> language
> __________________________________________
> David C Brown
> 43 Bings Road
> Whaley Bridge
> High Peak                           Phone: 01663 733236
> Derbyshire                eMail: [email protected]
> SK23 7ND          web: www.bings-knowle.co.uk/dcb
> <http://www.jb.man.ac.uk/~dcb>
>
>
>
> *Sent from my etch-a-sketch*
>
>
> On Thu, 14 Nov 2024 at 04:01, madscientistatlarge <
> [email protected]> wrote:
>
>>
>>
>>
>> "...trying to make digital files uncopyable is like trying to make water
>> not wet."
>> Bruce Schneier
>>
>>
>> Sent with Proton Mail secure email.
>>
>> On Wednesday, November 13th, 2024 at 8:18 PM, Spehro Pefhany <
>> [email protected]> wrote:
>>
>>> At 02:14 PM 2024-11-13, you wrote:
>>>
>>>> Do any of the books have syntax diagrams? Similar to what all the
>>>> pascal books had? I found those very, very useful when I was in
>>>> high school back in caveman days.
>>>
>>> Here you go, syntax of C in Backus-Naur form (BNF- now that brings
>>> back memories of Uni).
>>>
>>> The link says it was adapted from K&R 2nd edition's appendix.
>>>
>>> https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The syntax of C in
>> Backus-Naur form.htm
>>
>> Excellent, exactly what I was looking for.  Thanks!  I knew there had to
>> be a name but right now I'd probably stumble a bit trying to write in
>> pascal.
>>
>> --
>> 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.