Whether you are a beginner or an experienced programmer, it is always important to build good software. Some developers tend to end up with messy code due to deadline pressure which often results in an erroneous program. Poor codes will often result in bugs and developers might end up spending more time fixing the issue than writing the code. To build a good software, you need to have a good set of windows app development tools but more importantly, you should know how to write a better code. In this video from the recently concluded DelphiCon 2021, Embarcadero MVP and owner of GDK Software, Marco Geuze, will introduce us to the so-called SOLID Principles that could help developers and programmers write better codes.
What are the SOLID Principles in writing a better code?
The concept of SOLID Principles is created by Robert C Martin who is also the brain behind other best-selling books about software engineering. Interestingly, SOLID is an acronym that stands for the five principles that developers can use to write better, more understandable, more flexible, and more maintainable code. The “S” stands for the Single Responsibility Principle which states that classes should have a single responsibility and thus only a single reason to change while “O” stands for Open-Closed Principle stating that classes and other entities should be open for extension but closed for modification. The “L” stands for the Liskov Substitution Principle, a concept originally based on Barbara Liskov which states that an object and a sub-object must be interchangeable without breaking the program.
The “I”, on the other hand, is about the Interface Segregation which states that clients should not be forced to depend upon interfaces that they do not use while “D” is about the Dependency Inversion Principle indicating that high-level modules should not depend on low-level modules but both should depend on abstractions.
How to Apply these principles in Delphi?
To clearly understand the concept of the SOLID Principles, Marco will deep dive into each principle and will explain how each principle works through a series of step-by-step demonstrations. He will be using the RAD studio to show us how exactly to apply these principles in Delphi. To learn more about SOLID Principles and to see how to apply these when developing Delphi applications, feel free to watch the 1-hour-long webinar below.
Conception. Code. Compiler. Déployer.
Commencer l'essai gratuit Mettre à jour aujourd'hui
Édition communautaire Delphi gratuite Édition communautaire gratuite de C ++ Builder