ASP.NET News from Blogger: Michael Slatterys Weblog   Get the feed of: Michael Slatterys Weblog

Total News: 20

Effective code coverage

Judging coverage by a fixed percentage is pointless. If you have 99% coverage, a big nasty bug might be in that 1%. However, 100% coverage is really overkill as you have to go to great lengths to te...

Slow query in Hibernate

I love Hibernate, but I've been disappointed by the performance of a query. It's actually more than a simple query. The object returned has associations to a large graph of other entities that are a...

Automated functional testing for untestable features

It's always bothered me that some aspects of functionality can't be tested with code due to technology contraints. Sure, anything's possible and we could go to great lengths to make everything testab...

Case for Open Sourcing our libraries

I'm drafting a case for open sourcing components of our product. I'm posting the first draft here so that others might give feedback. My boss is very intelligent, but from a purely business backgrou...

A plugin-based Hibernate application

We have a solution that will give our customers the ability to customize our application(s) without the need to access our source code. The idea is based on plug-ins. It is still in development. Th...

POJOs with fewer getters/setters

I'm generally against code generation. I don't like bloat, duplication and many other evils caused by it. For a long time, I've been annoyed by all the code that must be written and/or generated to...

Selenium F-Tester is impressive

I've been impressed with Selenium. It's a funtional/acceptance testing framework that is implemented in JavaScript and runs in the browser. I like this concept better than the HttpUnit or Watir. Htt...

Mock JDBC driver not worth it

I think mocking DAOs is better than mocking a JDBC driver. A while back I wrote a blog entry that described an initial design of a JDBC driver that would be useful for mocking. It would use a cache ...

Wrapper over multiple GUI frameworks

In our new project we've been using the Echo Framework, version 1. It is a web UI framework that is very similar to Swing (stateful, events, components, etc). We are impressed with it, but have que...

JUnit Code coverage and cyclomatic complexity

TDD by its nature requires comprehensive testing. There is some debate to how much testing is "good enough". I find TDD requires a lot of dicipline and code coverage analyzers help keep me from ...

Strangling our legacy code

We are rewriting our main product. The old system consisted of home-grown persistence and web presentation layers. It's being converted to Hibernate 3 and Echo and I am enjoying the project. We ha...

Hibernate and damn User-Defined Fields

We are going to have a need for users to be able to create their own fields in the system. There are severals ways to do this that are good, bad, and ugly. From a database perspective, I have come up...

A single DAO for less code and simplicity

I am making a generic DAO class to be reused for all my entities. Of course it can be extended for specific methods (like finder methods of the form: findByXxxYyy). I might consider using the gener...

I want a cache that has it all.

I've looked at many of the the caches available, but none match *exactly* what I want. Perhaps there is one out there that I haven't researched well enough. Lightweight In memory cache (all are) 2nd...

Writing filters with JSP

I discovered an easy way to write filters in JSP. This could be very useful for prototyping and initial coding during TDD (before refactoring). When I originally had this idea, I thought it would be...

Ajax is a mistake

I normally don't like to bitch, whine, ramble, pout, and cry like what I usually see in the bile blog, but this Ajax stuff is pure crap. Take it from someone who has implemented something very simil...

Our Database/SQL version control process

I thought people might be interested in how we do version control for database SQL scripts. I'm actually surprised that I've never run across anything similar to this technique anywhere else. Someon...

FireFox feature idea: embed IE

I love firefox. What a great browser. Spyware was such a worry with IE (although it's still a minor concern). I love the tabbed windows. However, one of the biggest complaints is that some pages d...

Design for a Mock JDBC Driver

Mock JDBC Driver I think unit tests are very important. I think having fast unit tests is important. Using mocks makes unit tests much faster. Writting JDBC mocks can be tedious and they are prone...

Micro XP looks like it sucks

I found this article about a minimal process called "Micro XP" disappointing. I found it referenced in this guy's blog. XP becomes a dangerous process without Pair Programming unless you compensat...

View Other bloggers