A brief how-to on providing user settings in your application. First, if you want to provide defaults, you want to add the following to the application’s configuration: Notice there are two levels of the <add> tag, one is ‘global’ settings, the other is segregated off in a named section. Reading this information is along the [...]
After writing my last article I began to wonder what people ‘in-the-know’ thought the advantages of TDD vs integration testing were. So I quickly turned to my new favorite site stackoverflow. After reviewing several questions I came across this one entitled “Is Unit Testing worth the effort?“, and the accepted answer had 113 votes. So [...]
I was viewing the comments on a recent post entitled Integration Tests Are a Scam when I ran across this: Integration tests are needed A Mars rover mission failed because of a lack of integration tests. The parachute subsystem was successfully tested. The subsystem that detaches the parachute after the landing was also successfully (but [...]
Changes in this version: Added a command-line interpreter and parser under Library.Commands Added a WinForms cross-threaded event delegate class that prevents deadlocking Added Library.Processes.ProcessRunner utility class for spawning a process and correctly collecting the Output Added a few FileUtils to allow searching the environment path and granting full access on a file for a well-known [...]
I recently posted a question about the use of readonly on stackoverflow. Follow the link to see the comments on Thoughts on the use of readonly for any/all instance members of a class? For some time now I’ve been using the readonly modifier for nearly all class fields. I use it for List members, IDisposeable [...]
For the past few days I’ve been working on a solution to a problem in WinForms. Most people are not aware of the following: The “threading api” methods of the Control class are not thread safe. This includes calls to InvokeRequired, Invoke, BeginInvoke, and even EndInvoke. What do I mean by “not thread safe”? The [...]
Ok, I just found the best site I’ve stumbled across in a long time. http://www.antiifcampaign.com/ Excellent job guys and mad respect for giving this issue it’s very own online site/campaign. Join me and the many others to move the community in a positive direction. BTW, I found this indirectly on a great post about the [...]
I hate to say this since I’m sure many people put a lot of time and energy into this … but I truly HATE CSLA for .Net. Why? Several reasons, however, as a fore-note about my point of view you should take this into consideration. My experience with CSLA used about 10% of the features, [...]
I’ve just finalized version 1.0.723.126 and it is now available from google code. The majority of the update involves the introduction of a TortoiseSVN comment dialog. The dialog currently has only defect tracking implementation for Jira, but it allows you see a list of defects, check off the related ones, optionally resolve/assign the issue… All [...]
It’s been a while since I’ve posted, nothing of interest to say I guess. But then I ran across this article out on Planet TW RSS feed entitled “Resisting Dependency Injection“. Props to the author, I laughed so hard I slapped the desk… The funniest of course is the first comment “Use lots of static [...]