TheDoctor

joined 6 months ago
[–] [email protected] 4 points 4 days ago (1 children)

Can someone who knows more about the engineering of these lights explain why they suck so much? It seems like them being LED rather than incandescent can’t be the whole story. I just want to be able to drive at night without being blinded every time a car comes through the opposing lane.

[–] [email protected] 7 points 5 days ago* (last edited 5 days ago) (1 children)
dozen = 12 + 1; // one extra for the baker!

I got mad at this when I first saw it but then I remembered there’s some code at work that defines an hour as 50 minutes

pain

[–] [email protected] 5 points 5 days ago

Statistically, this makes your code better

[–] [email protected] 3 points 5 days ago

Yeah…. I’ve definitely been the next guy on a couple bad regexes that I wrote

[–] [email protected] 4 points 5 days ago

When versioning and feature flags are too hard: just use git and hope for the best

[–] [email protected] 5 points 5 days ago (2 children)

My old senior used to do this before he got laid off and now I’m charge of code that’s littered with old commented out code and no way to know why it was commented out.

[–] [email protected] 5 points 5 days ago (2 children)

Then it breaks years after you’ve left and someone has no choice but to touch it

[–] [email protected] 14 points 5 days ago* (last edited 5 days ago)

I often use comments as ways to say, “I know this is cursed, but here’s why the obvious solution won’t work.” Like so:

/**
 * The column on this table is badly named, but
 * renaming it is going to require an audit of our
 * db instances because we used to create them
 * by hand and there are some inconsistencies
 * that referential integrity breaks. This method
 * just does some basic checks and translates the
 * model’s property to be more understandable.
 * See [#27267] for more info.
 */

Edit: to answer your question more directly, the “why not what” advice is more about the intent of whether to write a comment or not in the first place rather than rephrasing the existing “what” style comments. What code is doing should be clear based on names of variables and functions. Why it’s doing that may be unclear, which is why you would write a comment.

[–] [email protected] 14 points 1 week ago (4 children)

So this is admittedly the first genocide I’ve followed this closely in real time. Is it normal for them to just… announce what they’re doing the entire time? The general who drafted the plan posted it on YouTube? What?

[–] [email protected] 21 points 1 week ago (1 children)

Linux installs have gotten so quick and painless over the past decade or so. Usually just following a GUI, waiting like 5 minutes for the install, and suddenly you’re booted into a fresh desktop.

[–] [email protected] 14 points 1 week ago (1 children)

I think you’re going to need to link to some proof or example. You’re clearly using a definition of AI that’s broader than the colloquial definition everyone’s assuming you’re using.

[–] [email protected] 4 points 1 week ago

What on earth

 

is-this Elon’s daughter being indoctrinated into the trans cabal?

 

Who said they’d have to wait until the next dem administration to see Project-2025-But-Blue?

Dems will happily throw trans people under the bus ~~as long as they get to fund blowing up brown children~~

 

Couldn’t find the megathread, sorry for the post

 

I just bought a handheld emulator (Anbernic RG35XX) and I’m now overwhelmed with options.

I’m also expecting to be destroyed by the games some of you were playing as children, but whatever. Anything PS1 and older is appreciated.

 
 
 

This is clearly the superior way to post

 

Yeah man whatever can you just pass me the Spiderman 3 DVD?

1
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

I can’t legally tell you which thing I’m voting to have happen to him though illegal-to-say

 

I’m trying to figure out if I wanna get one of these for the family to share and they look pretty cheap. I like that the ones I see advertised come preloaded with games so I don’t have to do all the setup and downloading. But I’m capable of doing that setup if there’s a better device that doesn’t come preloaded.

1
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

I’m researching hair removal and the sheer amount of options as well as the range in price just seems daunting. Why are there $30 devices and also $300 devices? And why would people chose to pay more for a single session than the device costs on its own?

view more: next ›