r/developersIndia • u/KissMyAash Full-Stack Developer • Nov 21 '23
General Which is the best maintained code base you've seen so far? Why was it the best?
Also, don't mind including tips to maintain a good code base.
270
Upvotes
β’
u/AutoModerator Nov 21 '23
Recent Announcements
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
293
u/prat8 Backend Developer Nov 21 '23
Yay! Lurking here for some SOLID responses.
15
u/Worth-Librarian3582 Nov 21 '23
!mine for sure
42
u/Amazing_Theory622 Web Developer Nov 21 '23
Not personal experience, but the people who have worked on facebook say that it's the most beautiful thing they have seen as well as the practices followed there
192
u/mravi2k18 Software Architect Nov 21 '23
A bit of shameless bragging here... Hoping it would inspire a few to do the right thing even when no one else is noticing.
TL;DR - Got appreciation from a client after 5 years because the new team that took over our code found it well maintained.
Back in 2013-14, I and my colleague (just the two of us) were working on a highly complicated LAMP stack project for one of our clients. We both had set ourselves high standards about naming convention, design patterns, principles, doc-blocks, inline comments, API documentation, etc. We mostly used dokuwiki for all documentation.
We had worked on the project for about 18-24 months. Due to the complexity and the burnout, we offered to transition the project to some other team.
So sometime in 2015, we helped the client move their project to company A. Handover was smooth. We did shadow support for a month and that was it. We did not hear from the client or from company A again (with respect to that project).
Fast forward 2020. The client calls me and offers me a consultant role β asking me to audit the code and infrastructure. Puzzled, I ask them "why me? that too after almost 5 years?". The client wasn't keen on answering the why part. I was skeptical, but agreed to do a walk-through to decide if I would handle it or not.
During the walk through, I found out that the client decided to rewrite the entire application in Java/Spring boot. So they transitioned the project from company A to company B.
Company B complained that company A had given them little or no handover documentation. Even after multiple requests, company A kept throwing some trashy irrelevant docs (not sure if it was intentional or due to skill gap).
Finally, out of desperation, they pulled out the original documentation we submitted. Company B had put together 1 PHP developer + a bunch of Java devs to rewrite the application, module by module.
It was that PHP developer who couldn't keep his mouth shut. He kept praising about our code to all the stakeholders that the client decided to bring me back on board.
It took 5 years for good work to be noticed and appreciated.
238
u/anime4ya Nov 21 '23
It had only 1 file .gitignore ππ
101
u/sprectza Nov 21 '23
Here's my favourites in terms of code quality (very biased/opinionated)
29
u/Friendly_Armadillo17 Nov 21 '23
Chromium WebRTC It's quite easy to understand if you're a newcomer. The class names are such that you'll easily understand what the purpose is and how it's interacting with the other components. They include diagrams from RFC so that way it's easier to grep and find something you need quickly too.
42
u/OrdinaryAndroidDev Mobile Developer Nov 21 '23
I have an Android app with clean architecture. Maintaining the code pretty well (except adding test cases) many peers have reviewed and appreciated the code quality.
Also a great app to use!
https://github.com/HarshNandwani/Digital-Tijori
14
u/[deleted] Nov 21 '23
A legacy desktop application. Everything from checking out the source, building it and posting pull requests had been automated with scripts and hooks. Very little manual setup involved except for raising tickets for access.
And they arranged topic wise sessions for the freshers covering the core architecture and domain related topics. I've never seen any other company giving so much importance to their code and knowledge transfer.
I won't be surprised if someone is able to identify the company/product from what I've revealed so far. π€«
13
u/alokesh985 Nov 21 '23
My previous company.
My current companyβs code base is so bad, it hurts my eyes.
6
u/Tourist__ Nov 21 '23
https://github.com/eclipse-iceoryx/iceoryx
1
u/KissMyAash Full-Stack Developer Nov 21 '23
I ask this today, and then I see this reel
https://www.instagram.com/reel/Cz2L4ACICUz/?igshid=NzBmMjdhZWRiYQ==
4
u/[deleted] Nov 21 '23
Postgres is the best I have seen so far. So many comments even for a single variable
4
u/BhupeshV Moderator Nov 21 '23
Pining this
6
u/RevolutionaryStrider Software Engineer Nov 21 '23
Apollo lunar code on github
3
u/AppropriateCrew79 Software Engineer Nov 21 '23
The git codebase byfar. The codebase is so well documented and structured (from having uniform naming conventions to code styles) everything is just a beauty.
3
u/cow_moma Senior Engineer Nov 22 '23
Software solves business problems
Business problems are inherently complex
That complexity needs to be accommodated somewhere using the appropriate design patterns
Usually we do not have the luxury of time or fixed requirements that we abstract away the complexity in an elegant manner
The best maintained code bases are either those who have moved away the complexity to some other place. Because the latter has never happened, Stakeholders never give enough time, Product owners frequently change requirements and priorities, So we write and rewrite shit
3
u/[deleted] Nov 22 '23
Though not a PHP person, laravel codebase was something amazing. Very Well written.
In C it would be Redis.
4
u/s_suraliya Nov 21 '23
For someone from the python world, I find the Saleor code to be pretty clean and maintained. https://github.com/saleor/saleor
2
u/Exciting-Cricket-219 Nov 22 '23
Facebook AI similarity search
2
u/getrooted19 Nov 22 '23
Personally Ankidroid (an open-source flashcards android app) has one of the best codebases I have ever seen for an Android app. The app has been around since Android 2.0-3.0 days and I have contributed to it quite a few times over the years & the code review process is really strict. (There are Google devs who are working on the codebase as well)
2
u/skywalker5014 Nov 21 '23
hello world
2
u/Kingzman03 Backend Developer Nov 21 '23
My hello world, work of art
1
u/[deleted] Nov 21 '23
RemindMe! 5 day
1
u/-Pachinko Nov 21 '23
apache incubator-answer
0
u/[deleted] Nov 21 '23
[deleted] β view deleted comment