Hacker News new | ask | show | jobs
by booi 54 days ago
code
1 comments

Literate programming would provide specs and code instead of working backwards from hard coded functions to figure out specs.
> 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.