RealSimpleBlog custom control (V1): Day 2

.NET, ASP.NET 2.0, Technical stuff
See comments
I spent an exciting evening yesterday starting to work on my RealSimpleBlog control. As usual when programming really starts, a few question arose, but mostly everything was very clear in my mind, thanks to the simple, but complete list of requirements I intend to implement before we go in holidays. That proves once again that even in a one-man team, even when programming private projects, even just as a hobby, a few simple rules help to be more efficient and to write better code.
Off the top of my head:
  • Spend some time thinking about what you try to achieve before even writing one single line of code.
  • Prepare a list of requirements with priorities, so that you're clear about what you're trying to do. It doesn't have to be a complicated document, in some cases I just write a memo on my PDA.
  • Think as a designer before you think as a programmer. Even if you don't make a full blown UML design (and though I am a big fan of UML), even if you just create a few classes, imagine how they'll interact together, how the sequence of events, of calls will take place, what basic patterns or models you can use.
  • Use guidelines even if you're the only person involved in the project.
  • Use source control.
  • Document your code.
  • Generally, even if you're doing private applications, even if you never intend to distribute them, even if you will be the only user, work professionally, just as if you were selling them.
So far I implemented the general structure of the control (including self-registering and extracting satellite files (CSS, JavaScript, Images...)), setting and displaying the entry's date, and displaying announcement on top of the entry if there is one saved as XML. I also added a requirement: Support lists (UL/LI elements).
I won't program tonight because I am pretty tired (spent the whole day with my colleagues on a trip in the mountains, we visited the Gotthard basis tunnel plant in Sedrun, very interesting but I am exhausted.
I plan to post that, make tea and then simply relax and enjoy one or two episodes of Lost season 2.
Previous entry | Next blog entry

Comments for RealSimpleBlog custom control (V1): Day 2