I would do a 400 (Bad Request). Then, with varying amounts of detail depending on the scale of the project and the framework capability, the response body would be something like: { “error”:true, “reason”: “validation”, “detail”: “user id should be numeric” }
- 0 Posts
- 155 Comments
locuester@lemmy.zipto Programmer Humor@lemmy.ml•i love ai in my offline foss softwares that are still in betaEnglish1·8 days agoCrypto bubble survivors? You mean people with strong money?
Coding using an LLM and not even reviewing output
locuester@lemmy.zipto Technology@beehaw.org•Solar panels in space could cut Europe's renewable energy needs by 80%English11·30 days agoAh yes. “This energy would then be transmitted to one or more stations on Earth”. Simple eh?
locuester@lemmy.zipto Programming@programming.dev•Do not Interrupt Developers, Study SaysEnglish5·1 month agoU freelance, and use jira? What kinds of monster are you?!
locuester@lemmy.zipto Programmer Humor@programming.dev•Everyone knows what an email address is, right? (Quiz)English4·1 month agoYeah I have a .engineering for my biz. I also registered mycompanyengineering.com to get through places that won’t take the new TLDs.
Usually banks.
locuester@lemmy.zipto You Should Know@lemmy.world•YSK There's a campaign to replace the distorted Mercator world map with the fairer Equal-Earth projectionEnglish2·1 month agoThe downloadable maps from that link are misnaming the “Gulf of America” as “Gulf of Mexico”, so Trump would never acknowledge anyway haha
locuester@lemmy.zipto Programmer Humor@programming.dev•What do you call your production branch?English42·1 month agoHEAD
lol PS/2 ports are the newer ones. There were larger AT ports and ADB ports in addition to the 25-pin(!) LPT port (printer mostly) and COM ports (random peripherals including early mice, pre ps/2)
locuester@lemmy.zipto Technology@beehaw.org•It Looks Like a School Bathroom Smoke Detector. A Teen Hacker Showed It Could Be an Audio BugEnglish2·1 month agoThat’s a very binary mechanism with little excuse for pulling. And there are typically cameras nowadays. No cameras in the bathroom.
locuester@lemmy.zipto Technology@beehaw.org•It Looks Like a School Bathroom Smoke Detector. A Teen Hacker Showed It Could Be an Audio BugEnglish9·1 month agoSchools around the country will disable the keyword functionality very soon. It’s useless in such an environment. Kids can and will say “help 911” every time they leave the bathroom simply “for the lulz”. And there’s no video so they can’t be caught doing it unless you station someone right outside to catch them, rendering the feature useless. Malicious actors are the most difficult design requirement for any system.
Good greaf
Git Graph VS Code extension
I’ve used source tree, gitkraken, etc. this simple extension is just as good. I spend most my day with it
Git Graph VS Code extension
I’ve used source tree, gitkraken, etc. this simple extension is just as good. I spend most my day with it
locuester@lemmy.zipto You Should Know@lemmy.world•YSK The World’s Most Common PasswordsEnglish3·1 month agoIndeed, just four impersonal words is a great password. Mix up the capitalization and it’s even better.
I’ve been a dev at 8 places over 28 years and have never heard of this level of incompetence since git came along. Prior to git, with cvs, svn, tfs, vss - yeah, lots of incompetence because the tools sucked. Git solves all those problems tho!
locuester@lemmy.zipto Programming@programming.dev•Can't decide if end user index access should be 0 or 1 based and if END index should be inclusiveEnglish3·2 months agoI personally find it easier for non programmers to use a START:LENGTH model.
3:5 is (up to) 5 elements starting at the third.
1:1 is just the first element
Any 0 is invalid
20:2 is elements 20 and 21
It eliminates inclusive/exclusive questions.
locuester@lemmy.zipto You Should Know@lemmy.world•YSK De-banking is often how the US first declares you "homeless"English31·2 months agoI’m genuinely sorry that my words upset you.
Good day sir.
locuester@lemmy.zipto You Should Know@lemmy.world•YSK De-banking is often how the US first declares you "homeless"English52·2 months agoSorry you feel that way. While I am very experienced in the field, and as such would be surprised that this snuck by me, I miss things from time to time. That’s why I asked for references.
If experience in a field isn’t an argument for being knowledgeable in the field, you’re likely hard to please.
A RESTful service is (usually as of today) a JSON API. They aren’t mutually exclusive things.
There’s no black and white definition there.
However, when someone is creating a RESTful service, they’re stating that they’ll be paying mind to HTTP Verbs and status codes as a fundamental part of their design.
In the original image posted, that dev clearly wasn’t paying mind to the HTTP layer and as such a commenter called it just a “JSON API”, which is the catchall, ugly, Wild West, typical way of doing things (always return 200, errors are in the json).
Once again tho, it’s not black and white. Others can and will disagree and want to be pedantic. I’ve been a professional dev for 35 years, devs love to argue abt this shit.