Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View psamatt's full-sized avatar

Matt Goodwin psamatt

  • Barclays
View GitHub Profile
@psamatt
psamatt / Lecture
Last active August 29, 2015 14:22
Process of a teacher email students
<?php
class Lecture extends EventSourcedAggregateRoot
{
public function __construct(LectureId $id, StartTime $startTime) {
}
public function remindStudents()
{
$this->guardNotLAstDay();
@psamatt
psamatt / car
Created November 21, 2013 21:49
DDD Car entity
<?php
namespace CoreDomain\Car;
class Car
{
private $id;
private $make;
private $model;
private $registrationNumber;
@psamatt
psamatt / AnimalFarm.java
Created February 27, 2017 21:57
Generics usage
package com.example;
import java.util.HashMap;
final public class AnimalFarm {
private HashMap<String, Animal> animals = new HashMap<>();
public AnimalFarm() {
animals.put("dog", new Dog());