News for hackers. Stuff that matters.
Re:Writing C for Curl by tuetuopay on Monday April 07, 2025 @06:04AM (#43609640)
Everything is a balance. IMHO, the "identifiers should be short" "functions should be short" and such are knee-jerk reactions to overly long things that are common in some other languages (looking at you, Java). Like the practice of indicating the type, pointer, etc. Stuff ike `pWcharInputBuffer` and such.

There is a balance between `*p` and `inputPointerToMiddleOfBufferThatFrobnicates`.

Re:Writing C for Curl by dahauns on Monday April 07, 2025 @07:57AM (#43610272)
>Everything is a balance.

Very true, or as I like to put it: everything is a tradeoff.

Over decades of programming, I'm fairly certain my preferences for things like function/identifier length could be plotted along a damped oscillation curve. :)