Guidelines for a safe coding experience

There are lots of tutorials for secure coding, but
I haven’t seen many hints on safe coding.
After another disaster that led to a full source code loss,
I started to write one and I just rediscovered it on my hard drive. Here it is:

  • Consider working on a disk image rather than on a harddisk, it will make
    recovery much easier since less space is needed to create a full dump.
  • Consider replacing your rm command with secure_rm, that waits for some time
    before starting to delete files. Alternativly use, a trashcan featured
    delete command.
  • Insert unique comments, it will help you when analyzing the disk dump
    while recovering.
  • Always use make, do not call any other command. Write targets
    to compile, run and clean.
  • Use a version control system and commit changes regularly. Do not
    forget to backup the repository.
  • Use a text editor that creates backup files. Do not delete those backup files.

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden / Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s