sorted by: new top controversial old
[-] snowe@programming.dev 12 points 1 month 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 1 points 5 months ago

I do not. I'm sorry.

[-] snowe@programming.dev 0 points 7 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 7 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 7 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 7 months ago

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

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

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

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

You can write cross platform mobile (and desktop and even browser) apps with Kotlin.

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

that's so weird because I got an email inviting me to participate and I haven't ever been considered a 'prolific poster'. I'm only at 60k and 12 years. I had no clue I was invited until I looked in my spam folder.

[-] snowe@programming.dev 2 points 8 months ago

still, people are clearly confused by the button. I'm just gonna make it an animation and prefers-color-scheme since that's so widely supported now.

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

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. 😬

view more: next ›

snowe

joined 1 year ago
MODERATOR OF