jitterted, I think one of the biggest shifts over the past year in how I write server-side generated HTML (Thymeleaf + Spring MVC) is trying to completely avoid any decision-making logic (is there any other kind? 😏) in the template, and push all of the logic into the back-end (Controller or DTO).
This may not always be possible, but it does mean that such logic is much easier to test (and therefore test-drive).
Mike Rizzi and I have been live coding a small app where today, we did exactly that. You can see the whole playlist (we're up to 5 episodes) here: https://www.youtube.com/playlist?list=PLBHctPrH7Z2-nyaHBETfklyqddmEZUp95
Join my Discord community to talk about these episodes, #Java coding, design, architecture, #TDD, #DDD, and more: https://ted.dev/discord
Add comment