Skip to content

jflopezfernandez/C-Standard-Practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C Standard Practices

Project repository where I mess around trying to test ideas I have for ideal design patterns in C

I've had this idea for a while because I see a lot of newcomers to C do things that really stopped being standard practice years ago. Unfortunately, many of us (myself included) learned C from books written in the late 80's or 90's. My goal is to explore design patterns and best practices suitable for modern C. This is just a fun side project of mine, but if it helps anyone modernize their code (or more importantly, their perception of C), then that's the best I could possibly hope for.

In the spirit of giving credit where credit is due, I got this idea from Jason Turner and his awesome C++ Best Practices project, which I totally recommend everyone check out. I don't intend on rivaling that project's greatness, but I definitely want to show any newcomers who might stumble across this humble but proud project that the code they read and the code they write can be very different, due in no small part to the fact that most books on C were written before today's Computer Science freshmen were even born. :)

Pull requests, comments, corrections, suggestions, and ideas are both welcome and wanted!

Best Practices

  1. Do not predeclare your loop counters
  2. Always check function values
  3. Always read the documentation
  4. Always write the documentation

About

Project repository where I mess around trying to test ideas I have for ideal design patterns in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published