Find it here: https://github.com/bitemyapp/learnhaskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace ChannelZero | |
| { | |
| class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using NodaTime; | |
| using NPoco; | |
| namespace PocoNoda | |
| { | |
| public class NodaMapper : DefaultMapper | |
| { | |
| public override Func<object, object> GetFromDbConverter(Type DestType, Type SourceType) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (new-object System.Net.WebClient).Downloadfile("https://raw.github.com/github/gitignore/master/VisualStudio.gitignore", "$pwd\.gitignore") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace My.Common | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| public static class AsyncHelpers | |
| { | |
| /// <summary> |
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):
- Eric Evans' [What I've learned about DDD since the book]{http://www.infoq.com/presentations/ddd-eric-evans}
- Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
- Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
- Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
- Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
- Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht