michaela-damm.jpg
blocshop
January 11, 2021
0 min read

Software development principles you should know about

Software development principles you should know about.jpeg

What exactly are the principles of software development?

Software developers and engineers created or adapted several acronyms and idioms to help them stay focused. Some of these acronyms come from the fields of philosophy or science. Others engineers and project managers coined themselves to guide the software development process. Let’s take a close look at these principles, starting with the principles that developers adapted from other fields.

First off, let’s examine measure twice, cut once.

Measure twice, cut once

This principle originated sometime in the middle ages. Back then, the expression was, “mark seven times and cut once.” This is the version still used in Russia today. Regardless of how many times we measure, the principle remains the same: proper planning methods will yield the best results.  The literal meaning comes to us obviously.  If we have a piece of wood that needs cutting, it’s better to double-check our measurements so we don’t waste wood making mistakes. When applied to the world of software development, we use the term a little more broadly. When we measure twice and cut once in software development, we plan comprehensively, putting together the right team and mapping out our steps in detail. Developing within agile methodology we plan our sprints and prepare for testing.

Occam’s razor

Occam’s razor comes to us from an early medieval English Franciscan friar, William of Occam. The principle that William of Occam espoused was "entities should not be multiplied without necessity.” But what’s with the word “razor?” In philosophy, a razor allows us to eliminate unlikely answers to a problem.  Occam’s razor states that the simplest solution is usually the best solution. We should not try and apply complex answers when a straightforward answer will work as well or better. In software development, we use the principle of Occam’s razor to question adding complexity to a software solution. We can make code function as required by keeping it simple and easy to understand. Straightforward, clear code works better and proves easier to test.

KISS (keep it simple stupid)

This principle was coined in the US Navy in the 1960’s by Kelly Johnson. Johnson coined the acronym to describe how designers of aircraft should work. They should make their designs simple enough that an average mechanic with limited tools could repair the aircraft. KISS directs us to avoid unnecessary complexity, to design with simplicity as a goal. In software development we use the KISS principle to remind us to make our code easy for others to understand and navigate. Testing and debugging simple code will always be better than combing through byzantine structures to find errors. We must create code that shows simplicity and elegance, not code that shows off how dense and knotty our developers can write.

Now let’s take a look at principles created in the software development world

LOD (law of Demeter)

The law of Demeter guides developers to divide classes into independent entities. These entities should not connect with other entities unless they are closely related. The idea is that each class in code should communicate with related classes, but not with those they are not related to. In the original law, this meant “talk to your friends, don’t talk to strangers.” The law was first proposed by Ian Holland in 1987 while he was working at the Demeter Project. Demeter allows developers to keep systems organized and limits the possibility of bugs.

DRY (Don’t repeat yourself)

Andrew Hunt and Dave Thomas stated this principle in 1999 in their book The Pragmatic Programmer. "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." At its core, DRY discourages engineers from repeating code in more than one place. This sort of repetition causes trouble when troubleshooting. 

A good example of DRY on a meta-level is HTML 5’s separation of HTML from CSS. Before HTML 5 CSS code would be embedded in the HTML itself, so every time a heading tag’s style would change, designers would have to comb through all the HTML to make changes. Often they would miss a tag or two, leading to messy designs and incoherent page layouts. When all the styling elements went into the CSS, designers had just one place to look to make the changes.

Avoid premature optimization

Donald Knuth played out this principle as a serious issue for programmers in the 1960’s. He wrote, “The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.”  Developers need to make sure their code functions and proves useful before the team optimizes it. Otherwise, they will waste valuable time and resources on code that might not meet requirements.

YAGNI (You aren’t going to need it)

This principle guides developers to create the code that the team needs at the moment. They should not anticipate extra functions or try to code with a very broad agenda. Instead, the developers should create exactly what the software needs, extending functionality later as necessary.

Big Design Up Front (BDUF)

BDUF asks developers to plan thoroughly before coding. Typical for waterfall method software development, in agile we can also use the principle of BDUF. We can make sure we completely understand the requirements and the needs of the end-users before we begin coding.

SOLID

Solid stands for: 

S  -   SRP (Single responsibility principle)

O -   OCP (Open closed principle)

L  -   LSP (Liskov substitution principle)

I   -   ISP (Interface segregation principle)

D -   DIP (Dependency inversion principle)

Let’s take a brief look at each element of SOLID:

SRP (Single responsibility principle)

SRP calls on developers to ensure that each element of code does one and only one thing. 

Our code should not act as a multi-tool, but rather as specialized tools meant for specific jobs. We should not use a hammer to change a pipe.

OCP (Open Closed principle)

OCP asks developers to finish sprints with the mindset that the code is open to expansion or extension but closed to modification. We do not want to re-invent the wheel with every iteration.

LSP (Liskov substitution principle)

The LSP principle states that code elements in a subclass should behave in the same manner as the elements in the superclass above them. Barbara Liskov described the principle in 1987.

ISP (Interface segregation principle)

ISP leads developers to code interfaces small enough that end users can focus on what they need, leaving out functionality that they don’t.

D -   DIP (Dependency inversion principle)

DIP encourages developers to focus on the interface level, not the implementation. Agile encourages DIP by asking for user stories. If we keep our eyes on what end-users and stakeholders require, we design simple, elegant solutions.

Here at Blocshop, we follow these software development principles to make solutions that work for our customers. If you’d like to see our implementation of these principles in action, please get in touch!


Learn more from our insights

roro665_Best_Practices_for_Integrating_AI_in_Fintech_Projects_76570294-b2df-4e1d-a775-bdc646351d08_2 (1).png
November 19, 2024

Introducing Roboshift: AI-Powered ETL and Data Processing for Compliance in Regulatory Industries

Discover Roboshift, the AI-driven ETL solution by Blocshop, designed for secure, efficient data processing in fintech, banking, and other regulatory industries.

roro665_Best_Practices_for_Integrating_AI_in_Fintech_Projects_76570294-b2df-4e1d-a775-bdc646351d08_1 (1).png
October 16, 2024

Best practices for integrating AI in fintech projects

Discover 8 key steps for AI implementation in fintech and open banking with a focus on compliance, data quality, bias, and ethics.

roro665_Extract_Transform_Load_process_for_data_that_is_power_8734b36d-5737-4fdb-904e-ea6bca40c51b_3.png
October 09, 2024

Real-life examples of generative AI products and applications

See real-life examples of generative AI products and applications developed by Blocshop that impact industries from retail to fintech.

roro665_data_transformation_from_one_format_to_another_with_g_91332f66-93b0-48d8-9d5e-a8609529cbb7_3.png
September 25, 2024

Generative AI-powered ETL: A Fresh Approach to Data Integration and Analytics

ETL meets generative AI. See how AI-powered ETL redefines data integration and brings more flexible data processing and analytics across industries.

roro665_uk_pensions_dashboard_reform_magazine_cover_collage_-_1888e056-80f6-4aac-958c-bf02b128a7d3_1.png
September 03, 2024

UK Pensions Dashboard Compliance: Deadlines, Transition Steps, and the Use of AI-driven Data Mapping

How AI-driven data mapping can support UK Pensions Dashboard compliance. Understand key deadlines and steps for efficient data conversion and transition to the UK Pensions Dashboard.

roro665_a_cover_image_depicting_data_conversions_and_compliance_c8ddf35a-cc0f-447a-abb7-0f4b1f14bb64 (1).png
August 23, 2024

Using AI for data conversion and compliance in the banking sector

Discover how AI transforms data conversion and compliance in the banking industry, optimizing processes while managing risks.

ai_applications_in_banking_and_banking_technology_blocshop.png
August 14, 2024

AI Applications in Banking: Real-World Examples

Explore how major banks are using AI to enhance customer service, detect fraud, and optimize operations, with insights into technical implementations.

20221116_153941.jpg
July 31, 2024

From Concept to MVP in Just 12 Weeks with Blocshop

Blocshop delivers your MVP in 12 weeks, solving real pain points with agile sprints, daily scrum meetings, and fortnightly reviews. Here's the process explained.

chatgpt4_ai_integration_blocshop-transformed.png
July 19, 2024

ChatGPT-4: An Overview, Capabilities, and Limitations

The technical aspects, usage scenarios, and limitations of ChatGPT-4, including a comparison with ChatGPT-4o.

roro665_depict_a_data_sample_thta_completely_changes_its_form_725a4f20-ea40-4dd1-a68d-5c4327c9bf24_1.png
June 20, 2024

Generative AI used for data conversions and reformatting

How to use generative AI for data conversion, addressing integrity, hallucinations, privacy, and compliance issues with effective validation and monitoring strategies.

DALL·E 2024-05-30 09.37.01 - An illustration suitable for an article about ISO 20022. The scene should feature a modern, sleek representation of the ISO 20022 logo in the center. .webp
May 28, 2024

ISO 20022 Explained: A Comprehensive Guide for Financial Institution Managers

What is ISO 20022? How does it affect companies and institutions in the fintech and banking industry and how to prepare for its adoption? All explained in this article.

DALL·E 2024-05-22 20.55.08 - A detailed and high-quality DSLR photo of a person using a laptop to shop online, showing personalized product recommendations on the screen. The back.webp
May 16, 2024

Key AI Trends in E-commerce and Overview of AI integrations for E-commerce Platforms in 2024

Transform your e-commerce platform with AI tools for personalization, analytics, chatbots, search, and fraud detection. Boost sales and improve customer experiences.

eIDAS mark.png
May 09, 2024

Digital Identity and Payment Services in the EU in 2024: Key Updates

eIDAS 2.0 and PSD3 are set to enhance how digital identities and payment services are managed across the European Union in 2024. Here’s an overview of how each framework contributes to the digital landscape of the EU, what to expect, and how to prepare.

eIDAS 2 in fintech and open banking EU market.png
May 06, 2024

What is eIDAS 2.0 and EU Digital Identity Wallet and how will it change the EU digital market

Learn how eIDAS 2.0 and the EU Digital Identity Wallet will transform digital transactions and identity management across the European Union.

best large language models for ERP systems.png
March 31, 2024

Language Models Best Suited for Integration into ERPs

Four prominent large language models stand out for their compatibility and effectiveness in ERP system processes and automation. See what they are.

PSD3 in open banking Blocshop.png
April 23, 2024

PSD2 vs. PSD3: The Evolution of Payment Services Regulation

What is PSD3 in open banking? See how PSD3 compares to PSD2 and what should banks and fintech businesses do to ensure regulatory compliance in the EU market.

roro665_hands_working_with_a_laptop_in_a_modern_office_there_is_20dca307-c993-4539-99d7-fd5ca264248c.png
April 14, 2024

Enhancing ERP Systems with AI Chatbots

Explore how AI chatbots can transform ERP systems, enhancing efficiency, decision-making, and user interaction.

eIDAS in fintech and open banking EU market.png
April 29, 2024

eIDAS: The regulation helping secure Europe's digital future

See how eIDAS enhances EU digital transactions with secure identity verification, supporting e-commerce and public services across Europe.

hybrid ERPs.png
March 21, 2024

Hybrid ERP: An Innovative Approach to Enterprise Resource Planning

Hybrid ERP is a blend of cloud and on-premise solutions. With expertise in both, Blocshop is uniquely positioned to help you with hybrid ERP development and implementation.

0-4 cover.png
October 03, 2023

IT Staffing: Individual Hiring vs. Specialized Developer Teams

Should you hire individual developers or go for a specialized, custom-built developer team?