logoalt Hacker News

yipinwong • today at 3:06 PM • 2 replies • view on HN

"old" is relative term. Given @TheRogue's account is 4 years old, maybe new to field. If so, it feels "old".

I understand your sentiment of justifying not being "old". but you gotta bring up "legacy code".

"Working Effectively with Legacy Code" defines legacy code as code without tests thus hard to change it easily or with confidence.

So either @TheGuardian is discussing about the age of software relative to his/her perspective or confused "legacy code" without understanding deno code base.


Replies

hbn • today at 3:26 PM

If 8 years is "super old" in terms of software, what is Windows? Or Emacs? Or old Fortran software from the 50s in the Voyager software?

➕ show 2 replies
bilalq • today at 4:36 PM

> "Working Effectively with Legacy Code" defines legacy code as code without tests thus hard to change it easily or with confidence.

This is not a universally accepted definition. I've owned plenty of services with 95%+ unit test coverage, massive integ test suites, and synthetic canary tests that ran every minute that I would consider legacy. Plenty of AI slop today gets barfed out with 100% test coverage, but much of it is legacy from day 1.

➕ show 1 reply