News for hackers. Stuff that matters.
Re:John Carmack: Career Advice by MaxBarraclough on Friday December 18, 2020 @07:56AM (#25466597)
> Much more programmerly than "1/n"

On the other hand, null-terminated strings are avoided by most modern programming languages, which tend to explicitly store the string's length.

Re:John Carmack: Career Advice by dpedu on Friday December 18, 2020 @10:55AM (#25468262)
Twitter uses a static buffer size of 280 characters to avoid this problem.
Re:John Carmack: Career Advice by MaxBarraclough on Friday December 18, 2020 @11:22AM (#25468554)
I meant the scheme used to indicate it's part of a multi-part message.

the 1/n scheme indicates the length of the sequence upfront, whereas the backslash scheme doesn't.

Re:John Carmack: Career Advice by webmaven on Saturday December 19, 2020 @08:29AM (#25477272)
> the 1/n scheme indicates the length of the sequence upfront, whereas the backslash scheme doesn't.

I've seen a variation of the 1/n scheme that literally uses "1/n", "2/n", etc. to avoid specifying the length up front. Usually the end of the sequence isn't indicated in that case.