Applying NASA Coding Standards to JavaScript

Applying NASA Coding Standards to JavaScript

JSConf via YouTube Direct link

Intro

1 of 13

1 of 13

Intro

Class Central Classrooms beta

YouTube playlists curated by Class Central.

Classroom Contents

Applying NASA Coding Standards to JavaScript

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Unification - effective method to decrease diversity. Aim for unification is to place elements in particular order building strict system which is comfortable to use.
  3. 3 The same works for engineering Unification never stops
  4. 4 Unification Decreases development cost standardizing development flow and technologies stack
  5. 5 Do one thing Long functions: less readable, not reusable, harder to test, harder to reactor
  6. 6 Predictability • If you want to write reliable code-drop to write cool one and write predictable • Define coding standard and follow it . Use static analysis to support standard and reduce chance for…
  7. 7 Do not use dynamic memory allocation after initialization
  8. 8 Test well • Higher tests density is less defects you get • Minimal amount of tests is 2 per function • Watch for anomalies in system state during run time. Generate and handle errors in case of criti…
  9. 9 Data objects must be declared at the smallest possible level of scope
  10. 10 The return value of non-void functions must be checked by each calling function, and the validity of parameters must be checked inside each function
  11. 11 The use of pointers should be restricted. Specifically, no more than one level of dereferencing is allowed. Function pointers are not permitted
  12. 12 All code must be compiled, from the first day of development, with all compiler warnings enabled
  13. 13 If red? Do not panic. Simply, prioritize, refactor and add tests piece by piece.

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.