martes, 23 de febrero de 2016

Software craftmanship

Software Craftmanship

So, first things first, today's song will be "Goodbye my lover" by James Blunt

Enjoy


Today I will talk about the podcast titled "Software Craftmanship" with Bob Martin.
Bob Martin defines software craftmanship as sort of an improvement on agile software development, he talks about the need for architects to code so they feel and understand the methodologies programmers use to code.
Software Craftmanship is a mixture of agile coding, pair programming, driven development, doing well crafted software, focusing on the code instead of the design. He talkes about some ideas that seems to talk about refactoring, and leaving a cleaner code each time we modify it.

I think software craftmanship is a great approach to software development, since it defines some great ideas, as everyone working at some point on coding, since coding easily evolves, I agree with Bob Martin that if architects don't code then their ideas will be more difficult to code. I like a lot the idea of collaboration and people working together instead of coding alone, another think I think is very important is that developers have to collaborate with their clients, understanding the requirements by approaching to the client so they can produce better software.

I like a lot of agile development disciplines, since they focus on what I think is the more important aspect of software development, the coding. I think a lot of methodologies focus a lot on design and sofisticated tools (those awful CASE tools). That look nice on paper but almost always end up becoming more of an obstacle than a tool

Of course, as in everything, there is a tradeoff, but it may be appropriate to most software solutions, so maybe the key is to be flexible on choosing the best discipline for a specific project, there may be some solutions where a waterfall approach may be the best. But for most solutions, an agile discipline or an evolutionary approach may work perfectly.


With software methodologies it happens the same as with choosing the best programming language, there are no wrong approaches, you just have to choose what is best for you. So it is very importante that you know a bit about all of them, to understand each methodology's weaknesses and strengths.


I've said it many times, but in software development everything is a tradeoff, so you have to be flexible and choose what works best for you.

Wololo.

jueves, 11 de febrero de 2016

Is Design Dead?

It's been some time since my last entry (mostly because stress related problems due to exam)

So, today I will be writing about design on extreme programming and discussing Martin Fowler's article "Is Design Dead?".

First things first, today's song will be "Lost on the way home" from Chromeo, no special reason though.



There was a time where software wasn't so volatile in terms of requirements, you could gather all the requirements, then take your time to design some solution that would fit the problem perfectly, program it and deploy it, thus leading to this mythical being called "The architect". Things were much more simple than now, where everything changes very quickly, if you design based on the requirements until you've made up a perfect design, most likely the project requirements would have changed by that point, at all times you have to avoid rework and bugs, because one rule still applies now, as time passes, the cost of changing software stuff grows exponentially.

That is where agile software development comes in, a series of techniques designed to make software building in chaotic enviroments easier. One of it's most famous focus being Extreme Programming.

Extreme programming is a bit controversial, mainly because it ignores almost completely all "serious" techniques. It focuses mostly on having functional, running software as early as possible. Skipping investing time on heavy requirements engineering and design.

XP on requirements:
Since requirements change very quickly, you don't need to waste much time knowing all the requirements, instead, know the most important, basic requirements and start designing on that.

XP on design:
Design the most flexible, easiest, simple possible. Don't rely on diagrams, they are a waste of time because they are hard to keep updated, the most easiest way of design is clean code.

XP on coding:
Start coding quickly, don't code anything you think you're going to need in the near future, instead focus on the things you need to code now. After you coded and tested everything, refactor.

XP on refactoring:
Refactoring maybe the angular stone on XP, it is the main thing that keeps an XP project clean.
Refactoring can be summarized as: once you have functional code, clean it up so you get understandable, simple code.

Since XP relies on the fact that on some point, things are going to change the previous steps apply to the project on stages (stories).
Once you made functional code, you get to know which stuff is missing (at least on a very near future) so you get requirements for that functionality, design, code, test, refactor, test.

So, as the title asked, is design dead?
I agree with the author that design isn't dead, not at all, no matter what new technique is invented, you will always need some kind of design to make a software project maintainable and understandable. However, since everything is more volatile on software development than it used to be before, design has evolved to some more simple, fast, clean way of design.

miércoles, 3 de febrero de 2016

Who needs an architect?

Today I will discuss the article "Who needs an architect?" by Martin Fowler.

Today's song will be "E.V.A" by Public Service Broadcasting, no special reason though.

The article talks about the definition of "software architect", the author explains how architecture is a term created to make software design sound more complex than it actually is and with a lot of Matrix references he states that architecture is just a social convention to describe what most developers think as "a high level representation of a system". Then he states that there are two kinds of software architects, the Architectus Reloadus (yes, Matrix reference here) which is most like The Architect from Matrix Reloaded, a kind of developer which has to take every decision regarding the system design, which creates a bottleneck and adds complexity to the system, and then there is the  Architectus Oryzus, which is more like a guide to the overall system development, and I think Fowler makes a bold statement when he says "the architect's value is inversely proportional to the number of decisions he or she makes", because if the architect makes few decisions then he isn't needed (the main idea of the article), however, Fowler also states that an architect decides things that shouln't change in the system, and since software isn't bounded by laws of physics as traditional architecture, then you could, in theory, build systems that are bound to change.

It all sounds very neat, and if that could be true, then Fowler has a point, there would be no need of an architect, however, I think in real software projects you need someone to lead how the system should be developed, and since every software developer knows that every piece of software we build will need to evolve sometime software projects can become a real mess very easy. The most simple system can become really complex if the developers don't have a blueprint to guide them. Lots of duplication, unneeded components and other components doing stuff that they shouldn't do. That is where the architect comes important, by designing a system he creates a blueprint which will guide the whole development, a good architect determines by his experience which things should be done bound to change and which things don't, archieving the middle ground between complexity, ease of change and maintainability.