Tweet by thdxr
September 12, 2025
readable code is simple - you have primary functions that compose together a bunch of smaller functions when i wrote elixir this was natural to do i've realized after years in ts my habits eroded for the following reasons 1. extracting out logic into a function is more overhead because you have to write out argument types. sometimes these are complex inferred types you wouldn't have to articulate when logic is inline 2. lack of pipe operator - having a lot of small functions is less fun when you need to name intermediary variables to name every step 3. camel case - i hate camel case and small functions usually can't be one word. `checkUsage` vs `check_usage` trying to be more aware of this because it's biasing me towards fat unreadable functions
- Author
- thdxr
- Date
- September 12, 2025
- Canonical URL
- /tweets/thdxr-1966623643989143575-16adf5