Testing server calls in generated HTML
Martin Fowler
by Martin Fowler
1M ago
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 ..read more
Visit website
Parameterizing HTML template tests
Martin Fowler
by Martin Fowler
2M ago
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. more ..read more
Visit website
Prefetching in Single-Page Applications
Martin Fowler
by Martin Fowler
2M ago
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 ..read more
Visit website
Code Splitting in Single-Page Applications
Martin Fowler
by Martin Fowler
2M ago
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 ..read more
Visit website
A short note on how I use and render footnotes
Martin Fowler
by Martin Fowler
2M ago
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 ..read more
Visit website
Using markup for fallbacks when fetching data
Martin Fowler
by Martin Fowler
2M ago
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 markup they use while laying out the rest of the page. Juntao's React example shows how this works with the Suspense element, with a similar approach in vue.js. more ..read more
Visit website
Test-Driving HTML Templates
Martin Fowler
by Martin Fowler
2M ago
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 tests are slow and more work to maintain than unit tests. My colleague Matteo Vaccari has written an article on how to use TDD to test drive these templates using xunit-style tools which can be run easily from the command line or as part of build scripts. In this first installment Matteo describes how such tests can check the generated HTML for validity, with examples in Java and Go. more ..read more
Visit website
Parallel Data Fetching
Martin Fowler
by Martin Fowler
2M ago
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 latency of the overall fetch is largest of the queries rather than the sum of them. more ..read more
Visit website
Data Fetching Patterns in Single-Page Applications
Martin Fowler
by Martin Fowler
2M ago
Juntao Qiu is a thoughtful front-end developer experienced with the React programming environment. He's contributed a couple of useful articles to this site, describing helpful patterns for front-end programming. In this article he describes patterns for how single-page applications fetch data. This first installment describes how asynchronous queries can be wrapped in a handler to provide information about the state of the query. more ..read more
Visit website
Photostream 131
Martin Fowler
by Martin Fowler
2M ago
..read more
Visit website

Follow Martin Fowler on FeedSpot

Continue with Google
Continue with Apple
OR