Science

Books

  • [PDF] B. J. Arnoldus, M. G. J. van den Brand, A. Serebrenik, and J. J. Brunekreef, Code generation with templates, Paris, France: Atlantis Press, 2012.
    [Bibtex]
    @book{code-generation-with-templates,
    author = {Arnoldus, B. J. and van den Brand, M. G. J. and Serebrenik, A. and Brunekreef, J.J.},
    title = {Code Generation with Templates},
    year = {2012},
    series = {Atlantis Studies in Computing},
    publisher = {Atlantis Press},
    isbn = {978-94-91216-55-8},
    address = {Paris, France},
    keywords = {code generation, Model driven engineering, Programming languages, Syntax safety, Templates},
    }

 

Templates are used to generate all kinds of text, including computer code. The last decade, the use of templates gained a lot of popularity due to the increase of dynamic web applications. Templates are a tool for programmers, and implementations of template engines are most times based on practical experience rather than based on a theoretical background.

Code Generation with Templates

This book reveals the mathematical background of templates and shows interesting findings for improving the practical use of templates.

First, a framework to determine the necessary computational power for the template metalanguage is presented. The template metalanguage does not need to be Turing-complete to be useful. A non-Turing-complete metalanguage enforces separation of concerns between the view and model.

Second, syntactical correctness of all languages of the templates and generated code is ensured. This includes the syntactical correctness of the template metalanguage and the output language. Third, case studies show that the achieved goals are applicable in practice. It is even shown that syntactical correctness helps to prevent cross-site scripting attacks in web applications.

The target audience of this book is twofold. The first group exists of researcher interested in the mathematical background of templates. The second group exists of users of templates. This includes designers of template engines on one side and programmers and web designers using templates on the other side.

Where to obtain: Amazon, Springer

Publications

2013

  • [PDF] B. J. Arnoldus, J. Gresnigt, K. Grosskop, and J. Visser, “Energy-efficiency indicators for e-services,” in Proceedings of the 2th workshop on green and sustainable software, 2013.
    [Bibtex]
    @inproceedings{energy-efficiency-indicators-for-e-services,
    author = {Arnoldus, B. J. and Gresnigt, J. and Grosskop, K. and Visser, J.},
    title = {Energy-Efficiency Indicators for e-Services},
    booktitle = {Proceedings of the 2th Workshop on Green and Sustainable Software},
    series = {GREENS '13},
    year = {2013},
    }

2012

  • [PDF] B. J. Arnoldus and J. Visser, “Voorkom onzichtbare verspilling: energiebehoefte van software,” Informatie, pp. 33-37, 2012.
    [Bibtex]
    @article{voorkom-onzichtbare-verspilling-energiebehoefte-van-software,
    author = {Arnoldus, B. J. and Visser, J.},
    title = {Voorkom onzichtbare verspilling: energiebehoefte van software},
    journal = {Informatie},
    month = {April},
    year = {2012},
    pages = {33--37},
    publisher = {Sdu uitgevers}
    }

2011

  • [PDF] B. J. Arnoldus, M. G. J. van den Brand, and A. Serebrenik, “Less is more: unparser-completeness of metalanguages for template engines,” in Proceedings of the 10th acm international conference on generative programming and component engineering, New York, NY, USA, 2011, pp. 137-146.
    [Bibtex]
    @inproceedings{unparser-completeness-of-metalanguages-for-template-engines,
    author = {Arnoldus, B. J. and van den Brand, M. G. J. and Serebrenik, A.},
    title = {Less is more: unparser-completeness of metalanguages for template engines},
    booktitle = {Proceedings of the 10th ACM international conference on Generative programming and component engineering},
    series = {GPCE '11},
    year = {2011},
    isbn = {978-1-4503-0689-8},
    location = {Portland, Oregon, USA},
    pages = {137--146},
    acmid = {2047887},
    publisher = {ACM},
    address = {New York, NY, USA},
    keywords = {code generation, templates, unparser},
    }

2010

  • [PDF] B. J. Arnoldus, “An Illumination of the Template Enigma: Software Code Generation with Templates,” PhD Thesis, 2010.
    [Bibtex]
    @phdthesis{an-illumination-of-the-template-enigma,
    title = {{A}n {I}llumination of the {T}emplate {E}nigma: {S}oftware {C}ode {G}eneration with {T}emplates},
    url = {http://library.tue.nl/catalog/LinkToVubis.csp?DataBib=6:693494},
    school = {Technische Universiteit Eindhoven},
    author = {Arnoldus, B. J.},
    year = {2010},
    }

2007

  • [PDF] B. J. Arnoldus, J. W. Bijpost, and M. G. J. van den Brand, “Repleo: a Syntax-Safe Template Engine,” in Gpce ’07: generative programming and component engineering, New York, NY, USA, 2007, pp. 25-32.
    [Bibtex]
    @inproceedings{repleo-a-syntax-safe-template-engine,
    author = {Arnoldus, B. J. and Bijpost, J. W. and van den Brand, M. G. J.},
    title = {{R}epleo: a {S}yntax-{S}afe {T}emplate {E}ngine},
    booktitle = {GPCE '07: Generative Programming and Component Engineering},
    year = {2007},
    isbn = {978-1-59593-855-8},
    pages = {25--32},
    location = {Salzburg, Austria},
    publisher = acm,
    address = {New York, NY, USA},
    }

2005

  • [PDF] W. Visscher, J. Kats, B. Terwijn, B. J. Arnoldus, and D. van den Berg, “Metaforen in requirements engineering: metaforen hulpmiddel bij communicatie over it.,” Informatie, pp. 12-15, 2005.
    [Bibtex]
    @article{metaforen-in-requirements-engineering,
    author = {Visscher, W. and Kats, J. and Terwijn, B. and Arnoldus, B. J. and van den Berg, D.},
    title = {Metaforen in requirements engineering: Metaforen hulpmiddel bij communicatie over it.},
    journal = {Informatie},
    year = {2005},
    pages = {12--15},
    publisher = {Sdu uitgevers}
    }