Skip to content

Instantly share code, notes, and snippets.

View scally's full-sized avatar
🏠
Working from home

Sean Scally scally

🏠
Working from home
  • Greater Seattle Area
  • 03:39 (UTC -07:00)
View GitHub Profile
@scally
scally / strats.md
Last active September 19, 2022 21:16
Strats - Microservice/Microapp in 4 different languages

Strats

An experiment in development tool fitting

For a presentation I built around how learning new programming languages can help you develop new skills and framings for problems, I ended up building a simple app but with four different languages and frameworks.

The app/service is extremely trivial, around scheduling whose turn it is to run a standup for a small agile team, but its purpose is to be interesting enough to be illustrative while also fading away from the foreground to examine the parts of its construction more closely.

I chose Javascript for my control and then three experiments in ML-decendent languages that all support a similar set of features but with differing syntaxes and ecosystems

@scally
scally / please_dont_use_di.js
Last active April 25, 2020 00:49
Please don't use dependency injection frameworks in modern Typescript/Javascript
/*
If you are using dependency injection in Typescript/Javascript under the pretense that
you are doing anything other than overengineering and making your life and your team's life
harder, please read this.
*/
// The code below doesn't care what `logger` is, only that it exports `log`!
// This creates a test seam / interface behind which you can replace it with ANYTHING!
// You only care that the thing being exported has a `log` function!
import { log } from './logger'
@scally
scally / apollo-boost+0.1.23.patch
Last active January 8, 2019 23:53
Apollo-Boost with Subscriptions
patch-package
--- a/node_modules/apollo-boost/src/index.ts
+++ b/node_modules/apollo-boost/src/index.ts
@@ -3,21 +3,24 @@ export * from 'apollo-client';
export * from 'apollo-link';
export * from 'apollo-cache-inmemory';
-import { Operation, ApolloLink, Observable } from 'apollo-link';
+import { Operation, ApolloLink, Observable, split } from 'apollo-link';
import { HttpLink } from 'apollo-link-http';
@scally
scally / react-native+0.57.7-hooks.1.patch
Last active January 5, 2019 06:37
React Native patch-package patch for disabling image filtering, since pixel filtering can make pixel art muddy.
patch-package
--- a/node_modules/react-native/Libraries/Image/RCTImageView.h
+++ b/node_modules/react-native/Libraries/Image/RCTImageView.h
@@ -21,6 +21,7 @@
@property (nonatomic, assign) UIImageRenderingMode renderingMode;
@property (nonatomic, copy) NSArray<RCTImageSource *> *imageSources;
@property (nonatomic, assign) CGFloat blurRadius;
+@property (nonatomic, assign) Boolean disableFiltering;
@property (nonatomic, assign) RCTResizeMode resizeMode;