Skip to content

Instantly share code, notes, and snippets.

@sviataslau
sviataslau / Calculator.cs
Created January 30, 2013 07:02
Sample String Calculator TDD Kata 2 implementation. http://osherove.com/tdd-kata-2/ Based on Kata implementation from http://osherove.com/tdd-kata/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
namespace StringCalculator
{
public class Calculator : ICalculator
{
@alexpchin
alexpchin / Add_Existing_Project_To_Git.md
Created June 1, 2014 20:14
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@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