I've worked on JS projects where we set a maximum line number on files. It worked well -- it was a gentle reminder that a module had grown and would benefit from splitting up.
(I think this would definitely work in other languages, but probably with a higher line threshold.)
miniblog.
Related Posts
Are there any developer experience advantages for `x := 1` over `let x = 1`?
A `let` keyword probably improves parsing error behaviour, and makes declarations more visible.
:= is more concise though.
Writing type params with <> (e.g. List<Int>) seems the most natural to me: probably because I encountered that syntax first.
Between C++, Java and TypeScript I think it's the most common too.
List[Int] seems to be next most common (Scala, Python) but TIL Gleam uses List(Int)!
I've been tinkering with an LLM interface with my calendar and it's really nice to use.
"Delete my April trip" is a lot less fiddly than opening calendar, switching to the month view, scrolling to April and so on.
I should probably build an undo as well though.