Skip to content

Instantly share code, notes, and snippets.

View muub's full-sized avatar

Matthew William Boatman muub

  • Nordstrom
  • Los Angeles, CA
View GitHub Profile
@muub
muub / NewInPHP56.md
Last active August 29, 2015 14:21
What's new in PHP 5.6
@muub
muub / ColorSizeBigBang
Created November 14, 2014 22:33
Logic for Creating All the Size Color Combinations
<?php
// 1. Find All Possible Size Color Combinations
// 2. Determine which of those skus need to be created.
// 3. Treat that set as the style.
main() {
...
$allSizeColorCombos = $this->GenerateAllSizeColorCombinationsFrom($newSkus and $existingSkus);
# Utilities for quickly accessing frequently used directories in bash.
# Usage:
# $ cd /path/to/project/src/
# $ mark code # Will create a new shortcut.
# # Becomes interactive if a shortcut already exists
# # m is an alias for mark. You can also `m code`
#
# $ code # From now on, running this anywhere in the shell
# # will put you in /path/to/project/src/code
@muub
muub / cadence.md
Last active December 31, 2015 13:19
Sprint Team Cadence

2 Hour planning meeting after lunch on Monday. 15 minute stand ups everyday sprint or not.

The first week is devoted exclusively to sprint work.

By the end of Tuesday the goal sprint work should be code complete and getting verified.

Developers continue to iterate on bug fixes and lower priority sprint work for the remaining two days.

Thursday afternoon "Meet with Product & Stakeholders" and get a Sprint Board up with the possible sprint. Let people think about the things they will be working on.

@muub
muub / Leaderless_Teams.md
Last active December 18, 2015 03:19
Leaders are self selecting.

Leaderless Teams

Promotions are actually a bad thing for teams as a whole.

Leaders are self selecting. Leaders are leaders on their own before being promoted. Promotions create a layer of hierarchy that doesn't need to exist and creates an institutional bone spur which will likely persist against all better judgement. The paths of an org chart should be smooth and flat. Lead positions are created because Directors aren't doing their job.

Furthermore, the very fact that Leads are explicitly assigned this role of "Leader" overshadows their natural abilities at being a leader. Naming only one person as the "Leader" implies no one else can take up leadership on any thing else, even if they are better at the task. Good Leaders insist with all their might that domain experts lead in the domains of their greatest expertise. Unfortunately personalities often conflict with logical selfs. The leadership load puts unfair pressure on Lead Engineers to be all things to all people. Instead of allowing people's natural

@muub
muub / Any Argument for Broken Line if else formatting
Created June 5, 2013 19:59
An argument for breaking your if else's by line.
$is_deprecated_paymethod = $this->isDeprecatedPaymethod($line_item->return_reason_type);
$is_original_payment = ($line_item->return_payment_preference == Halo_Return2_LineItem::RETURN_PAYMETHOD_ORIGINAL);
$remaining_chargable = $this->getRemainingChargeable($line_item->order_id, $line_item->return_id);
//This Style of formatting hides what's really going on.
if ($is_deprecated_paymethod !== false || $line_item->return_payment_preference == Halo_Return2_LineItem::RETURN_PAYMETHOD_ORIGINAL)
{
if ($is_deprecated_paymethod === true || $is_original_payment)
{
$line_item->charged = min($remaining_chargable, $line_item->total);
@muub
muub / Ideal_Sprint.md
Last active December 16, 2015 20:39
An Explanation of an Ideal Sprint

#Agile Development

Where Everything is made up and the points don't matter.

I'd like to start by having you read the Agile Manifesto. (http://agilemanifesto.org)

We are uncovering better ways of developing software by doing it and helping others do it. >Through this work we have come to value: