Relative Content

Tag Archive for templates

Main method templating

Now that I’ve gotten into a dependency injection groove, I find main methods for different applications all look basically the same. This is similar to stuff you might find on the Guice documentation, but I’ll put an example here:

Main method templating

Now that I’ve gotten into a dependency injection groove, I find main methods for different applications all look basically the same. This is similar to stuff you might find on the Guice documentation, but I’ll put an example here:

Main method templating

Now that I’ve gotten into a dependency injection groove, I find main methods for different applications all look basically the same. This is similar to stuff you might find on the Guice documentation, but I’ll put an example here:

What do you gain by using template engines like Genshi

I’m generating some code using Python and looking at templating engines like Genshi as a tool to use during that process. However, I’m having trouble finding the benefits to doing so. It seems like Genshi is as expressive as a language like Python, which means you have all of the complexity of such a language, but now you have two languages.
Maybe my particular problem is just too complicated, or I misunderstood the purpose of these engines, but they don’t seem to offer anything that f"" strings don’t offer already.

“C++ Templates: The Complete Guide” (c) 2002 — up to date with C++11?

The book C++ Templates: The Complete Guide, (c) 2002, looks very appealing to me, but as it’s 12 years old, I’m concerned it may be out of date. There are some highly favorable Amazon reviews dated as recently as a year ago, and I don’t see any other very recent titles on C++ templates. Does anyone know whether a book about templates published in 2002 (as opposed to a book specifically about the STL) would have syntax or concepts that have been superseded or added to by, say, C++11?