Skip to content

Good Coding Music

Deep dives, thoughts and journals

Menu
Menu

The no-architecture source code architecture

Posted on January 1, 2021December 23, 2021 by Gibson

When I start a project I usually just write the part on whatever is needed at that time. There is no planning, no notes, and no whiteboard and I just do whatever my intuition is telling me. I feel if I stop coding the momentum will stop and I reset. I would then have these many micro-projects that do only one thing and then convert them into single functions on the main project. I avoid classes if possible.

I would seize the opportunity while I'm full-on velocity. Quickly dived into my code editor without any thoughts of any fear of failure and uncertainty. This is the time when I am naive is important. It is the moment that I can create new things. The result is a new but broken prototype that kind of works.

The next day I would see the code and it will be a mess. I wouldn't dare to show this to anyone as I think they will never consider working with me in the future when they see it. It's not that I'm a bad programmer it's just I don't pay much attention to the source code architecture.

The problem with source code architecture is that it's objective also. I would think that every person has a different tolerance for what is messy and what is clean. I have worked with codebases that were serving 2k+ monthly paying customers but a majority of its code is sitting on a single index.php file and a few extra component classes. A lot of us will think this is a poor design choice but the product doesn't care what you think while it is making money.

It is also hard to prioritize the refactoring when every day people find bugs and you have to patch them on the current non-refactored state. Once you add these fixes it just makes it harder and harder to refactor as the refactoring could cause regression on these fixes. It's like you've already invested and you don't wanna touch it anymore.

Thus the popular solution is to start adding unit tests. But that will just take more time as you have to write and maintain extra lines of unit test code. This may be a valid solution for companies with vast resources like FAANG companies. But to a simple person (a.k.a the 90%) this may only delay everything else.

Just look at WordPress the software that powers 60% of the websites around the world

I would say I love functions very much and the no-architecture software architecture fits me. I like how Sublime Text 3 and CMD+R would let me quickly type the function name and jump to that section of the code. It also feels good that I have a working prototype for myself at the end of the day.

Happy new year! wishing you all a healthy 2021

Leave a Reply Cancel reply

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

Posts

  • April 2022
  • February 2022
  • November 2021
  • October 2021
  • April 2021
  • February 2021
  • January 2021
  • December 2020
May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Apr    

Recent Comments

  • Pedro on Why I’m Losing Trust in Open Source
  • Pedro on Why I’m Losing Trust in Open Source
  • andydj on Why I’m Losing Trust in Open Source
  • Omar on Why I’m Losing Trust in Open Source

  • 0
  • 2
  • 3
  • 23
  • 20,131
  • 10,902
©2022 Good Coding Music | Built using WordPress and Responsive Blogily theme by Superb