Lasse's OLD weblogBlurts on Java and Software EngineeringMy trivial template engine- March 11, 2004 I recently needed to send out a piece of XML with slightly different values for an element and soon ended up writing a trivial template class with Ant-style variable bindings. Just in case you're in need of such a utility, I decided to rewrite it for your comfort. Basically, it reads a template text from a String, a java.io.Reader, or a java.io.InputStream. Then, you can bind String values to named variables, and when you call render() on the template object, the template text and the bound..http://www.jroller.com/lasse/entry/my_trivial_template_engine JavaRanch on your mobile- March 11, 2004 Michael shows howhttp://www.jroller.com/lasse/entry/javaranch_on_your_mobile The March edition of JavaRanch Journal is out there- March 9, 2004 The latest edition of the JavaRanch Journal has been published. As usual, the content includes some very nice articles related to Java and related technologies (nothing from me this time).http://www.jroller.com/lasse/entry/the_march_edition_of_javaranch Why offshore when it costs more- March 5, 2004 Approximately a week ago, a lengthy discussion related to offshoring and extreme programming started in the Yahoo! XP group. The initial topic was about whether XP should be adapted to work better with offshore development (which to me sounds like a very bad idea). However, soon the discussion went towards offshoring in general and the well-being of the average American citizen. You know. The usual stuff. What I'm still wondering is when will the average manager understand why offshoring is...http://www.jroller.com/lasse/entry/why_offshore_when_it_costs Migrating from .NET to J2EE- March 5, 2004 It's nice to see someone write about migration in this direction for once. Some couple of months ago, browsing Amazon.com, I realized that there are plenty of books titled ".NET for Java developers" etc. but very few (if any) books for the .NET guy jumping to Java.http://www.jroller.com/lasse/entry/migrating_from_net_to_j2ee Why PreparedStatement- March 4, 2004 Reading an interview at TSS made me think of something... Do you use mostly java.sql.Statement or java.sql.PreparedStatement in your JDBC code I use almost always a PreparedStatement. Why Because I'm going to execute the statement multiple times in a row No. Because I don't want to encode parameter values into the SQL myself Yes! Which begs the question: why doesn't java.sql.Statement support numbered parameters It's not a complex thing to do and would make life a lot easier.http://www.jroller.com/lasse/entry/why_preparedstatement Re: Testing JDBC code- March 3, 2004 A while back, I wrote a simple introductory article about unit testing database code. As it happens, Bob Lee recently opened my eyes a bit wider, and now the folks at TSS are discussing whether it's all worth it. The best thing about it is that nobody has yet suggested "right tool for the job". That was my first thought and I'm still sticking to it. Although I'll certainly try and see how Bob's command pattern fits my current project. That is, if I remember to grab a snapshot on my USB key and.http://www.jroller.com/lasse/entry/re_testing_jdbc_code What is architecture - a quote- March 1, 2004 Steven J. Owens wrote: Architecture isn't something you do, it's something that is. The question is whether you're conscious and deliberate about it, or not. There's a lot of weight on the last sentence. Being conscious and deliberate is pretty much applicable to anything as a significant factor for success.http://www.jroller.com/lasse/entry/what_is_architecture_a_quote |