As the title says, it is completely unnecessary to rewrite code that it has already been written, it is, most of the time, a waste of your time and effort. With all the open source code available nowadays, it is really probable that you find whatever you are looking for on sites like github, gitlab, bitbucket or any other site, and if you don’t find it, well, then now you know what’s going to be your next open source contribution. You should really focus on writing building on top of what others have already done, also, it is worth to notice that you should be writing reusable code as well.
Some tips on writing reusable code:
- Don’t repeat yourself: if you find yourself writing the same code several times, probably you should move that piece of god to a module or something alike.
- Make a class/method do just one thing: remember the Unix philosophy? write programs that do one thing and do it well, also, write these programs to work together, the secret is in writing generic code to accomplish one simple thing, then use the output of that as input of another program to accomplish a more complex task, don’t make code too generic tough, or it will be difficult to find a purpose to it.
- Write unit tests for your classes and make it easy to test classes.
- Remove the business logic or main code away from any framework code.
- Try yo think more abstractly and use Interfaces and Abstract classes.
- Write code that can be easily extended in the future, for code leverage of course.
- Don’t write code that isn’t needed, if you doubt if the code is needed, then it is not, just leave it out.
- Try to reduce coupling, avoid modules/classes depending on each other.
- Be more modular, again, the Unix philosophy.
- Write code like your code is an External API, write everything modular and do one thing, then make these components work together to accomplish one common objective, by the end of the day you will have nice, modular and reusable code.
Validation and verification are two different concepts in software engineering, each one can be abbreviated to the questions: are we building the right system? and are we building the system right?
Validation is concerned with checking that the software actually satisfies the customer’s needs and its objective is to demostrate that the product fulfills its intended use when placed in its intended enviroment, whereas verification is the process which checks if the software is functioning correctly and its objective is to ensure that work products meet their specified requirements.
User Interface Design focuses on anticipating what users might need to do and ensuring that the interface has elements that are easy to access, understand and use to facilitate those actions.
The reaction or the experience of the user when ising software doesn’t only depend on the functionality and the aesthetically design, what more influences the user to feel comfortable or not is the user interface.
Gestalt Design Principles
Similarity: occurs when objects look similar to one another.
Continuation: occurs when the eye is compelled to move through one object and continue to another object.
Closure: occurs when an object is incomplete or a space is not completely enclosed.
Proximity: occurs when elements are placed close together.
Figure and Ground: The eye differentiates an object from its surrounding area. a form, silhouette or shape is naturally perceived as figure, while the surrounding area is perceived as ground.
Best practices for User Interface Design
- Keep the interface simple
- Create consistency and use common UI elements
- Be puposeful in page layout
- Strategically use color and texture
- Use typography to create hierarchy and clarity
- Make sure the system communucates what’s happening
- Think about the defaults
Software maintenance stands for all the modifications done after the delivery of a software product. A software maintenance is needed in order to mantain our software up to date.
Modifications in the software may be required because of changes in the market conditions, changes in the client requirements or even host modifications.
There are some types of maintenances based on their characteristics:
This includes modifications and updates done in order to correct or fix problems, which are either discovered by user or concluded by user error reports.
This includes modifications applied to keep the software product up-to date and tuned to the ever changing world of technology and business environment.
This includes updates done in order to keep the software usable over long period of time. It includes new features, new user requirements for refining the software and improve its reliability and performance.
It aims to attend problems, which are not significant at this moment but may cause serious issues in future.