Skip to content

Instantly share code, notes, and snippets.

View gotjosh's full-sized avatar
🎯
Focusing

gotjosh gotjosh

🎯
Focusing
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

Pixel Perfect Tree - .NET Full Stack

Hi there!

We are Pixel Perfect Tree. We're a company that's 100% self bootstrap, we're having an amazing year and continue to grow on a steady pace.

Our quest searching for a passionate full-stack .NET developer with an interest in Ruby has just begun.

You'll be expected to write clean code but also provide your insight on projects and technologies used on them.

@gotjosh
gotjosh / how.rb
Last active April 22, 2016 14:45
# Current
def initialize(resource = nil)
@resource = resource
end
private
def resource
@resource ||= ProductResource.new(connection: ExternalAdapter.instance.connection)
class Event < ActiveRecord::Base
enum format: [:standard, :draft, :cube, :pauper, :modern, :board_games, :commander, :free_for_all, :sealed_deck, :two_headed_giant]
validates :title, presence: true
validates :date, presence: true
validates :format, presence: true
validates :price, presence: true
scope :weekly, -> { where(date: Date.today..6.days.from_now).order(date: :asc).limit(6) }
end

Keybase proof

I hereby claim:

  • I am gotjosh on github.
  • I am gotjosh (https://keybase.io/gotjosh) on keybase.
  • I have a public key ASCBd6Tht6Om-UwNHP_Uuu2OzWC6Pvm1PjqbQdu8ChR86Ao

To claim this, I am signing this object: