normalexit

joined 2 years ago
[–] normalexit@lemmy.world 5 points 1 day ago

Clear concise code that reads like documentation is the ideal. Good function and variable names, formatting, and encapsulation play into this. Tests should document and describe the system.

If it still isn't clear what the code is doing, and I'm all out of ideas (or time) for refactoring, a well placed, accurate comment is fine. It needs to be kept up to date like any other artifact in the project.

It's harder to keep comments accurate than code, since code can be executed and tested. I use them sparingly; when I've otherwise failed to write clean code, or the code is just so complex that it needs to be described.

Comments are just another tool in the toolbox. If they add clarity to the situation, by all means, use them.

If you can think of an expressive variable name that lets you skip a comment eg "employeeCount", instead of "e" // number of employees, do that.

[–] normalexit@lemmy.world 2 points 1 day ago

Little bit of spray cleaner and a cotton rag.

[–] normalexit@lemmy.world 5 points 2 days ago

Probably try to get my identity back. I'm not trying to escape anything currently, and not having documentation is a dangerous thing in the world these days.

[–] normalexit@lemmy.world 3 points 2 days ago

They continue to find new and innovative ways to make the nightmare worse.

[–] normalexit@lemmy.world -2 points 3 days ago

You act like 100% of old people voted trump. They favored him 52 to 47 according to the AARP.

I understand you are angry, but just being blindly mad at a group of people due to prejudice and stereotyping is not ok. It's exactly what the Republicans are doing with trans and brown people. You are no better than them.

[–] normalexit@lemmy.world -3 points 3 days ago (3 children)

Disadvantaged old people in nursing homes are about to lose their healthcare, bankrupt their families, and die horrible deaths.

It's not whomp whomp unless you are a sociopath.

Billionaires are to blame. This is a class war. I don't want to sacrifice human beings for tax cuts regardless of how they may have voted.

[–] normalexit@lemmy.world 7 points 3 days ago

Whelp, sorry about messing up your habitat. Here's some garbage... Looks like our job here is done.

[–] normalexit@lemmy.world 3 points 4 days ago

My brain in a sleepy state injected the word "Republican" in the title. Lol, oops.

[–] normalexit@lemmy.world 11 points 4 days ago (3 children)

So almost all of them?

[–] normalexit@lemmy.world 7 points 5 days ago

The old deluxe pre shower ritual.

[–] normalexit@lemmy.world 6 points 5 days ago (1 children)

That has been my experience with it too. It's probably more fun with good gear, but i just see hours on the couch in my future that I don't want to spend.

view more: next ›