The document summarizes a presentation on improving template engines. It argues that current template engines are too permissive, leading code bases to break fundamental principles. It demonstrates problems with examples using traditional template engines and shows improvements using StringTemplate and Slippers template engines, which enforce stricter separation of view and model logic for more testable, maintainable code. The presentation aims to convince the audience to consider alternative template engines that make it easier to develop code the right way.
Breaking the Kubernetes Kill Chain: Host Path Mount
Taming the View with String Templates and Slippers
1. Taming of the View
RubyConf India 2010
Sarah Taraporewalla
ThoughtWorks
Sunday, 21 March 2010
2. I will attempt to
convince you that:
Sunday, 21 March 2010
3. I will attempt to
convince you that:
- the current template engines are too
permissive
Sunday, 21 March 2010
4. I will attempt to
convince you that:
- the current template engines are too
permissive
- there are loads of code bases that break
fundamental principles
Sunday, 21 March 2010
5. I will attempt to
convince you that:
- the current template engines are too
permissive
- there are loads of code bases that break
fundamental principles
- you should turn to other template engines
Sunday, 21 March 2010
6. What is wrong with
these examples?
Sunday, 21 March 2010
45. StringTemplate
- Strict separation of model & view
- Fits well with functional programming
- Written in Java, .Net, Python
is NOT Turing complete
Sunday, 21 March 2010
46. 1. Create a StringTemplate Object with
the template
Sunday, 21 March 2010
47. 1. Create a StringTemplate Object with
the template
string or file
Sunday, 21 March 2010
86. Have I convinced you
that:
- the current template engines are too
permissive
Sunday, 21 March 2010
87. Have I convinced you
that:
- the current template engines are too
permissive
- there are loads of code bases that break
fundamental principles
Sunday, 21 March 2010
88. Have I convinced you
that:
- the current template engines are too
permissive
- there are loads of code bases that break
fundamental principles
- we should turn to other template engines
Sunday, 21 March 2010