Skip to content

Commit 2e37cf8

Browse files
committed
docs: move once again
1 parent d187d90 commit 2e37cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/blog/complexity-was-never-in-the-logic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ The logic itself was never complex. Each subroutine is basically a one-page func
1212

1313
I wanted one source of truth. So I turned the cheatsheet into [pyrung](https://ssweber.github.io/pyrung/), a Python library where `with Rung(Start): latch(Motor)` maps directly to a ladder rung. The scan cycle runs for real, timers accumulate, rung order matters. You test with pytest, step through scans in VS Code.
1414

15-
The first thing I noticed was that I could see the whole program. Forty subroutines fit in a scroll. Grep for a tag, rename it everywhere, diff what changed. None of that is a feature I built. That's just what happens when your code is text. When I showed it to a coworker, they could see the same ladder structure they already knew. It wasn't a foreign language, it was rungs in a different notation.
16-
1715
Three rungs that copy a command value based on a state. In pyrung, that's six lines:
1816

1917
```python
@@ -34,6 +32,8 @@ In Click, that's an entire screen:
3432

3533
![The same three rungs in the Click editor, filling the full window with contacts, branch lines, and copy instruction blocks](state-machine-snippet.png)
3634

35+
The first thing I noticed was that I could see the whole program. Forty subroutines fit in a scroll. Grep for a tag, rename it everywhere, diff what changed. None of that is a feature I built. That's just what happens when your code is text. When I showed it to a coworker, they could see the same ladder structure they already knew. It wasn't a foreign language, it was rungs in a different notation.
36+
3737
Then I spent a month [reverse engineering Click's clipboard format](https://ssweber.github.io/blog/these-arent-the-rungs/) so I could round-trip without retyping anything. Export from Click, work in Python, paste back. Bugs I'd been chasing in the editor jumped out in minutes once the logic was laid flat as text.
3838

3939
I still write ladder. I still think in rungs. I just stopped fighting the editor to do it.

0 commit comments

Comments
 (0)