Hacker News new | ask | show | jobs
by arikrahman 53 days ago
Literate programming would provide specs and code instead of working backwards from hard coded functions to figure out specs.
1 comments

> working backwards from hard coded functions to figure out specs.

People do that? Actual professionals?

Yes all the time actually, especially when making system migrations. Uncle Bob writes about this in Clean Code. It is actually extremely common since it's the most apparent course of action to look at hard-coded values in maintenance and backport it as specs to new system.