[-] snowe@programming.dev 12 points 1 week ago

Anything but the last one. Don't duplicate the http code in the body, else you're now maintaining something you don't need to maintain.

I'm not a fan of codes that repeat information in the body either, but I think if you had used a different example like "INVALID_BLAH" or something then the message covered what was invalid, then it would be fine. Like someone else said, the error data should be in an object as well, so that you don't have to use polymorphism to figure out whether it's an error or not. That also allows partially complete responses, e.g. data returns, along with an error.

[-] snowe@programming.dev 3 points 3 months ago

I completely agree.

[-] snowe@programming.dev 14 points 3 months ago

These posts showed up right after each other in my feed so I got to see them in order without clicking in 😂

[-] snowe@programming.dev 4 points 3 months ago* (last edited 3 months ago)

According to a video I watched yesterday, it’s not random, it’s because they’re bored teenagers

Hilariously I left this post then scrolled down just a few posts and found this. https://www.usatoday.com/story/news/nation/2024/05/24/killer-whales-attacking-sinking-boats-are-bored-scientists-say/73558157007/

[-] snowe@programming.dev 1 points 4 months ago

I do not. I'm sorry.

[-] snowe@programming.dev 0 points 5 months ago

it does if the other ones have edible seeds, seeds without arsenic, or fewer seeds... your analogy makes no sense.

[-] snowe@programming.dev 1 points 5 months ago

Also, writing memory safe code honestly isn’t that hard. It just requires a different approach to problem solving, that just like any other design pattern, once you learn and get used to it, is easy.

the CVE list would disagree with you.

[-] snowe@programming.dev 38 points 5 months ago

It's also just a huge fallacy. He's saying that people just choose to not write memory safe code, not that writing memory safe code in C/C++ is almost impossible. Just look at NASA's manual for writing safe C++ code. It's insanity. No one except them can write code that's safe and they've stripped out half the language to do so. No matter how hard you try, you're going to let memory bugs through with C/C++, while Rust and other memory safe languages have all but nullified a lot of that.

[-] snowe@programming.dev 0 points 5 months ago

You ask them to add a license, you don’t suggest a license.

[-] snowe@programming.dev 1 points 5 months ago

I am of no help here, but your post made me think of this. https://youtu.be/tbazGVrbN-g

14

It seems like the password limit is set to 60 characters so I’m unable to login to my instance. There probably should be no limit in the app because each server could have different limits set.

921
A thousand miles (programming.dev)
submitted 1 year ago by snowe@programming.dev to c/memes@lemmy.ml
20

There's gods for everything, but of course computers didn't exist in ancient Roman and Greek times. What God or Goddess in your opinion would personify Testing?

And yes these answers matter. 😬

2
Rewriting the Ruby parser (railsatscale.com)

Shopify wrote a new hand-written recursive descent parser. This looks like it will be a great improvement to the Ruby ecosystem!

2
view more: next ›

snowe

joined 1 year ago
MODERATOR OF