Skip to content

Instantly share code, notes, and snippets.

View jordanbyron's full-sized avatar

Jordan Byron jordanbyron

View GitHub Profile
@jordanbyron
jordanbyron / SKILL.md
Created May 23, 2026 20:48
Domain Modeling 37Signals Style AI Skill
name domain-modeling
description Use when designing models, planning features, structuring controllers, or making architectural decisions in a Rails app. Triggers on questions like "how should I model X", "where does this logic go", "should I make a service object", adding new resources, or restructuring existing domain logic. Use this skill whenever the user is thinking about where behavior lives in their app.

Domain Modeling

This skill guides domain modeling decisions. The approach favors rich models, vanilla Rails conventions, and pragmatic simplicity over architectural ceremony.

The principles here are strong defaults, not commandments. Sometimes the right call is something different. Trust your judgment and the user's context.

@jordanbyron
jordanbyron / SKILL.md
Created May 23, 2026 20:46
A philosophy of software design AI Skill

name: philosophy-of-software-design description: > Applies the principles from "A Philosophy of Software Design" by John Ousterhout to guide code development, code review, refactoring, and architectural decisions. The central thesis: complexity is the root cause of most software problems, and good design is about minimizing it through deep modules, information hiding, and strategic thinking. Use this skill whenever writing new code, reviewing code, refactoring, designing APIs or modules, discussing architecture, splitting or combining classes/methods, naming things, writing comments, handling errors,

import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
collection = undefined
}
@jordanbyron
jordanbyron / Effect.js
Created August 29, 2016 18:11 — forked from brentvatne/Effect.js
redux-saga alternative with async/await?
/**
* @providesModule Effects
* @flow
*/
import { Linking } from 'react-native';
import AppDataApi from 'AppDataApi';
import Actions from 'Actions';
import ActionTypes from 'ActionTypes';

Keybase proof

I hereby claim:

  • I am jordanbyron on github.
  • I am jordanbyron (https://keybase.io/jordanbyron) on keybase.
  • I have a public key ASBndbFYTgsqjlb6qcgJDc1XNPPqvCEDYL_Q20v5d57rMAo

To claim this, I am signing this object:

@jordanbyron
jordanbyron / EventSource.m
Created June 10, 2015 15:46
Server-Sent Events for React Native
#import "RCTBridge.h"
#import "RCTConvert.h"
#import "RCTEventDispatcher.h"
#import "EventSource/EventSource.h"
#import "EventSourceClient.h"
@implementation EventSourceClient
@synthesize eventSource;
@jordanbyron
jordanbyron / !instructions.md
Last active August 29, 2015 14:04
Installing Ruby 2.1.2 w/ OpenSSL 1.0.1h
  1. Download & extract openssl-1.0.1h
cd ~/src
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar -xzvf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
  1. Configure OpenSSL
@jordanbyron
jordanbyron / whoisstraka.md
Last active January 2, 2016 11:59
Notes for the ARG at whoisstraka.com

whoisstraka.com

Possible ARG based on the book [S.][s-book] by Dorst / Abrams. The following are my initial notes based on the site and its contents.

HTML Comments

Please direct all correspondence to whoisstraka@gmail.com

using secure communications protocols and encryption

@jordanbyron
jordanbyron / application.html.haml
Last active December 29, 2015 09:39
Targeting specific controllers and actions in your assets while still leveraging the full benefits of the asset pipeline
!!! 5
%html{:lang => 'en'}
%head
%title My Awesome Rails App
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'
= csrf_meta_tag
%body{class: "#{controller.controller_name}-#{controller.action_name}"}
@jordanbyron
jordanbyron / a.rb
Last active December 20, 2015 19:59 — forked from tvladeck/a.rb
tooltips.each do |method, text|
define_method(method) { tooltip text['display'], text['tip'] }
end