Category: machine-learning

machine-learning

Testing server calls in generated HTML

Matteo Vaccari completes his article on testing template-generated HTML, by looking at how to use TDD with pages that make calls to the server. more… Source: martinfowler

machine-learning

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…

machine-learning

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…

machine-learning

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…

machine-learning

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…

machine-learning

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…

machine-learning

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…

machine-learning

Using markup for fallbacks when fetching data

Juntao Qiu’s next data fetching pattern looks at how to specify fallback behavior using markup. This allows developers to pull such declarations out of the JavaScript components and into the…

machine-learning

Test-Driving HTML Templates

When building a server-side rendered web application, it’s valuable to test the HTML that’s generated through templates. While these can be tested through end-to-end tests running in the browser, such…

machine-learning

Parallel Data Fetching

The second pattern in Juntao Qiu’s series on data fetching is on how to avoid the dreaded Request Waterfall. Parallel Data Fetching queries multiple sources in parallel, so that the…