Skip to content

Instantly share code, notes, and snippets.

View rezamahdi's full-sized avatar
🎯
Focusing

Reza Mahdi rezamahdi

🎯
Focusing
  • Shiraz, Fars, Iran
View GitHub Profile
@rocarvaj
rocarvaj / .vimrc
Created April 27, 2012 21:28
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active June 14, 2024 02:58
Instructions how to install Debian using debootstrap
@wojteklu
wojteklu / clean_code.md
Last active July 4, 2024 15:48
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules