PeriodicallyPedantic

@PeriodicallyPedantic@lemmy.ca

This profile is from a federated server and may be incomplete. Browse more on the original instance.

PeriodicallyPedantic,

I think I did you a disservice with my theme description, I think all of your pictures would qualify as unexpected! I was a bit vague because I didn’t wanna dampen creativity, but I fully considered “astronauts that aren’t human” to be unexpected to a (hopefully) human audience.

In either case, I love it!

PeriodicallyPedantic,

Well, it’s certainly unexpected! And that’s exactly what I asked for 😜

PeriodicallyPedantic,

I mean… The account exists if you log into it or not. You still need to keep track of it so that you’re paying into the correct account, and so that you know how much to pay.

Only you now have to talk to a person if you need to check or change anything.

PeriodicallyPedantic,

I assumed this was in the context of paying recurring bills rather than shopping. Agree with you about stuff like groceries.

PeriodicallyPedantic,

My VPN sometimes sends me reminders and special offers when my contact is almost up, for example. Mobile phone data usage reminders and warnings. Even just reminders that they’re going to be charging your card on payment day.

But mainly I don’t wanna leave home so paperless has already won for me lol

PeriodicallyPedantic,

IMO there are two underrated benefits:

  1. It enforces separation of concerns
  2. It provides options to OPS.

Designing for micro services doesn’t mean you need to deploy it as micro services. You can deploy it as a monolith and configure it too skip the network stack

PeriodicallyPedantic,

I think that was the point he was trying to make

PeriodicallyPedantic,

Who TF down voted you? That’s absolutely 100% accurate

PeriodicallyPedantic,

🦀🦀🦀🦀🦀🦀🦀 Dude became more hateful and delusional as he aged, he should have been removed from public life decades ago

PeriodicallyPedantic,

If your function is so long that keeping track of returns becomes burdensome, the function is too long.

I’m not a fan of returning status codes, but that’s a pretty clear example of early return validation where you can’t just replace it with a single condition check. Having a return value that you set in various places and then return at the end is worse than early return.

PeriodicallyPedantic,

You said yourself they’re equivalent. You either have to read the blocks in both cases or neither case.

You need to read the blocks to know what gets returned (either early or in a single return). You need to read the blocks to see what resources get created but not released. What are you hoping to achieve by only reading control flow?

At least with an early return you can stop reading.

PeriodicallyPedantic,

Right. Like I said.

What are you hoping to accomplish by only reading control flow and not the contents of the blocks? You keep raising concerns like not properly releasing resources, but if you don’t read the blocks you don’t know what resources we’re allocated.

I think your argument depends on both having your cake and eating it.

PeriodicallyPedantic, (edited )

If you’re reading the control flow, and the control flow tells you the first block isn’t being entered, then it doesn’t matter if the first block contains an early return or not, because it wasn’t being entered. If it was being entered then you have to read it anyway to make sure it’s not manipulating state or leaking resources.

To use your example: in subsequent reads, when I’m interested in the second block out of n, say during defect analysis, I can head straight to the second block in either case since control flow shows the first block was skipped - but in the case of early return from the second block I can stop reading, but in the case of a single return I need to read the flow for all subsequent n blocks and the business logic of any subsequent blocks that get entered. The early return is a guarantee that all subsequent blocks may be ignored.

To me this is also obvious. I’ve been doing this for quite a while and 95% of the time, reviewing and debugging code with a single return is far more tedious.

PeriodicallyPedantic,

Have you stopped to consider why you can’t explain it better? Perhaps the reason is because you’re wrong.

Your toy example does not show the issue you think it shows. You’ve moved your cleanup block away from the context of what it’s cleaning up, meaning that you’ve got variables leaking out of their scopes. Your cleanup code is now much more complex and fragile to changes in each of the blocks its cleaning up after.

You tried to use your toy example to show A is better, but then we showed that actually B is just as good. So fix your toy example to show what you actually want to say, because everything you said so far depends on you setting different standards for each scenario.

PeriodicallyPedantic,

Now that’s the pot calling the kettle black.

What work have you even invested? You’ve just repeatedly restarted your original stance. But sure, whatever.

PeriodicallyPedantic,

It’s the year 2024 and we’re still telling women what to wear, apparently

PeriodicallyPedantic,

Punk rock lizard

https://lemmy.ca/pictrs/image/3b111d8e-7eed-46f1-be0b-d9e014093ccd.jpeg

Using copilot

!portrait photo of a Komodo dragon dressed in punk attire, with a Mohawk and piercings!<

As soon as I read the title I knew what I wanted to do lol

PeriodicallyPedantic,

Thank you!

This was another great contest and theme. I’m really gonna need to think to come up with something good!

PeriodicallyPedantic, (edited )

The Submissions are closed and the scores are tallied!

This weeks winner is… @thelsim with 5 points! You get to choose next week’s theme!

Everyone did a fantastic job, and I had a hard time choosing the most original submission.

Scores are:

Hopefully I didn’t screw up any of those calculations. Good luck to everyone in the next challenge!

PeriodicallyPedantic,

Well… The indented list looked fine in the web app. Not so much on my mobile app 😭

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • kavyap
  • megavids
  • InstantRegret
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • JUstTest
  • All magazines