Skip to content

Instantly share code, notes, and snippets.

View wesselej's full-sized avatar

Erik Wessel wesselej

View GitHub Profile
@wesselej
wesselej / _flexboxgrid.scss
Last active October 24, 2019 20:11
PG Flexbox Grid
@function rem($values, $base: null) {
$rem-values: ();
$count: length($values);
$base: 16px;
@if $count==1 {
@return -zf-to-rem($values, $base);
}
@for $i from 1 through $count {
@wesselej
wesselej / practical_oo_design.md
Last active October 23, 2018 18:51 — forked from brianstorti/gist:3839690
Practical Object Oriented Design in Ruby

Practical Object Oriented Design in Ruby

Design that anticipate specific future requirements almost always end badly.
Practical design does not anticipate what will happen to your application, it merely accepts that something
will and that, in the present, you cannot know what. It does not guess the future; it preserves your options for accommodating the future.
It doesn't choose; it leaves you room to move.
The purpose of design it to allow you to do it later and its primary goal is to reduce the cost of change.

Design is more the art of preserving changeability than it is the act of achieving perfection.