News for hackers. Stuff that matters.

FourOnTheFloor

Thanks for answering his question.
OK, I will admit the "unexpected item" nonsense has diminished... only to be replaced by the "calling for assistance" out of nowhere.
"Unidentified item in driving area. Calling police."
And it almost always DOES go wrong. Seriously 75% of the time when I'm done scanning and I press "pay now," it inexplicably says "calling for assistance" and refuses to do anything until an employee comes over. WHY?

And now assholes are intentionally taking alcohol through the self-checkout, deliberately taking up that one employee's time making him or her perform the workaround to check the items out.

And the 20+ years of "unexpected item in the bagging area" bullshit... just get rid of it.

But this was an obvious sham and a fraud that couldn't scale. I don't think its demise is sad at all.

What's sad is putting cashiers out of work, and even worse is replacing them with outrageously piss-poor alternatives. Self-checkout is a clinic on incompetent system design, and has been for DECADES now. It's mind-bogglingly bad, all to take jobs away from people. Fuck that.

Yep, that's pretty much it.

Reminds me that one of the single biggest regressions in GUIs over the last couple of decades is: The knowledge of how to make a proper tabbed dialog has been lost to many.

Re:Write OpenAPI with TypeSpec on Sunday March 31, 2024 @07:28PM (#39889226)
Thanks. Never having seen a description in this language, I wouldn't know that the above syntax designated one; it looks like a comment.

I also can't find any similar strings in any of the samples in the drop-down list.

Ha, true.

They actually did have a way to invert the whole UI... but it also inverted photo images on the screen. poundAppleAttentionToDetail

Shitfest indeed.

"back when you could configure stuff and have it not break early the following week"

Exactly, but this was true on every GUI EXCEPT the vaunted Mac. For what, two decades, you could set up your own system-wide color scheme under Windows, which would be inherited by all competent apps. I set up a nice, non-inverse (today's trendy "dark") scheme in 1991 and used it into the 2000s. Then, just before everyone finally realized that staring at black text on a glaring white screen all day sucks... Microsoft removed the scheme editor from Windows entirely.

The Windows shitshow has only gotten more rank from there. Not knowledgable enough to weigh in on Linux and Unix GUIs.

Not to take anything away from the author's achievement, but I'd rather have a Windows 95 UI. That was pretty much (so far) the peak of major GUIs in terms of ornamentation level and usability.
Re:Write OpenAPI with TypeSpec on Friday March 29, 2024 @04:23AM (#39861768)
Thanks. I don't see any in that playground though. Which document are they in? I think I looked in all the ones in the drop-down.
Re:UV-K5 Is the Most Hackable Handheld Ham Radio Yet on Thursday March 28, 2024 @04:12PM (#39856734)
How do they make it work on frequencies beyond its range? The diagram puts its range below the aviation band.
Re:Write OpenAPI with TypeSpec on Thursday March 28, 2024 @02:48AM (#39848398)
Hadn't heard of that, thanks.

Does TypeSpec have description fields? I don't think I've seen any in the examples.

Re:Write OpenAPI with TypeSpec on Thursday March 28, 2024 @12:53AM (#39847906)
Cool, thanks for the reply!
Re:Write OpenAPI with TypeSpec on Thursday March 28, 2024 @12:04AM (#39847662)
Targeting OpenAPI 3.0 is a bad idea. It wasn't until 3.1 that it became truly useful, if only because it fixed one glaring blunder: Pre-3.1, you inexplicably couldn't provide a description along with a $ref. This defeats one of the major purposes of OpenAPI, which is... documenting your API.

Example: If you define a structure called Rectangle and use it all over the place, you can't say what this rectangle means or that rectangle means when the structure is used in your API. How was that ever deemed acceptable? Widespread use of common structures (which one would certainly expect in a well-designed API) resulted in an API that couldn't be documented in OAS.

The OpenAPI code-generation landscape is truly abysmal. Not only do almost none of the tools support version 3.1 (which has been current for years), but the generators themselves are of widely varying (but mostly shitty) quality and scattered across a couple of apparent major repos. The documentation is likewise a confusing morass of conflicting and incomplete information from several sources. I flailed away trying to fix one generator for weeks, or write a new one. But I couldn't even find a concise list of the data structures offered to the template engine after an OpenAPI doc is ingested by OpenAPIGenerator. Isn't that a fundamental part of creating a new generator?

So it raises the question of whether OpenAPI is salvageable, or whether this new DSL is better... from design to code generation. Given the trashy state of OpenAPI code generators, why bother generating OAS at all? Just move on and write some competent generators using this new language.