|
|
|
|
|
by douche
3749 days ago
|
|
> use a 20 char variable name when 3 would do. I generally think functional programming is a smart idea, but knock it off with the short, generic function names. We're not writing Fortran on an 80-char terminal any more. Name shit what it is, it's going to auto-complete anyway after you type 3-4 characters, so you might as well give it a name that you won't have to puzzle about later. |
|
It's not just the hassle of typing long names out; a good editor can help there. It's the visual overhead of having so many extra pixels lit as you read things.
Short functions are good for local functions:
It's nicer to instead have: let al = sb.AppendLine al bla ...This is especially true then the local code pattern is 2, 3, or more lines or when it contains branches.