Skip to content

Instantly share code, notes, and snippets.

View joeltaylor's full-sized avatar

Joel Taylor joeltaylor

View GitHub Profile
@joeltaylor
joeltaylor / aprompt.png
Created August 2, 2022 13:58 — forked from mislav/aprompt.png
My zsh prompt. No oh-my-zsh needed
aprompt.png
@joeltaylor
joeltaylor / readme.txt
Created May 26, 2022 18:25 — forked from mowings/readme.txt
haproxy timing events
Timers provide a great help in troubleshooting network problems. All values are
reported in milliseconds (ms). These timers should be used in conjunction with
the session termination flags. In TCP mode with "option tcplog" set on the
frontend, 3 control points are reported under the form "Tw/Tc/Tt", and in HTTP
mode, 5 control points are reported under the form "TR/Tw/Tc/Tr/Ta". In
addition, three other measures are provided, "Th", "Ti", and "Tq".
Timings events in HTTP mode:
first request 2nd request
@joeltaylor
joeltaylor / service-objects.md
Created August 21, 2020 15:51 — forked from blaix/service-objects.md
Martin Fowler on Service Objects via the Ruby Rogues Parley mailing list

On Tue, Mar 12, 2013 at 1:26 PM, Martin Fowler martinfowlercom@gmail.com wrote:

The term pops up in some different places, so it's hard to know what it means without some context. In PoEAA I use the pattern Service Layer to represent a domain-oriented layer of behaviors that provide an API for the domain layer. This may or may not sit on top of a Domain Model. In DDD Eric Evans uses the term Service Object to refer to objects that represent processes (as opposed to Entities and Values). DDD Service Objects are often useful to factor out behavior that would otherwise bloat Entities, it's also a useful step to patterns like Strategy and Command.

It sounds like the DDD sense is the sense I'm encountering most often. I really need to read that book.

The conceptual problem I run into in a lot of codebases is that rather than representing a process, the "service objects" represent "a thing that does the process". Which sounds like a nitpicky difference, but it seems to have a real impact on how people us

SCRIPT /private/tmp/plugged/fzf.vim/autoload/fzf/vim.vim
Sourced 1 time
Total time: 0.002289
Self time: 0.002155
count total (s) self (s)
" Copyright (c) 2017 Junegunn Choi
"
" MIT License
"
@joeltaylor
joeltaylor / gist:264fd0ce88056672bcb7
Last active January 5, 2020 18:16
The Magical Marvels of MongoDB - Code Companion
//************************************
//
// Level 1 concepts
//
//************************************
// Basic data model (BSON)
{
_id: 1,
Route::get('/', 'HomeController@showWelcome');
Route::get('/', function()
{
return View::make('hello');
});