SOLID principles

After reading the section written by Edward Guinness, from the book "Programming Ace the Interview: 160 Questions and Answers for Success" I realize that most of them are very intuitive and not so difficult to understand.

For those who do not know the subject of which I will talk about, SOLID is an acronym that stands for five principles of object-oriented programming and design. These principles are:
  • Single Responsibility Principle
  • Open/Closed Principle
  • Liskov Substitution Principle
  • Interface Segregation Principle
  • Dependency Inversion Principle
In short, each principle aims to avoid dependence between system components. To achieve this purpose, the classes must have a single function, the code must be open to be extended, but closed to modification, you should opt for the composition rather than inheritance and not add functionality that in the future may be irrelevant .

Despite I never had heard about these principles, when we use an object-oriented approach, from an early stage as programmer we learn to write code that can be reusable, maintainable, understandable, etc. I agree with the author that can often be difficult to know how we should apply each of these principles, since projects are often complex. However, I think if you start with a good overall system design, planning can be organized and therefore avoid common mistakes that can cause the project fail.

The SOLID principles are applied at the time of encoding, however, initially they have to be seen from the perspective of analysis and design.

It isn’t hard to see why some programmers develop superstitions about the systems they maintain.

It is interesting to see how the preceding sentence applies many times in our projects, since most of them lack a proper analysis and our code is held with tweezers, ie is too fragile to changes.

In conclusion, I found it very educational to read the subject, because it is always good to practice tips that can be useful to us and work cleaner and orderly manner. And how the author says about what to do when we do not know something, you must rely on experience and common sense.

Software Craftsmanship

In this new blog post, I will talk about the episode of the podcast with "Uncle Bob" Bob Martin. The host Markus discussed with him the topic agile software development and software craftsmanship.

According to what I have read in past documents, a software architect has the task of be the guide of the team, so he has the necessary experience to know what will be built, besides that, no only he is dedicated to write code, but also who cares about the whole process it involves.

It is interesting to hear that when future engineers graduate from schools face projects unknown. They must get rid of the idea that in a project his only task is to codify, since in reality, involves many more steps ranging from analysis, design until the full development with which you can get an overview of the system.

It is also important to understand that to maintain a high market value, then we must produce things that have value. I think this has much to do with the way that the product is structured and how was the process of development to reach the end of it. However, there are many problems in the industry, since decisions are taken separately, where for one hand there is a team of programmers and on the other hand, there are those who take the decisions or are the project leaders.

I found very attractive the idea with which describes the software craftmanship, where the less experienced people learn from those who have worked for many years in the industry. The most experienced people share their knowledge and skills in order to create a community that is fully connected and can grow together, into a community of professionals.

I totally agree with Bob Martin's approach, and I think as programmers must constantly be learning because of new trends that emerge every day, so it is important to create a community that is mutually supportive. Also, the idea should not only focus on writing code, but also that the whole team must know the process so that all decisions made do not affect the final result.

In conclusion, what I understand about the software craftmanship is to unify the concept where the programmer is rigid, analyst and scientist with the concept of apprentices in ancient times.

Is Design Dead?

The article by Martin Fowler talks about the advantages of Extreme Programming over other development methodologies of Software Engineering. Many years ago there were methods in which there was not possibility of making changes to the projects quickly and cheaply, however in recent years we have been able to see that software is constructed so that it can be easy to add functionality without having to invest much time and money.

Among the practices of Extreme Programming exists the philosophy that you should not add add complexity that isn't needed for the current stories, that is, if extra functionality is useless in the future is better to leave the project simple. Unlike the building area in software development there is a key difference between the architects, designers and programmers.

A programmer learns to design and builds software that can be scalable in the future, in this way, when they become the architects of the projects they have the skills and experience needed to guide the team, because they have a wide vision of the problem to solve.

I agree with the article, and I think that design is not dead, but it has evolved. I think we can take the best of each development methodologies, so that we can have better strategies to solve a problem or planning a project.

As I said in last blog entries, we live in a time of changes and we need to be ready to deliver applications and useful projects for people, which means that changes are inevitable and we must be ready for them without having to waste time adding functionality and fixing bugs.

Finally I think when you talk about Extreme Programming it does not mean that you do not have defined stages (such as design, coding, etc.) but its aim is to do that the code be simple, efficient and scalable.

 
Software Design and Architecture Blog Design by Ipietoon