Skip to content

Instantly share code, notes, and snippets.

View victkarangwa's full-sized avatar

Victor KARANGWA victkarangwa

View GitHub Profile
@dstreet
dstreet / tictactoe.js
Last active July 28, 2022 05:52
Simple Tic Tac Toe Game in Node
var readline = require('readline');
var TicTacToe = function(readline) {
/*
* Private API
* ------------------------------------------------------------------------
*/
var _rl = null
@wojteklu
wojteklu / clean_code.md
Last active July 28, 2024 04:41
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

@ann-mukundi
ann-mukundi / Working with branches
Created January 23, 2018 13:26
CP-readiness: git branches
Create a github account here
Create a new repository on github with the name cp-readiness
Follow the instructions to push an existing repository from the command line
In your local machine, create a branch called recipes
Switch to the new branch
In a folder called recipe, create a file called tea.txt
Add the changes to staging
Push to the recipes branch