TGViewer
Amazing PHP Amazing PHP @phpme · 7.69K subscribers
Post #275 6.89K
​​How to Make Your Code Reusable
Reusable code, as a one-stop solution to fix all software problems, is a dangerous myth. Let me explain why.
Let’s say you are writing a software library. You have a great idea bubbling in your head that can create a broadly reusable generic solution. You maniacally code APIs which cover all functionalities and cater to all scenarios. Every possible new scenario, you add it to your API. Your code grows disproportionately. But it is generic in the true sense and everybody starts using it. You are happy.
  • 👍 1
More from @phpme
  1. Sep 11, 2023​​An Internet of PHP PHP is big. The trolls can proclaim its all-but-certain “death” until…
  2. May 30, 2023​​5 Books You Must Read as a Developer In this article, we present a handpicked selection…
  3. May 1, 2023​​Unveiling the secret power of encapsulation In the world of software development, encaps…
  4. Apr 27, 2023​​Avoiding the pitfalls of abstract and common services In the ever-evolving world of soft…
  5. Apr 10, 2023​​Why we should avoid null in software development In software development, null is a term…
  6. Feb 19, 2023Stop using setters In this article, I want to focus your attention on the problem with set…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →