Archive for January, 2009
The smell of Copy&Paste
I often read phrases like these “adding a new module to our application is very simple, just copy&paste some code” or “to create a new class you have to copy&paste from an old class”. In my opinion this there is something wrong about this. Copy&Paste is a smell. If you need the Copy&Paste to add some functionality to your application means that you are duplicating your code and then you will be in trouble when you need to maintain it.
What could you do? When the second Copy&Paste happens, stop, read your code, extract a class and “encapsulate what varies“.
No commentsThird UgiALT.NET conference
Last Saturday there was in Milan the Third Italian ATL.NET Conference. Simone has just posted about this here.
It was a marvellous day with interesting topics and joyful people.
The OpenSpace format works well and suddenly everyone feels ok by asking, answering and discussing about the topics during the speech and after the speech.
We talked about
- User Stories (I and Antonio)
- Domain Driven Design (Roby and Antonio)
- IronRuby (Ivanc0mes from Belgium to talk!)
- Test Driven Development and Unit Testing (I and Claudio)
- Fitnesse (Jacopo)
One nice consideration is that we never talked about .NET Framework, most of the speaker’s laptop used was a Mac with mono on it…and that’s is very cool!
Here you find some photos of the event: http://www.facebook.com/home.php#/event.php?eid=39031742487
No comments.NET Architecture
When the book of Andrea and Dino came out I bought a copy that I read during the Christmas holidays. The book, after the dedication that Andrea do to Depeche Mode, opens talking about Architects and Architectures giving some definitions. The second chapter is on UML.
The good starts from chapter 3 where the basic OOP principle will be presented and where the authors talks about Patterns, di SoC, SRP, Liskov, OCP etc….
The central part of the book is dedicated to the three layers: in the 4Th they present the Domain Model, the Transaction script and all that the business layer need. In the 5Th they talk about Service Layer, then in the 6th comes the DataLayer and in the 7Th the Presentation Layer.
These 4 chapters are discussed using the patterns and showing a lot of code from the NSK codebase. The authors touch also some correlated arguments like AJAX, SOA, DAO, MVC, etc…
I really like the book and I think that is a good addendum to the Fowler’s book because filled with real code samples.
No comments
RSS


