Week 22, year 2024
- Parameterizing HTML template tests - Testing templates for generating HTML leads to tests that are very similar. Matteo Vaccari wisely likes to separate the common elements of tests from those that vary. He continues his article to show how he does this by parameterizing the tests. The resulting tests are easier to write, and more importantly, faster to understand and modify. [Martin Fowler]
- Prefetching in Single-Page Applications - Juntao Qiu's completes his set of data fetching patterns for single-page applications. Prefetching involves fetching data before it's called for in the application flow. Although this can mean data is fetched unnecessarily, it reduces latency should the data be needed. [Martin Fowler]
- Testing the behavior of generated HTML - In the story so far, Matteo Vaccari has shown how to test the behaviour of the HTML templates, by checking the structure of the generated HTML. That's good, but what if we want to test the behavior of the HTML itself, plus any CSS and JavaScript it may use? [Martin Fowler]
- Let's build the worst Event Sourcing system! - Everyone likes to talk about best practices. I went the other way around and gathered all the worst practices on how to build the worst… [Event-Driven by Oskar Dudycz]