- Bridge the communication gap between business and technology
- Faster feedback
This file contains 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
Handlers | |
In Domain Driven Design, there are a series of small services that sit over the top of the domain. These services known as Application Services act as a facade over the the domain model. In CQRS based systems a similar pattern is used but it has been slightly refined. The refining of this pattern can be employed successfully in both systems that use CQRS and systems that stay using a single model for supporting reads and writes as many of the advantages come from simplicity of composition. To show Command Handlers, it is best to start with a typical Application Service and refactor our way to a Command Handler. | |
The Application Service | |
A stereotypical Application Service represents a given use case of the model. The Application Service itself generally does not directly implement the use case but instead coordinates objects from the domain to meet the requirements of the use case. This sounds like a small distinction but it is a very important one, Application Services generally should not have "l |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.technbolts</groupId> | |
<artifactId>nethack</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains 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
package sequencer; | |
import java.util.Queue; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.atomic.AtomicBoolean; | |
import java.util.function.Supplier; | |
/** | |
* @author <a href="http://twitter.com/aloyer">@aloyer</a> |
This file contains 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
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; | |
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; | |
import org.springframework.context.ApplicationContextInitializer; | |
import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
import org.springframework.core.io.Resource; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Map; |
This file contains 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
Scenario: Create an invoice | |
Given an authenticated admin | |
And a new client with an associated work unit | |
When the global invoiced is set with a valid value | |
Then the new client should not appear anymore |
This file contains 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
//--- Constraint.java | |
package grid; | |
import java.util.regex.Pattern; | |
/** | |
* @author <a href="http://twitter.com/aloyer">@aloyer</a> | |
*/ | |
public class Constraint { | |
private final Pattern pattern; |
List all user based library and clean up!
$ ghc-pkg list > ghc-pkg.list && subl ghc-pkg.list
$ ghc-pkg unregister --user --force unordered-containers-0.1.4.6
$ ghc-pkg unregister --user --force vector-0.9.1
$ ghc-pkg unregister --user --force xml-conduit-0.5.2
$ ghc-pkg unregister --user --force xml-types-0.3.1
$ ghc-pkg unregister --user --force yaml-0.5.2
$ ...
This file contains 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
package steam.util | |
import collection.mutable.ListBuffer | |
/** | |
* A glob pattern is specified as a string and is matched against other strings, | |
* such as directory or file names. Glob syntax follows several simple rules: | |
* <ul> | |
* <li> | |
* An asterisk, *, matches any number of characters (including none). |
NewerOlder