On Good Domain Decomposition

Or How to craft objects that work

Vadim Samokhin
Sep 16, 2017 · 4 min read

Get to know your problem

Decompose your problem space

Practical consequences

Metaphors to guide you through objects finding

Example

// outputs true

var_dump(
(new Max(
new Future(
new Past(
new FromMilliseconds(
(new ToMilliseconds(
new FromISO8601('2017-08-18T15:08:13+04:00')
))
->value()
),
new ISO8601Interval('P1Y2M21DT24H56M26S')
),
new ISO8601Interval('PT23H')
),
new Now()
))
->equalsTo(new Now())
);

Summing it up

HackerNoon.com

how hackers start their afternoons.

Vadim Samokhin

Written by

Aspiring object thinker. Hire me! i.am.on.medium@gmail.com

HackerNoon.com

how hackers start their afternoons.