Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Reading List

  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    10

    Reading List

    Haven't found this on the forum. If I missed it, please point me at it.

    Without a formal education in any modern computer languages, I've always been a 'fly-by-the-seat-of-my-pants' programmer, learning only what I needed to know to accomplish my current task. My code works, but it's inelegant and it looks and performs like a game of Jenga. This makes deciphering it later difficult and exhausting.

    I'd like to write better C++ Teensy code. I'll know I've reached my goal when I can create libraries that not only are functional for me, but clean and clear enough that others could easily use them. I've looked at the various Arduino "Style Guides". I've found them good at describing the end product, but they don't say "how" to get there. I'm trying to learn good coding practices.

    I'm currently listening to a book called "Clean Code", and I'm finding it useful. But it got me wondering if there might be more books out there that experienced Teensy users have found valuable for creating code that is understandable and maintainable even by others? I'm aware that simply reading book(s) won't be the answer, practice is needed, but it's a start.

    Thanks.

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,333
    Pretty outdated (first printed 1978) , but I love "Kernighan & Ritchie, The C Programming Language" Ritchie was the developer of "C", and this is the first book about it.
    Still today, its respected reference work. Mine is from 1988.

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,333
    That's a predecessor of this book as PDF: https://www.bell-labs.com/usr/dmr/www/ctut.pdf
    Still, it's not for the ANSI version of C - that came later. But still interesting :-)

    This memorandum is a tutorial to make learning C as painless as possible.


    I.e. it still uses the old style for function declarations:
    Code:
    count(buf,size)
     int size, buf[]; { .. }
    


    And a scanned manual from 1974:
    https://www.bell-labs.com/usr/dmr/www/cman74.pdf
    Last edited by Frank B; 10-15-2021 at 09:41 AM.

  4. #4
    Junior Member
    Join Date
    Nov 2019
    Posts
    10
    Thanks for the suggestion. I'm pretty sure I've got an old copy of K&R in a box in the basement. Time to dust it off, though I remember it being more of a reference than a tutorial on coding practices.

  5. #5
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,333
    Yes, that's right. But it has nice examples

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •