I like it. IIFEs always make me nervous because they look like they beg to be removed if you don't know why they are used. Using an explicit function such as `run` looks much more intentional, and provide a single intuitive place (the documentation of the `run` function) to explain the pattern.
Yeah that is the thing that has me confused. I specify the exact files with the @ sign and it still gets caught up on wanting to run batch commands to search for specific patterns. Do you use Sonnet or Opus?
the name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic
The name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic
EDIT: It seems based on other comments you are genuinely unaware of how it sounds, which is totally fine - I feel someone should let you know it sounds like "peg me" or "smegma", which uh... well, ask an LLM what they mean, I suppose. I don't particularly want that in my HN comment history. :D
The name Pegma is a play on words that combines: "peg" (peg, token) is the main element of the game and "theorema", which is associated with mathematical rigor and logic
With Auth.js, I assume they control the database layer? I.e. can i supply my own functions for reading and writing to the DB, or I have to use their Kysely stuff?
Yeah I remember reading this post, thinking "whatever" about it, and then finding myself implementing and using it regularly-ish.
Usually I use it to encapsulate a complicated initialisation of a variable, where some mutation is needed/easier. I still want colocation for readability, but I dont want intermediate variables in the scope or to declare the variable as mutable
reply