Line disciplines

it's just more needless mental work. Ideally, you shouldn't have to pore through the rest of the code to understand a single function.

Just use curses, jesus fucking christ.

Strangely, I just noticed that before reading this. It seems this is another one of those "off-by-one" errors, which is why it was so hard to find.

Isn't that for full-screen programs?

You might want to invest in this book if you're doing linux programming.

Attached: linuxprogramming.png (500x660, 120K)

It's for making text user interfaces in terminals. Full screen doesn't make a difference.

Yeah, the good news is it's the same in almost every language, and you'll learn to be more careful and think clearer about those details the longer you program

I don't know about that. I've been coding since 2003, and off-by-one errors are still such a pain in the ass to detect and debug, I always just approach them through trial and error.

Well, then stop doing that and actually try to think what's the correct number lol. Unless you enjoy debugging.

This. Debugging can sometimes drive me to question my sanity.