One of the most common coding tasks involves generating textual artefacts and employing a template engine is one of the most popular ways to do that in practice. Text and code are two different things, but from a generative point of view, they're not any different at all.
Generating text is a common coding task, and one popular approach is to use a template engine. While code and text might seem like two different things, they're pretty much the same when it comes to creating them.
My casual exploration tries to create a template based POC solution that meets the following goals:
I'm playing around with a template-based solution that meets two goals:
1. Keep it simple for Java developers who only need a quick tutorial to understand it.
1. To create a cognitively lightweight solution for simple use cases - no learning beyond what can be achieved in a brief tutorial for a Java developer.
2. To generate **<spanstyle="text-decoration:underline;">multiple files</span>** from a single template file - this is a pet peeve of mine.
2. To generate **<spanstyle="text-decoration:underline;">multiple files</span>** from a single template file - this is a pet peeve of mine.
Code generation is a well trodden field. There are better alternatives than doing DIY code generation from scratch. The whole exercise I present here is really about exploring ”cognitively lightweight” code generation within the span of an afternoon.
Code generation is a well trodden field. There are better alternatives than doing DIY code generation from scratch. The whole exercise I present here is really about exploring ”mentally unburdened” code generation within the confines of a single afternoon.