Around 1994, at Medaille College, I wrote a MARC record editor in QuickBASIC. Part of building it was working out word wrap myself, and that turned out to be fun.
It also turned out to be useful later. By then I was working in IT at Plattsburgh State. Chris Allegretta was a computer science student who did work-study on our help desk, and when he graduated, we hired him. We were roommates for a year or so in the late ’90s.
Our apartment had a third bedroom we used as a computer room, and we called it the Lab. Chris was writing the text editor that became nano. When he got stumped on how to implement word wrap, I explained the algorithm I’d used in the MARC editor. That knowledge went on to inform the earliest versions of nano.
A little code I wrote for catalog records ended up in an editor that ships with most Linux systems today.