NASA’s 10 rules for developing safety-critical code

1: Restrict all code to very simple control flow constructs. Do not use GOTO statements, setjmp or longjmp constructs, or direct or indirect recursion.

2: All loops must have a fixed upper bound. It must be trivially possible for a checking tool to statically prove that a preset upper bound on the number of iterations of a loop cannot be exceeded. If the loop-bound cannot be proven statically, the rule is considered violated.

3: Do not use dynamic memory allocation after initialization.

4: No function should be longer than what can be printed on a single sheet of paper (in a standard reference format with one line per statement and one line per declaration.) Typically, this means no more than about 60 lines of code per function.

5: The assertion density of the code should average a minimum of two assertions per function. Assertions must always be side effect-free and should be defined as Boolean tests.

6: Data objects must be declared at the smallest possible level of scope.

7: Each calling function must check non-void function return values, and the validity of parameters must be checked inside each function.

8: Preprocessor use must be limited to the inclusion of header files and simple macro definitions. Token pasting, variable argument lists (ellipses), and recursive macro calls are not allowed.

9: The use of pointers should be restricted. Specifically, no more than one level of dereferencing is allowed. Pointer dereference operations may not be hidden in macro definitions or inside typedef declarations. Function pointers are not permitted.

10: All code must be compiled, from the first day of development, with all compiler warnings enabled at the compiler’s most pedantic setting. All code must compile with these setting without any warnings. All code must be checked daily with at least one—but preferably more than one—state-of-the-art static source code analyzer, and should pass the analyses with zero warnings.

Password, It can Save/Safe Life

[Do this now]

We use password to authenticate our self in this digital age, But do we think about authenticating the person whom we sent to pick our Kid during difficult time, A Password with your Kid can save/safe his/her life. Do this right away and remember idea this for your lifetime and repeat. Do remember to change the passwords like we do.

1. Testimony (Via Facebook)

We did this with both of our children. Thank God they never had to use it, but my son had a friend who did. She told a teacher “He doesn’t know the password, I can’t go with him.” Children are smarter than people sometimes give them credit for.

2. Learn about Password

A method to memorize a complex password is to remember a sentence like ‘This year I go to Italy on Friday July 6!‘ and use the first characters as the actual password. In this case TyIgtIoFJ6!‘.

In 2013, Google released a list of the most common password types, all of which are considered insecure because they are too easy to guess (especially after researching an individual on social media)

  • The name of a pet, child, family member, or significant other
  • Anniversary dates and birthdays
  • Birthplace
  • Name of a favorite holiday
  • Something related to a favorite sports team
  • The word “password”

Read the article about Password from Wikipedia, the free encyclopedia.

Teach your Children

Here is a list of things you need to teach your Child(ren) at early age:

1: Warn your Girl Child Never to sit on anyone’s laps no matter the situation including uncles.

2: Avoid Getting Dressed in front of your child once he/she is 2 years old. Learn to excuse them or yourself.

3. Never allow any adult refer to your child as ‘my wife’ or ‘my husband’

4. Whenever your child goes out to play with friends make sure you look for a way to find out what kind of play they do, because young people now sexually abuse themselves.

5. Never force your child to visit any adult he or she is not comfortable with and also be observant if your child becomes too fond of a particular adult.

6. Once a very lively child suddenly becomes withdrawn you may need to patiently ask lots of questions from your child.

7. Carefully educate your grown ups about the right values of sex . If you don’t, the society will teach them the wrong values.

8: It is always advisable you go through any new Material like cartoons you just bought for them before they start seeing it themselves.

9. Ensure you activate parental controls on your cable networks and advice your friends especially those your child(ren) visit(s) often.

10. Teach your 3 year olds how to wash their private parts properly and warn them never to allow anyone touch those areas and that

includes you (remember, charity begins from home and with you).

11: Blacklist some materials/associates you think could threaten the sanity of your child (this includes music, movies and even friends and families).

12. Let your child(ren) understand the value of standing out of the


13: Once your child complains about a particular person, don’t keep quiet about it.

Take up the case and show them you can defend them.

Remember, we are either parents or parents-to-be.