Skip to content

Instantly share code, notes, and snippets.

Matt Goodwin psamatt

Block or report user

Report or block psamatt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AnimalFarm.java
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());
@psamatt
psamatt / Lecture
Last active Aug 29, 2015
Process of a teacher email students
View Lecture
<?php
class Lecture extends EventSourcedAggregateRoot
{
public function __construct(LectureId $id, StartTime $startTime) {
}
public function remindStudents()
{
$this->guardNotLAstDay();
@psamatt
psamatt / car
Created Nov 21, 2013
DDD Car entity
View car
<?php
namespace CoreDomain\Car;
class Car
{
private $id;
private $make;
private $model;
private $registrationNumber;
You can’t perform that action at this time.