Comment on: What do you guys think of NASA's programming guidelines? Are they too strict or do they make sense when code correctness is life-or-death?
1 18 Jul 2015 17:05 u/Majestic12 in v/programmingComment on: In your opinion, what are the absolute essential vim plugins and vimrc configuration?
Janus is nice, it is actually a combination of a lot of plugins, most notably tab completion with SuperTab and Syntastic for code checking, and a lot of customization.
You can use Janus directly, or simply look at the plugins and conf it contains to find cool stuff to use yourself.
A little bit of advice I give to everyone interested in vim : once you're confortable with the basic stuff, learn to use macros. Trust me, it's awesome.
Comment on: What do you guys think of NASA's programming guidelines? Are they too strict or do they make sense when code correctness is life-or-death?
I actually think the 60 lines per function is a very good rule.
A function with that many lines will be much harder to read/understand than a regular sized function. It probably also contains repeated code.
Most of the time, this kind of function can be splitted in several smaller functions that will be much easier to test, read and understand. Doing so might also reveal code repetition that can factorized in a single function with parameters.
There are exception to everything of course, but I learned to code with a strong limitation of 25 lines per function and I believe it helped to improve the quality of my code dramatically.
They need to prove correctness of their code (checking tools, static analysis, yada yada), and I guess there are limitations regarding infinite loops and correctness.