Master feed of news and updates from martinfowler.com
3k followers 3 articles/week
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? more…

Thu May 30, 2024 15:53
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,...

Wed May 29, 2024 17:48
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. more…

Wed May 29, 2024 17:48
Code Splitting in Single-Page Applications

Single-Page Applications often require a lot of code to be downloaded to the browser, which can delay a page's initial appearance. Juntao Qiu's next pattern, Code Splitting, describes how this code can be divided up, so that modules are only loaded if they are going to be needed, and the dangers of doing so. more…

Thu May 23, 2024 17:51
A short note on how I use and render footnotes

Last week I added a small feature to this website, changing the way it renders footnotes. That prompted me to write this quick note about how I use footnotes, and how that influences the best way to render them. more…

Wed May 22, 2024 21:24
Testing the contents of generated HTML

Matteo Vaccari continues his testing of template-generated HTML by describing tests for the contents of that HTML. He shows how to gradually build up the template, using Test-Driven Development in Go and Java. more…

Wed May 22, 2024 17:29

Build your own newsfeed

Ready to give it a go?
Start a 14-day trial, no credit card required.

Create account