Menu

1 / 3

Developer cleverly shrank 2,600 lines of C into a six-line script but still ending up losing sleep

Reading 0:00
15s threshold

software

ON CALL

It wasn't the not-very-legal source code raid that caused it, but a colleague who punted a pager

Working in tech support can be thankless when gormless colleagues leave you sleepless. Which is why, each Friday, The Register runs a new instalment of On Call – the reader contributed column which ensures your work to keep tech alive doesn't remain unnoticed.

This week, meet a reader we'll Regomize as "Tim" who told that while working for a phone company he once rewrote 2,650 lines of C as a six line shell script.

He performed that feat after being asked to fix a data transfer program that, strangely, included a bespoke implementation of the venerable File Transfer Protocol (FTP).

"Writing the script took eight hours, most of it tracking down the source code of FTP so I could see if it would do what I wanted," Tim wrote.

This story took place before the World Wide Web became the way to find information online.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.