Skip to content

Instantly share code, notes, and snippets.

View champi-dev's full-sized avatar
👨‍💻
#opentowork

Daniel champi-dev

👨‍💻
#opentowork
View GitHub Profile
@champi-dev
champi-dev / largotosmall.md
Created February 8, 2023 04:12
Split large code into many small files

Largo to Small

Yes largo, that's the name of this

The idea behind this is that in any case that you might find yourself having more than 40 - 80 lines of code in a single file you should split that file into smaller (therefore more readable) files.

How to

@champi-dev
champi-dev / composing-software.md
Created February 26, 2020 16:09 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

@champi-dev
champi-dev / machine.js
Created February 8, 2020 18:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions