Best_Practices icon indicating copy to clipboard operation
Best_Practices copied to clipboard

Sources of inspiration

Open szaghi opened this issue 10 years ago • 9 comments

Just a list (with no special order) of sources for inspiring us

feel free to correct/expand it

[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.

szaghi avatar Jan 11 '16 12:01 szaghi

  • 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.)

zbeekman avatar Jan 11 '16 15:01 zbeekman

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.)

zbeekman avatar Jan 12 '16 12:01 zbeekman

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:

milancurcic avatar Jan 12 '16 15:01 milancurcic

Modern Fortran in Practice is also interesting, although some of its styles are more Fortran 90 oriented.

cmacmackin avatar Jan 12 '16 15:01 cmacmackin

@milancurcic I don't know why I didn't mention those two, they are my bible... I guess I assumed everyone knows about them.

zbeekman avatar Jan 12 '16 15:01 zbeekman

I think that Clean code can also be a good book for general programming style and conventions.

victorsndvg avatar Jan 12 '16 16:01 victorsndvg

There's also "Code Complete" etc. but IMO it's not concise enough to be of practical use, most of the time.

zbeekman avatar Jan 12 '16 16:01 zbeekman

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.

rouson avatar Jan 12 '16 19:01 rouson

In the interest of brevity and minimal duplication I'm going to delete @rouson's accidental posting here, since it is now here

zbeekman avatar Jan 12 '16 19:01 zbeekman