Sources of inspiration
Just a list (with no special order) of sources for inspiring us
feel free to correct/expand it
- Fortran 2003 standard
- Modern Fortran: Style and Usage
- The Fortran Company Styles Guidelines
- @certik 's Fortran best practices.
- European Standards For Writing and Documenting Exchangeable Fortran 90 Code
- Fortran Coding Standard for the Community Atmospheric Model
- Google Group CLF thread
- The Practice of Programming1
- The zen of python2
- zen of Fortran3
- Modern Fortran Explained4
- Scientific Software Design - The Object-Oriented Way5
- Modern Fortran in Practice6
- Clean code
[1] a book of Brian W. Kernighan (of Princeton University and Bell Labs, the "K" in awk) and Rob Pike (of Bell Labs, inventor of C etc.).
[2] with adaptations to make it suitable to Fortran.
[3] working in progress, thus incomplete; ugly, thus consider to ignore it.
[4] a book of Metcalf, Reid, and Cohen. Mainly in the textbook format for programmers new to Fortran, it has many a great advice on writing better and more correct programs.
[5] a book of Rouson, Xia, and Xu. A lot of stuff on design patterns and their implementation in Fortran (with complementary examples in C++).
[6] interesting book, although some of its styles are more Fortran 90 oriented.
- The zen of python (with adaptations to make it suitable to Fortran)
- @szaghi's zen of Fortran (He is too modest to add it, and has concerns that he may be contributing "worst" practices, or that it is too heavily favoring his personal preferences, but I think it's a great starting point.)
I can't believe I forgot this one, it is a MUST READ if you're a programmer:
-
The Practice of Programming by Brian W. Kernighan (of Princeton University and Bell Labs, the "K" in
awk) and Rob Pike (of Bell Labs, inventor of C etc.)
Interestingly, nobody mentioned so far my favorite Fortran book:
- Modern Fortran Explained by Metcalf, Reid, and Cohen. Mainly in the textbook format for programmers new to Fortran, it has many a great advice on writing better and more correct programs.
And what I am currently reading and learning a lot from:
- Scientific Software Design - The Object-Oriented Way by Rouson, Xia, and Xu. A lot of stuff on design patterns and their implementation in Fortran (with complementary examples in C++).
Modern Fortran in Practice is also interesting, although some of its styles are more Fortran 90 oriented.
@milancurcic I don't know why I didn't mention those two, they are my bible... I guess I assumed everyone knows about them.
I think that Clean code can also be a good book for general programming style and conventions.
There's also "Code Complete" etc. but IMO it's not concise enough to be of practical use, most of the time.
My most recent post was meant for the Best Practices list. This is the second time today I've posted something to the wrong list. Possibly I'm experiencing information overload.
In the interest of brevity and minimal duplication I'm going to delete @rouson's accidental posting here, since it is now here