What Dynamic Typing Is For
Posted3 months agoActive3 months ago
unplannedobsolescence.comTechstory
calmpositive
Debate
20/100
Dynamic TypingProgramming LanguagesSoftware Development
Key topics
Dynamic Typing
Programming Languages
Software Development
The article discusses the benefits and use cases of dynamic typing in programming languages, sparking a thoughtful discussion on its advantages and trade-offs.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
5h
Peak period
2
7-8h
Avg / period
1.5
Key moments
- 01Story posted
Oct 13, 2025 at 11:27 AM EDT
3 months ago
Step 01 - 02First comment
Oct 13, 2025 at 4:10 PM EDT
5h after posting
Step 02 - 03Peak activity
2 comments in 7-8h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 13, 2025 at 7:15 PM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45569410Type: storyLast synced: 11/20/2025, 4:26:23 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
This is how I’ve been writing web services for the last decade. It was a style that came from being frustrated with the experience of using many all-in-one frameworks.
Frameworks take time to learn and the skills are generally non-transferable. Any complex application still requires you to know the underlying languages frameworks attempt to abstract. Frameworks often make testing more difficult due to adding layers of abstraction between what the application does and how the code is written.
Writing actual SQL/CSS/etc in a dynamically typed language to be used in a template is so much easier to understand, debug, and validate.
What you're describing are string interpolation macros, and e.g. Slick in Scala does this[0]. You write SQL with normal variable substitution, and it compiles to a prepared statement with bind values (so no SQL injection), and can optionally validate against your schema at compile time. Super simple to read, write, and maintain.
I've not done any frontend Scala, but apparently Binding.scala[1] offers similar functionality to make composable HTML templates with databinding based on string interpolation macros (boy was that a jargon-dense sentence to say "nice in lots of ways"). The readme says it's statically checked including HTML tags/attributes.
So yeah statically typed languages do also have template systems, and when you have macros + type inference, as you've guessed, you don't need to drop to dynamic types.
[0] https://scala-slick.org/doc/stable/sql.html
[1] https://github.com/ThoughtWorksInc/Binding.scala