Saturday, January 24, 2009
Pilihan Hidup
Hidup ini masing2 diberi dua pilihan yaitu jalan yang gelap dan jalan yang terang,jalan yang gelap adalah suatu jalan yang bejalan tanpa mempertimbangkan norma2 agama dan jalan yang terang adalah suatu jalan yang selalu berjalan pada aturan agama.
Mutiara mail
Sekejam-kejamnya manusia pasti ingin memberikan kasih sayangnya kepada orang lain sebagai wujud simpati-nya, di sisi lain butuh sebuah penghormatan sebagai bentuk apresiasi dari kreasi yang dilakukaknnya, begitulah kata KH Muhtadi Alawy tokoh masyarakat sekaligus pemangku sebuah pesantren. Benar!, sejalan dengan sabda Nabi saw: “Bukan termasuk golonganku, seseorang yang tidak menghormati yang lebih tua dan meremehkan yang lebih muda.” (HR Tirmidzi:1919)
Official Google Blog: Hood to Coast 2009
Thursday, January 22, 2009
Trying to Bind Form Elements in the View to a Dictionary in the Model with ASP.NET MVC
I've got a class that has, instead of statically typed properties, a dictionary that is used to store different values depending on what is needed for any given instance. public class Baz { public Baz() { Foo = new Dictionary { { "Bar", null } }; } public IDictionary
Monday, January 19, 2009
Refactored: Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions
Working further with the Fluent Test Data Builder I was working on yesterday has led me to refactor what I had, and the result is, I think, even nicer! I've added a new method SetValue, and changed the from getting the Member.Name to getting the PropertyInfo from the Member. The other significant change is that I'm now wrapping the SetLength and SetValue methods in try catch blocks so that I can
Saturday, January 17, 2009
Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions
Whilst writing some extension methods this evening to make creating objects in unit tests simpler I found myself writing methods that looked sufficiently similar to each other that I felt the code lacked a little DRYness. The code being written has to output a data extract in a fixed field length formatted text file. As such the length of the formatted fields is very important, so I had created