Ancestors

Written by Jean-Baptiste "JBQ" Quéru on 2025-01-12 at 06:09

"Legacy code" is often code that you want to replace because you don't understand it. The problem is, before you can replace it, you need to understand it, and, once you understand it, replacing it is rarely the cheapest option any more.

[#]SoftwareEngineering

=> More informations about this toot | More toots from jbqueru@fosstodon.org

Written by AN/CRM-114 on 2025-01-12 at 23:27

@jbqueru I have heard it said that legacy code is code without tests. There are people pumping out legacy code right now

=> More informations about this toot | More toots from flyingsaceur@ioc.exchange

Written by Not A Convicted Felon on 2025-01-13 at 07:48

@flyingsaceur @jbqueru I fondly remember @samir saying after one of my Code Dojos "Now I see how people can write legacy software in twenty minutes!"

=> More informations about this toot | More toots from sleepyfox@hachyderm.io

Written by Jean-Baptiste "JBQ" Quéru on 2025-01-13 at 07:50

@sleepyfox @flyingsaceur @samir Yup. Legacy code is code for which the maintainers don't have enough understanding, and tests embody that understanding. So, indeed, it's possible to write code without thinking much about it, and, without test or documentation or comments, the knowledge fades away in extremely little time.

=> More informations about this toot | More toots from jbqueru@fosstodon.org

Written by Not A Convicted Felon on 2025-01-13 at 07:56

@jbqueru @flyingsaceur @samir I personally don't completely agree with Feather's simplistic definition, the truth is more multifaceted.

But code without tests is probably on the way to becoming legacy code, yes.

=> More informations about this toot | More toots from sleepyfox@hachyderm.io

Toot

Written by samir, a very hard worker on 2025-01-14 at 12:25

@sleepyfox @jbqueru @flyingsaceur I also have fond memories of that workshop. 😁

And I agree that “code without tests” is an interesting category of legacy code, but not even close to all of it. I have seen so much code with comprehensive test suites that was full of bugs and completely unmaintainable.

=> More informations about this toot | More toots from samir@functional.computer

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113826695516954247
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.591766 milliseconds
Gemini-to-HTML Time
1.153937 milliseconds

This content has been proxied by September (ba2dc).