Website as a Function from URL to HTML [video](youtube.com)
youtube.com
Website as a Function from URL to HTML [video]
https://www.youtube.com/watch?v=iU5RNr4F--g
2 comments
"Diversity & inclusion sponsor"? What is that?
https://www.youtube.com/watch?v=iU5RNr4F--g
In this talk, we start fresh. Our design approach is driven by one simple insight: Static websites are just functions mapping URLs to HTML. This marks the beginning of our journey in developing our own SSG. In the end we arrive at a bespoke domain-specific language in OCaml.
While this exploration may sound theoretical – or even playful – it has substantial practical implications. By treating our website as a function, we can embrace robust engineering practices: clearly separating domain logic from presentation, following the single-responsibility principle, reducing coupling, and ensuring cohesion.