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
@ChrisMcKee
ChrisMcKee / AsyncHelper.cs
Last active December 6, 2023 11:37
AsyncHelpers to simplify calling of Async/Task methods from synchronous context. (use https://github.com/aspnet/AspNetIdentity/blob/master/src/Microsoft.AspNet.Identity.Core/AsyncHelper.cs this is ancient code)
namespace My.Common
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public static class AsyncHelpers
{
/// <summary>
@motowilliams
motowilliams / DownloadVSGitIgnore.ps1
Last active February 28, 2016 19:43
Download VS .gitignore from GitHub via Powershell
(new-object System.Net.WebClient).Downloadfile("https://raw.github.com/github/gitignore/master/VisualStudio.gitignore", "$pwd\.gitignore")
@trey
trey / software-2014.md
Created January 2, 2014 00:15
Software I’m excited about using in 2014
Date:	January 1, 2014 at 5:35 PM
Tags:	Blog
Location:	Barnes & Noble, Charleston, South Carolina, United States
Weather:	48° Rain
Starred

Software I’m excited about using in 2014

[YNAB][1]

@mattjohnsonpint
mattjohnsonpint / NodaMapper.cs
Created January 15, 2014 07:59
NPoco mapper for NodaTime
using System;
using NodaTime;
using NPoco;
namespace PocoNoda
{
public class NodaMapper : DefaultMapper
{
public override Func<object, object> GetFromDbConverter(Type DestType, Type SourceType)
{
@bitemyapp
bitemyapp / gist:8739525
Last active May 7, 2021 23:22
Learning Haskell
exception ItemAlreadyExists of string
exception ItemNotFound of string
exception DomainError of string
type Command =
| CreateInventoryItem of Id: int
| RenameInventoryItem of Id: int * Name: string
| RemoveItemsFromInventory of Id: int * Amount: int
| AddItemsToInventory of Id: int * Amount: int
| DeactivateInventoryItem of Id: int
@mhinze
mhinze / ElasticSearchIntegrationTestSetupFixture.cs
Created April 10, 2014 13:46
Integration testing elasticsearch take 1
using System;
using NUnit.Framework;
using Search.QueryUnderstanding.Api.Application;
[SetUpFixture]
public class ElasticSearchIntegrationTestSetupFixture
{
private readonly ElasticSearchTestClient client = new ElasticSearchTestClient(new ElasticSearchConfiguration());
private readonly ElasticSearchTestContext context = new ElasticSearchTestContext();
public class StructureMapDependencyResolver : ServiceLocatorImplBase
{
private const string StructuremapNestedContainerKey = "Structuremap.Nested.Container";
public IContainer Container { get; set; }
private HttpContextBase HttpContext
{
get
{
// All the user to register where the context comes from
@yreynhout
yreynhout / ChannelZero.cs
Last active December 3, 2015 18:33
Poor man's messaging
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace ChannelZero
{
class Program
{