ADVERTISEMENT
TechEconomy
Thursday, May 15, 2025
No Result
View All Result
Advertisement
  • News
  • Tech
    • DisruptiveTECH
    • ConsumerTech
      • Accessories
      • Phones
      • Laptop
      • Gadgets and Appliances
      • Apps
    • How To
    • TechTAINMENT
  • Business
    • Telecoms
      • Broadband
    • Mobility
    • Environment
    • Travel
    • Commerce
    • StartUPs
    • TE Insights
    • Security
  • Partners
  • Economy
    • Finance
    • Fintech
    • Digital Assets
    • Personal Finance
    • Insurance
  • Features
    • IndustryINFLUENCERS
    • Guest Writer
    • Appointment
    • EventDIARY
    • Editorial
  • Apply
  • TecheconomyTV
  • Techeconomy Events
  • BusinesSENSE For SMEs
  • TBS
  • News
  • Tech
    • DisruptiveTECH
    • ConsumerTech
      • Accessories
      • Phones
      • Laptop
      • Gadgets and Appliances
      • Apps
    • How To
    • TechTAINMENT
  • Business
    • Telecoms
      • Broadband
    • Mobility
    • Environment
    • Travel
    • Commerce
    • StartUPs
    • TE Insights
    • Security
  • Partners
  • Economy
    • Finance
    • Fintech
    • Digital Assets
    • Personal Finance
    • Insurance
  • Features
    • IndustryINFLUENCERS
    • Guest Writer
    • Appointment
    • EventDIARY
    • Editorial
  • Apply
  • TecheconomyTV
  • Techeconomy Events
  • BusinesSENSE For SMEs
  • TBS
No Result
View All Result
Tech | Business | Economy
No Result
View All Result
Podcast

Home » My Journey to Standard Codebase

My Journey to Standard Codebase

Writer: Jerry Chukwudi Chidiebere

Techeconomy by Techeconomy
March 13, 2024
in Guest Writer
0
coding and Codebase
Jerry Chukwudi Chidiebere

Jerry Chukwudi Chidiebere

RelatedPosts

Adetokunbo Ajibola - data management

Unlocking Competitive Advantage: The Critical Role of Data Management in Today’s Business Climate

May 13, 2025

How Server-Side Rendering (SSR) Improves Web Performance

May 5, 2025

Exploring different coding paradigms is an interesting and demanding path for a backend-heavy software developer.

Coming from the generation that wrote procedural codes and then transitioning into Object Oriented Programming (OOP) when I started working with organised teams. 

It was a different ballgame requiring discipline and adhering to programming standards. 

This article is a compilation of my experiences, lessons, and knowledge I gathered about;

  • the importance of coding standards
  • class organisation
  • frameworks and
  • the seamless migration of legacy codebases.

Note that the examples I will give in this article are typically PHP-based, but the same principles apply to other OOP-focused programming languages like JavaScript, TypeScript, Java, Python, etc.

Procedural Programming  Phase (Spaghetti Coding)

Procedural programming was the beginning of my journey into software development. This paradigm is usually simple when developing very little pieces of code snippets.

However, in more complex requirements, those snippets are grouped into separate files and included in the runtime when required or preferably into separate functions. 

This method indisputably helped me accomplish tasks, but over time I realised the limitations of this method when it comes to developing more complicated applications. 

These limitations include;

  • Having different files that accomplish similar requirements,
  • complexity in managing codebase and unorganised workflows—which increases as the application grows.
Codebase
United BANK
Sample of PHP Login Script for a Procedural Paradigm
Codebase
Codebase

The above code snippet will work for a simple user registration page but will become more complex when adding extra features such as email verifications, etc.

Transition into Object-Oriented Programming

I couldn’t wave off the idea of data and action encapsulation within objects as it seemed to be the solution to my ever-increasing project complexity. 

This idea prompted my first transition into object-oriented programming (OOP). 

My early attempts at object-oriented programming were filled with setbacks resulting from my ignorance of fundamental coding concepts. 

The classes I took, though rigid, turned out incompetent as they excluded several fundamental principles of effective design. 

My Discovery: The Need for Coding Standard

My understanding of the significance of coding standards was fine-tuned when I began collaborating with well-structured teams. 

Guidelines like SOLID (Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion) were followed by these groups. 

These principles are more than theoretical exercises; they provide actual instructions for more resilient, scalable, and easy-to-maintain codes. 

There are numerous things to understand about programming principles but I will explain some important ones.

1. Single Responsibility Principles (SRP)

This is one of the first principles I embraced.

Depending on your preferred programming language, the main requirement for this principle is knowledge of Object Oriented Programming, how it works, and how to organise your codes into classes and methods.

The Single Responsibility Principle (SRP) states that a class should have only one reason to change. 

I started implementing SRP by breaking down my monolithic classes into smaller and precise ones. This made my codebase easier to understand and maintain. 

This saved me the cost of breaking my functionalities into separate files and including them when needed.

Now let’s apply what we’ve learned so far. We will convert the previous functionalities into classes. 

If we are applying the SRP;

  1. We will have a class called Database, which will be in charge of making connections to the database.
Codebase
Codebase

2. We will also define another class called AuthController which will house all the “Methods” that control the Authorization such as register, login, verifyEmail, etc.

United BANK

VERIFYMAIL

Codebase

2. SOLID Principle: Other Components of SOLID Principles.

My coding techniques were further refined as I continued to adhere to the remaining SOLID principles. 

My understanding of the importance of making sure that subclasses and their base classes are compatible came from—the Liskov Substitution Principle (LSP). 

I was inspired to build more detailed and precise interfaces by the—Interface Segregation Principle (ISP), and finally was able to separate high-level modules from low-level implementations by the–Dependency Inversion Principle (DIP).

Programming Frameworks

I started leveraging programming frameworks as I was learning coding standards. Here is why; 

By providing a standardised basis for application development, frameworks guarantee consistency and best practices. 

I was able to reduce the amount of boilerplate code I needed to write because they also offered various built-in functionalities.

Other Benefits of Using Frameworks

I was also able to drastically improve my coding skills after adopting frameworks like React(which relies on JavaScript) for front-end development and Laravel(which relies on PHP) for back-end development. 

By enforcing coding standards and architectural principles, these frameworks strengthened and simplified the maintenance of my apps. 

During my learning phase, the community support and detailed documentation were also beneficial.

Migrating Legacy Codebases

This migration was another leap in my programming journey. 

From the knowledge I gathered to this point, I knew it was time to transform some of my legacy codebases. 

Transitioning from an OOP codebase that was procedural and ill-structured to one that followed conventional coding techniques was one of the most satisfying tasks I ever encountered. A slow, iterative strategy was crucial for a smooth migration.

Firstly before I started reworking, I examined my legacy codebases and ensured I followed coding standards for the most important parts of the code.

I was able to thoroughly test each modification before going on to the next by refactoring it in small steps. 

Using the Single Responsibility Principle, I divided huge classes into more manageable ones. Subsequently, I made sure my classes could be extended without any changes by applying the Open-Closed Principle.

As I refactored my code, I noticed significant performance improvements and my applications became more efficient because I organised my classes better and reduced dependencies.

The use of design patterns also contributed to these optimizations, providing tried-and-tested solutions to common problems.

Conclusion

My transition from procedural to a standard codebase has been a life-changing experience for me. 

My adoption of coding standards like the SOLID principles and the use of frameworks transformed me into a more disciplined and efficient developer. 

The process of transferring historical codebases has been incredibly gratifying, despite its challenges, as it has influenced the creation of maintainable and streamlined applications.

Generally, this series of experiences revealed the trend in the software development industry. It is always changing. 

So, it’s important to adapt to change, learn best practices, and follow coding standards to keep up with the trend. Beyond this, we can also build long-lasting apps that are scalable, stable, and easy to maintain if we learn and adopt these standards. 

Loading

0Shares

Tags: AuthControllerCodebaseCodingJerry Chukwudi ChidieberePHP Login ScriptSRPverifyEmail
Previous Post

Nanonets Raises $29M from Accel to Create Autonomous AI Agent for Back Office Operations

Next Post

Aigboje Aig-Imoukhuede Back as Access Holdings Chairman

Techeconomy

Techeconomy

Related Posts

Adetokunbo Ajibola - data management
Guest Writer

Unlocking Competitive Advantage: The Critical Role of Data Management in Today’s Business Climate

by Techeconomy
May 13, 2025
0

In an era defined by digital transformation and rapid technological advancement, data has emerged as one of the most valuable...

Read more
Abimbola Bakare writes on Server-Side Rendering (SSR)

How Server-Side Rendering (SSR) Improves Web Performance

May 5, 2025
LINDA SAUNDERS and Agentic AI

How Investments in Reskilling Help Businesses Succeed in the Agentic AI Era

May 3, 2025
AI in Africa by Angela - GSMA

Unleashing AI’s Potential in Africa Requires Bold Action on Infrastructure

April 29, 2025
Governor Hope Uzodimma at NCS summit

How Gov. Uzodimma is Transforming Imo State Through Digital Innovation

April 29, 2025
Data-Driven Product Management | Data-Driven Product Management

Data-Driven Product Management: Leveraging Analytics to Inform Strategic Decisions

April 24, 2025
Next Post
Aig-Imoukhuede, Chairman Access Holdings

Aigboje Aig-Imoukhuede Back as Access Holdings Chairman

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Techeconomy Podcast

Techeconomy Podcast
Techeconomy Podcast

Infowave is brought to you by TechEconomy. Every week we will bring new stories from startups and influencers who are shaping and changing the world we live in. We’ll also bring you reports on topics you should know.

Follow us @techeconomyng for more.

CYBERSECURITY ESSENTIALS
byTecheconomy

BUILDING STRONGER NETWORKS AND COMMUNITIES

CYBERSECURITY ESSENTIALS
CYBERSECURITY ESSENTIALS
April 24, 2025
Techeconomy
Digital Marketing Trends and strategies for 2025 and beyond
February 27, 2025
Techeconomy
Major Lesson for Techies in 2024 and Projections for 2025
December 6, 2024
Techeconomy
Major Lessons for Techies in an AI-Driven World | Techeconomy Business Series Highlights
November 26, 2024
Techeconomy
Maximizing Profitability Through Seasonal Sales: Strategies For Success
November 8, 2024
Techeconomy
Techeconomy Business Series
October 15, 2024
Techeconomy
PRIVACY IN THE ERA OF AI: GETTING YOUR BUSINESS READY
May 30, 2024
Techeconomy
Unravel the Secrets of Marketing Everywhere All At Once with Isaac Akanni from Infobip | Infowave Podcast Episode 1
February 9, 2024
Techeconomy
The Role of Ed-tech in Life Long Learning and Continuous Education
October 19, 2023
Techeconomy
Filmmaking and Technology: A chat with Micheal Chineme Ike
June 7, 2023
Techeconomy
Search Results placeholder

WHAT IS TRENDING

https://www.youtube.com/watch?v=g_MCUwS2woc&list=PL6bbK-xx1KbIgX-IzYdqISXq1pUsuA4dz
uba

Follow Us

  • About Us
  • Contact Us
  • Careers
  • Privacy Policy

© 2025 Techeconomy - Designed by Opimedia.

No Result
View All Result
  • News
  • Tech
    • DisruptiveTECH
    • ConsumerTech
      • Accessories
      • Phones
      • Laptop
      • Gadgets and Appliances
      • Apps
    • How To
    • TechTAINMENT
  • Business
    • Telecoms
      • Broadband
    • Mobility
    • Environment
    • Travel
    • Commerce
    • StartUPs
    • TE Insights
    • Security
  • Partners
  • Economy
    • Finance
    • Fintech
    • Digital Assets
    • Personal Finance
    • Insurance
  • Features
    • IndustryINFLUENCERS
    • Guest Writer
    • Appointment
    • EventDIARY
    • Editorial
  • Apply
  • TecheconomyTV
  • Techeconomy Events
  • BusinesSENSE For SMEs
  • TBS

© 2025 Techeconomy - Designed by Opimedia.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.