Skip to content

Instantly share code, notes, and snippets.

@SzymonPobiega
SzymonPobiega / gist:5220595
Last active April 25, 2024 17:19
DDD/CQRS/ES/Architecture videos

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):

  1. Eric Evans' [What I've learned about DDD since the book]{http://www.infoq.com/presentations/ddd-eric-evans}
  2. Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
  5. Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
  6. Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht
@krisl
krisl / app.rb
Last active August 29, 2015 14:14 — forked from Integralist/app.rb
require "json"
require "sinatra/base"
class ApplicationController < Sinatra::Base
helpers ApplicationHelper
set :views, File.expand_path("../../views", __FILE__)
set :public_folder, File.expand_path("../../", __FILE__)
set :server, :thin
connections = []
@aBuder
aBuder / gist:bb9f3f5305170ff52948
Created March 18, 2015 14:10
Play-Wamp-Webrtc
/*
* Copyright (c) 2015 Alexander Buder . All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
var wamp_session = null;
var peer_connection= null;
@Daoro
Daoro / inspiration
Last active May 19, 2019 01:47 — forked from meodai/inspiration
Sexy Frontend
One-pager / Scroll:
- http://www.squarespace.com/home/coverpages
- http://www.apple.com/iphone/why-theres-iphone/
- https://spotify-tasterewind.com/
- http://antonandirene.com/
- http://www.werkstatt.fr/
- https://getbeagle.co/
- http://www.theverge.com/a/apple-watch-review
- https://www.trippeo.com/
- http://www.google.com/photos/about/?page=auto-backup
@MicheleBertoli
MicheleBertoli / demo.js
Created August 31, 2016 10:49
Erdux - Unpredictable state container for JavaScript apps
class DecrementAction extends Error {}
class IncrementAction extends Error {}
const reducer = (state, error) => {
switch (error.constructor) {
case DecrementAction:
return state - 1
case IncrementAction:
return state + 1
@surma
surma / staleWhileRevalidate.js
Last active April 8, 2024 22:38
ServiceWorker that implements “Stale-while-revalidate”
// Implements stale-while-revalidate
self.addEventListener('fetch', event => {
const cached = caches.match(event.request);
const fetched = fetch(event.request);
const fetchedCopy = fetched.then(resp => resp.clone());
// Call respondWith() with whatever we get first.
// If the fetch fails (e.g disconnected), wait for the cache.
// If there’s nothing in cache, wait for the fetch.
// If neither yields a response, return a 404.
@fogleman
fogleman / index.html
Created January 1, 2017 03:55
Position, Velocity, Acceleration, Jerk
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>body {padding: 0; margin: 0; overflow: hidden;}</style>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.5/p5.min.js"></script>
@Fordi
Fordi / console.lineGraph.js
Last active December 29, 2022 23:51
Draw a line graph in Chrome/Chromium's dev console
/**
* Draw a line graph in Chrome/Chromium's dev console
* Examples:
* console.lineGraph([[5, 3], [10, 8], [-10, 1], [7, -3], [3, 0]], 320, 240);
* console.lineGraph(Math.sin, 420, 240, -Math.PI, Math.PI, 0.001);
* console.lineGraph(function (x) {
return [
Math.sqrt(1 - x*x) + Math.abs(x) - 0.75,
(Math.abs(x)-Math.sqrt(1 - x*x)) / 2 - 0.25
];
@danielearwicker
danielearwicker / CudoEvent.cs
Created January 21, 2017 21:52
Cudo (Create, Update, Delete, Observe) - subscribers get Create events to recreate current contents, followed by subsequent updates
namespace Cudo
{
public class CudoEvent<TRecord>
{
public CudoEvent(CudoEventType type, TRecord record)
{
Type = type;
Record = record;
}
@swlaschin
swlaschin / ndclondon17_fp_track.md
Last active July 10, 2017 11:04
Functional Track talks from NDC London 2017

Functional Track talks from NDC London 2017

Also, here is the list of all videos from NDC London 2017:

Wednesday 2017-01-18