Archive

Archive for September, 2004

Great AOP Example

September 29th, 2004 No comments

AOP is new for me. I am trying to understand advantages of this programming approach. This AOP example clearly shows at least one cool thing that you can do with AOP. There is a very elegant resolution of mixed-role cohesion probelm. (I don’t want to explain it here, just read it).

Categories: Uncategorized Tags:

Is Code Generator + Stored Procedures worse than O/R Mapping?

September 23rd, 2004 3 comments

Excellent post about O/R Mapping and stored procedures. Paul writes, that there are two good approaches for development:

  1. O/R Mapping
  2. Stored Procedures (SP) + Code Generator (CG)

I agree. Other ways are not so good and bring additional problems (sometimes serious). Just one point is discussable for me. Paul puts O/R mapping on the first place, but I don’t think that CG+SP definitely worse than O/R Mapping. I have very bright example in our company. We’ve used CodeSmith, and this tool really great. Sure, templates took time, and I can’t insist that O/R Mapping will not solve the same problems faster next time. But, anyway, CG is a good alternative.

I personally prefer O/R Mapping. I have experience with NEO.NET and Tangram, and these tools are good and helpful. But there were some nasty problems with them, and (sadly) lack of documentation is very serious problem for many free open-source tools. It takes time to dig into source code and get the problem fixed. It takes time to understand system behavior, when it does not mach expectations. But these are problems of exact (free) tools, not an O/R Mapping in general.

Categories: Uncategorized Tags:

Configuration Management Basics

September 17th, 2004 No comments

Perfect Configuration Management Basics picture. Nothing new for experienced developers in fact, but such visualization always good by itself. I like pictures, charts and stuffs like that. They help me to understand things better.

Categories: Uncategorized Tags:

A Better Web Application Interface

September 16th, 2004 2 comments

Just read John Wilger’s article about Gmail app architecture. It seems like near future of web applications. GMail uses Javascript and XML to soften weakness of HTTP statelessness. New and interesting approach anyway.

Categories: Uncategorized Tags:

NEO Impressions

September 15th, 2004 1 comment

We are using NEO in TargetProcess project. So far so good in general. Simple operations with database are really simple, code looks much more better, unit tests are clearer and faster to write. Yes, unit tests are really fast. NEO provides database abstraction in its core, and real database is not required for tests. I like that.

But there is one nasty bug I had not fixed yet. Sometimes NEO throws an exception when trying to cast objects. The problem is very strange in fact. I did not dig into details, maybe it can be fixed within reasonable time frame. Anyway, this bug worsens overall (good) impression.

Categories: Uncategorized Tags:

XP Planning and Stephen Covey

September 9th, 2004 1 comment

Ron Jeffries did tried XP Planning for his own life management. Here what is he does. He creates big story cards like that:

House. This includes cleaning the basement, putting in the new kitchen,
improving the master bath, getting more storage for books and impedimenta,
general cleaning, doing something with the broken grill, …

Then breaks these big cards into several smaller and assigns some of them on short iterations. Pretty easy and similar with XP Planning practice.

I am reading excellent Stephen Covey’s book Seven Habits Of Highly Effective People. There are some parallels between Covey’s advises and Ron Jeffries’ approach. Covey wrote, that you should determine the most important things in your life and focus on them. You can write down them and then split them on smaller parts (big and small user stories in fact).

Then Covey gives an interesting advice about planning. You’d better use one week as a basic planning unit (like an iteration in XP?) for all important tasks in your life and track progress every weekend. A single day is a bad planning unit, since you will plan very strict and feel yourself under pressure. And the pressure will increase in the course of time. Single week gives more freedom.

So Stephen’s methodology for life management (the book was published in 1989!) is something like XP Planning for software development. It has three essential things:

  • Focus on important things
  • Small manageable chunks (features)
  • Small (weekly) iterations for better progress tracking

The question is… Can we consider life as a Project? :)

Categories: Uncategorized Tags:

Agile Development Conf. Papers

September 8th, 2004 No comments

Just found a dozen papers (PDF) from Agile Development Conf. 2004. Some of them are really good:

  • XP “Anti-Practices” : anti-patterns for XP practices
  • Learning Effective XP: Successes and Failures
  • The Slackers Guide To Project Tracking

Categories: Uncategorized Tags:

How many iterations do you plan?

September 7th, 2004 No comments

Actually, This is an interesting question for me. I think the answer depends on Project Manager. The lowest end is obvious – one iteration :). But what about the highest end? I prefer plan next two iterations. Maybe someone plan three or four?

Please, left the comment if you can.

Categories: Uncategorized Tags:

Iteration Types: New features & Bug fixing

September 6th, 2004 No comments

I just read Roy Dictus post Iterative Development (Part II). One thing is very arguable on my opinion. Row writes:

Smart Development defines two basic iteration types:

New Features Iterations

A New Feature iteration is as its name suggests: an iteration during which new features are added to the project

Debugging and Optimization Iterations.

A Debugging and Optimization iteration is used to perform more functional testing (of the version delivered at the end of the previous iteration) and more thorough unit testing and debugging. Existing code can also be optimized and/or refactored during this period for performance or maintainability.

The iterations of different types follow one after another. So you develop new features, then debug and optimize, then develop new features again, etc.

This approach is very interesting, but arguable. For example, it contradicts Extreme Programming planning practice. In XP all business decisions are making by customer. And bug fixing sometimes is a business decisions. Yes, it is. Customer might think, that new feature has greater business value and just more important than old nasty-but-rare bug. And customer doesn’t want spend money on bug fixing during month or two.

Otherwise, Debugging and Optimization Iterations help create more stable and robust software.

So should PM ignore customer’s priorities and always plan these Optimization iterations? I think he/she shouldn’t. But sometimes such an iteration can help. Especially in the beginning of the project.

Also one phrase really hit me:

Testing and Debugging: More unit tests are written, and code is debugged
accordingly [during this phase].

I always thought that unit testing is a part of development phase. There are programmers who writes unit tests, not testers.

Categories: Uncategorized Tags:

GhostDoc

September 6th, 2004 No comments

GhostDoc is a very small and helpful plug-in for VisualStudio.NET. It can “automatically generating those parts of a C# documentation comment that can be deduced from name and type of e.g. methods, properties or parameters”. Just click mouse button and get brief (sometimes very good, but sometimes somewhat quirk) method description. I’ve tried GhostDoc and stick to it.

Categories: Uncategorized Tags: