Skip to content

Instantly share code, notes, and snippets.

View eduncan911's full-sized avatar

Eric Duncan eduncan911

View GitHub Profile

This is my response to an email asking about Domain-Driven Design in golang project.

Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.

That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.

Conclusions could be very different, if there was a different project, team or a story-teller.

Short story

@eduncan911
eduncan911 / gist:e325fc05b891691999be
Last active March 3, 2016 03:25
Git Pending Repos
# add this code to your .bashrc file
# gitpending() transverses from the current directory to
# inspect 1 directory level deep for any git repos that have
# pending changes to commit.
function gitpending()
{
for d in */ ; do
pushd $d > /dev/null
DIRNAME=$(basename "$d")
@eduncan911
eduncan911 / gist:cd250bc78a4465c3b719
Created October 10, 2014 15:55
'git rebase' instead of 'git pull'
@eduncan911
eduncan911 / main.go
Created July 27, 2014 00:27
Go/Reading Console Inputs
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
@eduncan911
eduncan911 / lenovo-helix-end-insert-key-swap.reg
Created July 12, 2014 14:39
Lenovo Helix End/Insert Key Swap
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,52,e0,4f,e0,4f,e0,52,e0,00,00,00,00
@eduncan911
eduncan911 / Octopress\Rakefile
Last active August 29, 2015 14:00
Isolate all posts so you can work on the styling and other pages.
# add this to your Rakefile for your Jekyll or Octopress source.
# you can then call it like this:
#
# $ rake isolate_posts
#
# remember, do NOT 'git add .' because your posts will be deleted (stashed) in
# a git-ignored directory!
#
# when you are ready to commit, the workflow should be like:
#
@eduncan911
eduncan911 / Octopress\blogml.rb
Last active September 22, 2022 23:51
Octopress (and Jekyll) BlogML importer. See revision history for my changes.
# BlogML import script originally sourced from:
# https://github.com/philippkueng/philippkueng.github.com/tree/30ef1570f06d33938b18d5eee7767d6641b9a779/source/_import
# Best post I could find about how to use it was here:
# http://philippkueng.ch/migrate-from-blogengine-dot-net-to-jekyll.html
#
# how to install
# --------------
# mkdir source/_importer
# cp blogml.rb to the source/_importer/ you created above
# cp your BlogML.xml to the same source/_importer/ directory
@eduncan911
eduncan911 / MyBB\web.config
Last active August 29, 2015 13:57
web.config configuration for redirects for MyBB w/Google SEO plugin on IIS 8 and Windows Azure Web Sites
<?xml version="1.0" encoding="UTF-8"?>
<!--
version 1.0
to use, make sure to change the following:
1) replace "www.MyDomain.com/forum/" with the actual url of your site. Such
as "www.acmecorp.com/" or "www.acmecorp.com/forum/".