Skip to content

Instantly share code, notes, and snippets.

Happy Freelancing

Je m’appelle Thibaut Assus, j’ai 30 ans, je suis freelance en développement web et ma technologie de prédilection est le Ruby on Rails. J’ai maintenant un peu d’expérience dans le domaine du freelancing et ce document a pour but de partager avec vous une partie de cette expérience.

Mon parcours de développeur Ruby

@rhwy
rhwy / 01_cart.cs
Last active December 26, 2015 19:19
Following my tweet discussion https://twitter.com/rhwy/status/394729592118071296, let's put some code to clarify inputs. The code is in C# but near to pseudo-code and other languages to be clear for all (I hope :-) I tend to be the more specific as possible but sometimes I smell that it should be over-engineered too. As usual it depends on the c…
//Imagine you have a Cart with items you can add into
public class Cart
{
public int Id {get;private set}
public List<CartItem> Items {get;private set}
public Cart(int id) { Id = id;}
//while writing your tests, you (want to) arrive to these checks (3 situations to test)
public void AddItem(CartItem item) {
@jbevain
jbevain / gist:647076
Created October 26, 2010 15:14
Node dumper using y combinator
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Node {
public string Text { get; private set; }
public IList<Node> Children { get; private set; }