sorted by: new top controversial old
[-] kogasa@programming.dev 4 points 2 weeks ago

Status 200 for errors is common for non-REST HTTP APIs. An application error isn't an HTTP error, the request and response were both handled successfully.

[-] kogasa@programming.dev 5 points 2 weeks ago

There may be a need for additional information, there just isn't any in these responses. Using a basic JSON schema like the Problem Details RFC provides a standard way to add that information if necessary. Error codes are also often too general to have an application specific meaning. For example, is a "400 bad request" response caused by a malformed payload, a syntactically valid but semantically invalid payload, or what? Hence you put some data in the response body.

[-] kogasa@programming.dev 2 points 2 weeks ago

I'm speaking my truth. XR Adderall, crack em open and pour em on me tongue. The caviar of stimulants

[-] kogasa@programming.dev 6 points 2 weeks ago

My only time-release capsule is filled with little beads, I just pop it open and eat the beads like pop rocks

[-] kogasa@programming.dev 20 points 2 weeks ago

I've been taking 6+ pills a day for years and still can't get myself to swallow them. I just chew everything. Tasty painkillers and caffeine.

[-] kogasa@programming.dev 4 points 3 weeks ago

This should be done with font ligatures, not replacing character combinations with other characters that can't be typed normally

[-] kogasa@programming.dev 0 points 1 month ago

No, it isn't

[-] kogasa@programming.dev 0 points 1 month ago

You're making assumptions about the control flow in a hypothetical piece of code...

[-] kogasa@programming.dev 2 points 1 month ago

What you're saying is "descriptive method names aren't a substitute for knowing how the code works." That's once again just a basic fact. It's not "hiding," it's "organization." Organization makes it easier to take a high level view of the code, it doesn't preclude you from digging in at a lower level.

[-] kogasa@programming.dev 2 points 1 month ago

No, your argument is equally applicable to all methods. The idea that a method hides implementation details is not a real criticism, it's just a basic fact.

[-] kogasa@programming.dev 4 points 1 month ago

No, not "almost every modern developer thinks inheritance is just bad." They recognize that "prefer composition over inheritance" has merit. That doesn't mean inheritance is itself a bad thing, just a situational one. The .NET and Java ecosystems are built out of largely object-oriented designs.

[-] kogasa@programming.dev 3 points 1 month ago

You realize this is just an argument against methods?

view more: next ›

kogasa

joined 1 year ago