14 July 2009
Encrypting Passwords in Java Property Files
Configuration is an essential part of every software development project. Among other things, we store sensitive information such as database, ftp and other credentials in these configuration files. This may not be an issue for a small company. But if you're working for a large bank, this becomes... Read More...
22 March 2009
How to: Add CData or Text in a ConfigurationElement
I was working on a MsScriptControl based ETL project. One of its requirements is to be able to use vbscript functions in the transformations it performs. It is fairly easy to hard-code functions then register them during start-up all at the expense of maintainability. I guess the better side of me prevailed... Read More...
17 February 2009
MethodInfo.Invoke vs MethodCall Performance on DynamicMethods
I posted a question on cvega ’s article on using CIL getters and setters to speed up the execution of heavily reflection-based code asking which one will perform better using DynamicMethod.Invoke or using DynamicMethod.CreateDelegate then calling that delegate. On which he promptly replied. But... Read More...
03 February 2009
Threading Patterns: Producer-Consumer Pattern Examples
This is the third installment to my series of posts about threading patterns. Today we will look into familiar scenarios where we can apply the producer-consumer pattern particularly applications of the ThreadedQueueBase<T> class. Usage Pattern Note that the threaded queue classes that I provided... Read More...
12 January 2009
Threading Patterns: The Producer-Consumer Pattern
This is the second installment to my series of posts about threading patterns . In the previous article , we looked into the worker thread pattern . It models the concept of thread-per-message by creating one thread per instruction/message pair. This approach is effective in achieving some level of parallelism... Read More...
10 January 2009
5 Tips for Debugging Multi-threaded Code in Visual Studio.Net
I have been talking about threading and threading patterns for a while now but somehow fell short on how to debug them. Today we will look into tips as well as tools available in the Visual Studio IDE that enables us to effectively debug multi-threaded applications like non-threaded ones. Tip #1: Always... Read More...
10 January 2009
IConfigurationSectionHandler Is Dead! Long Live IConfigurationSectionHandler!
I was tasked to create the configuration functionality of the architectural components for an SOA project that I previously worked on. I took as much time as I can in designing the XML thinking that it will be very easy to process it and churn it into a Configuration class by implementing the IConfigurationSectionHandler... Read More...
20 December 2008
Threading Patterns: The Worker Thread Pattern
As promised, I am beginning this series of posts about threading patterns that I find useful in everyday coding. To start off, I will introduce you guys to the concept of the worker thread pattern. This article assumes that you know a thing or two about the concept of threading in general. .Net Threading... Read More...
18 December 2008
A Year of Lull
It has been a shameful one year of lull from blogging. For which I am mostly apologetic. A lot of things happened. So first a couple of updates. I recently moved to a new job in Singapore. I now work for the investment banking arm of a large European bank. I have been here for a couple months now learning... Read More...
Filed under:
17 December 2007
Closures and Linq in C# 3.0
Keith posted a great article demonstrating Linqs capabilities. There he was asked if his examples where " closures ". Let me take this opportunity to explain how closures are used in Linq by clarifying what a closure is and showing how the Linq queries are translated at compile time(from linq... Read More...
26 July 2007
VS 2008 and .NET 3.5 Beta 2 Released
So for those of you aching to try the new partial methods feature this is your chance. You can access it here . Scott Guthrie has a post about the features and an installation note to prevent your older asp.net ajax applications from having a dependency on the asp.net ajax binaries that come with beta... Read More...
01 May 2007
A Conceptual Concurrent Testing Framework for .Net Applications
Technological advancements in micro-processors suggest an imminent paradigm shift in software development. The sudden shift from old architecture to a new breed of multi–core processors dictates the use of concurrency concepts to optimize performance and to get around synchronization abstractions like... Read More...
Filed under: , , ,
29 March 2007
A Tribute to the Unsung Heroes of C#’s Functional Revolution
Many of us may not have noticed it but C# 2.0 gave us several really cool delegates and methods aimed at providing a gentle transition to the functional programming concepts introduced in C# 3.0 and Linq. This post aims to take a look at these useful yet under appreciated delegates and functions instrumental... Read More...
23 March 2007
Lambda Expressions in C#
C# 3.0 introduces a new feature called lambda expressions. While this is not a revolutionary thing, it opens up a plethora of new possibilities for .Net programming. This post aims to introduce lambda expressions by providing a backgrounder, looking into its syntax and providing examples along the way... Read More...
22 March 2007
whoami
So whoami? My name is Kriztian Jake Sta. Teresa. I am a software developer working for a process control and automation company. I am mostly involved with writing C#/.Net code when i'm at work and i do Java/Eclipse, PHP, Ruby development on my free time. I will be blogging here mostly about random thoughts... Read More...
Filed under: