[-] DScratch@sh.itjust.works 2 points 4 days ago

The site doesn’t define what a code smell is, though. It’s just a list of Don’t Do’s.

That’s kind of the nuance I would be hoping for.

Something like:

Code Smells are clues that something is amiss. They are not things that always must be ‘fixed’. You as an engineer will, through experience in your own codebase and reading of others, develop a sense of the harm imparted by and the cost of fixing Code Smells. It is up to you and your team to decide what is best for your codebase and project.

(The rule of 3 formatting was intentional, given the community we’re in)

[-] DScratch@sh.itjust.works 5 points 4 days ago

I think to present rules like this as hard rules, with little explanation and no nuance is harmful to less experienced engineers.

A prime example here is the Duplicated Code one. Which takes an absolute approach to code duplication, even when the book that is referenced highlights the Rule of Three:

The Rule of Three
Here’s a guideline Don Roberts gave me: The first time you do something,
you just do it. The second time you do something similar, you wince at the
duplication, but you do the duplicate thing anyway. The third time you do
something similar, you refactor.
Or for those who like baseball: Three strikes, then you refactor.

I've seen more junior devs bend over backwards, make their code worse and take twice as long to adhere to some rules that are really more what you'd call guidelines than actual rules.

Sure, try to avoid code duplication, but sometimes duplicating code is better than the wrangling you'd need to do to remove it.

Making extra changes also leaves extra room for bugs to creep in. So now you need to test the place you were working, and anywhere else you touched because of the refactoring.

[-] DScratch@sh.itjust.works 1 points 4 days ago

Like all things programming; It Depends.

[-] DScratch@sh.itjust.works 265 points 2 months ago

Why would you expect tap water to kill bacteria?

You’re washing bugs and dirt off.

[-] DScratch@sh.itjust.works 94 points 3 months ago

On top of all this, what really irritates me about epic is they talk like they give a fuck about consumers, but never act like it.

7
Thunderbolt USB hub (sh.itjust.works)
submitted 4 months ago by DScratch@sh.itjust.works to c/hardware@lemmy.ml

I’m looking to leverage the Thunderbolt port on my desktop to get more USB ports.

Looking around and most Thunderbolt hubs are for laptops and have hdmi and Ethernet and such that I don’t really want.

Does anyone have a recommendation for a simple hub?

Some Type-a and c ports world be lovely.

23
Evening focus (sh.itjust.works)
submitted 4 months ago by DScratch@sh.itjust.works to c/adhd@lemmy.world

Greetings!

I was diagnosed a few months back and I’ve gotten on Vyvance 20mg to great effect. I’m not perfect, but much better.

However I do find that my focus wanes in the evening when I want to kick back and practice a hobby like drawing or music, I can’t sit down and just do it.

If anyone has advice or experience that might help, I’d be very grateful.

[-] DScratch@sh.itjust.works 186 points 5 months ago

Same with AOC, tbh.

Didn’t one of the Jan6ers steal her shoes?

[-] DScratch@sh.itjust.works 243 points 7 months ago

You can recommend what you like. As soon as Windows 10 can’t play the latest games I’m off to Linux.

Eat my whole ass, Microsoft.

[-] DScratch@sh.itjust.works 120 points 8 months ago

Oh no! Not our precious building valuations!!!

[-] DScratch@sh.itjust.works 106 points 11 months ago

Would you prefer:

“Firefox Updater

This app is preventing shutdown”

[-] DScratch@sh.itjust.works 144 points 1 year ago

This is the Martingale system, it will 100% work if you have infinite money and can bet infinite amounts.

[-] DScratch@sh.itjust.works 86 points 1 year ago

Posting here is cultural reeeepropriation

66
17

Been drawing for like 6 months. Done on Procreate

view more: next ›

DScratch

joined 2 years ago