News for hackers. Stuff that matters.
Re:How I, as someone who is visually impaired, use my iPhone... by josephg on Thursday May 27, 2021 @09:49AM (#27303072)
I think about this whenever someone posts about yet another new immediate mode UI library, or a custom layout engine they’ve built on top of HTML canvas. Generally all these kind of approaches make your app invisible to screen readers.

The amount of work Apple, Google and others have put into making all this work is staggering, and life changing for people who are blind. Please don’t throw all that work away in your apps just because you think some UI toolkit is shiny.

Re:How I, as someone who is visually impaired, use my iPhone... by Cthulhu_ on Thursday May 27, 2021 @10:35AM (#27303654)
Honestly the amount of work people have put in over the years to NOT just build an app with the native tooling is staggering. It really is not that expensive to duplicate some code across multiple target platforms, compared to the compatibility, UX and accessibility headaches.

Facebook and Twitter both spend dozens if not hundreds of man-years trying to make HTML lists (tweets, posts) scroll as fast as native. Google is spending IDK how much hours painstakingly redrawing all the native components for both iOS and Android into Flutter, having to catch up every time they make a change.

Just use the platform like it was intended to be used. You're not special. You're not smarter. You're forgetting most of what the authors have already solved.

And, if you're at the scale of the Facebooks and co, you have the engineers to build it. You have the engineers to rebuild your whole app from scratch a dozen times over. And if you don't, it'll be trivial to find and hire them at the rates you're paying.

Re:How I, as someone who is visually impaired, use my iPhone... by jchw on Thursday May 27, 2021 @06:10PM (#27309194)
Flutter is probably meant to be the native toolkit of a platform. I don’t think there is anything wrong with code-once toolkits that don’t use native widgets if they spend the effort to be accessible and have good UX.

I’m personally falling into the belief that we’ve fooled ourselves regarding UI. That one single UI library could actually be the ideal choice for every possible app, and that we just need to keep trying until the absolute perfect set of tradeoffs appears. I think this is enticing because UI is very hard and full of problems you would have to solve over and over if you had multiple UI frameworks, whereas these things could be amortized if there were less.

I don’t think so. I do think the UI ecosystem, as it slows down, could become more modular and share more core components. I expect to see “base” rendering libraries, like Skia or Pathfinder, powering next generation UIs, and hopefully someone will also make a cross-platform library to provide accessibility and IME primitives for Windows TSF/macOS/etc. I think smaller bits like that can clearly be minmax’d to ideal conditions for given use cases. But if you were hoping for a future of “just use the native toolkit!” I think it’s not likely, at least not until software slows down a lot more. Even then, lowest common denominator libraries like wxWidgets often end up being disliked by users and developers alike, due to the compromises needed for them to accomplish their goals. I’ll admit the story has gotten better with React Native and its success on mobile, but even that is not a perfect story: performance on Android was apparently not good enough for Discord, which may in fact be a pretty good signal for why something like Flutter is a good idea anyways: it can mature over time on existing platforms and then possibly even become the first class toolkit for something.

I do agree that most developers should prefer native over vanity, but it’s a false dichotomy, as there are plenty of valid reasons to not do native. No more is this clear than Windows, where virtually nobody does “native” anymore. (It can still be OK, but it’s not great. Having true HWNDs for every component is a great way to have things flicker whenever you delete/create new widgets.)

Re:How I, as someone who is visually impaired, use my iPhone... by harikb on Thursday May 27, 2021 @08:51PM (#27310526)
If only the users/customers weren't so fickle.

> I do think the UI ecosystem, as it slows down, could become more modular and share more core components

I think things like Flutter will take another few years to become performant compared to even Electron/Tauri/Webview+JS

Yes, it is sad that we redesign UI (even web UIs) every so often, but it is an unforgiving world. I am not sure if it is the fickle users or the product manager(s) to blame, but we seek fancier and fancier UI with every update. There are exceptions like the craigslist website, but those are rare.

I agree with all other points.

Re:How I, as someone who is visually impaired, use my iPhone... by dntrkv on Friday May 28, 2021 @01:57AM (#27312172)
> I am not sure if it is the fickle users or the product manager(s) to blame, but we seek fancier and fancier UI with every update.

It's not fanciness, it's maturation.

Compare YouTube from 2006: https://web.archive.org/web/20060202021427/http://youtube.co...

to now: https://web.archive.org/web/20210430000812if_/https://www.yo...

The new design puts content first. There are no superfluous borders, backgrounds, or gradients. Every visual element exists for a good reason. This is good, functional, accessible, design.

And YouTube of 2006 is a conservative example, we (well, most of us) can remember the UX/UI atrocities that existed back then.

Re:How I, as someone who is visually impaired, use my iPhone... by mwcampbell on Friday May 28, 2021 @09:00AM (#27314847)
> hopefully someone will also make a cross-platform library to provide accessibility and IME primitives for Windows TSF/macOS/etc.

I'm planning to do this for accessibility. I don't think I have the expertise to cover IME though. Do you think they both need to be done in one library, or can they be decoupled?

Re:How I, as someone who is visually impaired, use my iPhone... by jchw on Friday May 28, 2021 @03:08PM (#27319293)
I believe IME can be completely separate, though I'm not 100% certain. It might depend a bit on the platform.
Re:How I, as someone who is visually impaired, use my iPhone... by mwcampbell on Friday May 28, 2021 @03:14PM (#27319361)
Certainly on Windows, IME and accessibility are separate; IME is done through TSF as you mentioned, whereas accessibility is done through UI Automation.
Re:How I, as someone who is visually impaired, use my iPhone... by sangnoir on Thursday May 27, 2021 @11:38AM (#27304358)
> Just use the platform like it was intended to be used. You're not special. You're not smarter.

If you assume that they are not less smart than the average engineer, then a reasonable assumptions is that they weighed the trade-offs and went with what worked best for them, and you're missing some context (or give different weighting to importance of native widgets - which comes at a cost).

There are pros and cons to using native widgets or cross-platform libraries/UIs that go back to when UIs and platforms became a thing. I know of the SWT vs. Swing debate in the Java world some decades ago - there are likely many precedents before then. All I know is there is no right answer, just trade-offs you have to weigh.

Re:How I, as someone who is visually impaired, use my iPhone... by K0nserv on Thursday May 27, 2021 @12:30PM (#27304949)
Or they have evaluated their potential solutions without understanding the choice they are making. For example, they have only considered how something looks, not how it works(for both people using accessibility tech and those who don't).

If you look at a screen produced by, say, Flutter and compare it to Aplpe's native toolkit you might conclude that you can produce the "same" thing with Flutter as you'd get with Apple's native toolkit. To boot you can do it in less time.

The thing to consider is: Did you really produce the same thing? Maybe you produced two things that look the same, but aren't even close to equivalent in many other important ways.

Re:How I, as someone who is visually impaired, use my iPhone... by sangnoir on Thursday May 27, 2021 @02:55PM (#27306710)
> For example, they have only considered how something looks, not how it works(for both people using accessibility tech and those who don't).

When Sun or Google created their own, non-native toolkits designed to run on Mac OS/iOS, they were fully aware of what doesn't work. However, they balanced that con against the pros of the ability to write cross-platform code once (ground floor engineers), and on strategic level, they wanted to commoditize Mac OS/iOS into a dumb pipe (one of many other dump pipes to deliver code/content to), rather than a platform with inherent value - they consciously considered this to be more important than users' griping at the weird scroll-speed curves. One can create a shim for native widgets like QT does, but you'll be at the platform owners mercy when it comes to release cadence.

It's good business practice to commoditize your complement - seen in that light, the decisions are far from "not smart". Not great for some users, for sure, but they come from deliberate decision-making over control.

Re:How I, as someone who is visually impaired, use my iPhone... by jackcviers3 on Thursday May 27, 2021 @02:31PM (#27306416)
This is the answer. This is always what happens. You use the fastest thing that will get the feature done or the bug fixed. To do that, you choose the components that provide the things you need to match your task's requirements. If the requirements don't list accessibility, then you do not care. Your job isn't design, it's implementation. The senior people are supposed to think of that stuff. You have enough work just keeping up with all the things you have to do at that scale.

In the initial meetings where you talk about making new component libraries, someone who worked on the old one says, "We reinvented the wheel last time, then standards changed, and we couldn't keep up. We need to take current standards into account before doing anything new, including accessibility."

And the new boss says, "That's a good call-out, but accessibility isn't a problem if nobody can even load the component list and scroll to the thing they want, and with the current ux and stats, we're getting close to using most of the available memory on devices just to scroll our content. We don't want to change the content we can scroll, we just want to make scrolling more efficient. Everyone agrees the current design is at its limits. We need to start over at the beginning. Accessibility is step 3. We're at step 0. Let's focus and move forward." And while they are right, they need to demo an map to an abled-person boss, so accessibility gets pushed farther back as technical things take priority.

Often, this leads to teams over time producing lots of things without accessibility, and you build new things from old things, and it just snowballs.

Suddenly a user appears, and they aren't served, and now a whole new bunch of juniors are scrambling to add accessibility to old things without breaking current usage.

Re:How I, as someone who is visually impaired, use my iPhone... by superjan on Thursday May 27, 2021 @01:57PM (#27306050)
Engineers like it when everything works the same. It is also easier for product marketing: the new features will be available everywhere, and they’ll work the same. Less to document and keep in your head.

The advantage is mostly that it is easier to manage for the organization building the app. There is no real benefit for the users, in this case most likely slower, larger, and resource intensive apps, that avoid platform integration.

Re:How I, as someone who is visually impaired, use my iPhone... by jackcviers3 on Thursday May 27, 2021 @02:35PM (#27306467)
Also, the organization is ceding control to an other when they don't use their own stuff. That doesn't sit well when the needs of the other gets in the way of profits.
Re:How I, as someone who is visually impaired, use my iPhone... by vlunkr on Friday May 28, 2021 @12:28AM (#27311731)
I assume most of the time it's the higher-ups deciding these things, not the engineers. The boss decides they doesn't like something about the native UI and asks the team to build something new, without understanding the deeper implications.
Re:How I, as someone who is visually impaired, use my iPhone... by lwb on Thursday May 27, 2021 @10:52AM (#27303859)
The real problem with Facebook at least is build times -- using the native stack incurs something insane like several hundred hour build times IIRC. So the native stack is just a non-starter once you get to a certain (ludicrous) codebase size.
Re:How I, as someone who is visually impaired, use my iPhone... by 72deluxe on Thursday May 27, 2021 @11:37AM (#27304343)
Are you saying that the client includes all of the Facebook logic or something?? Surely displaying forms (essentially what a post is) and ability to scroll through a list and click on a button or view/upload a photo is the essence of the app?

Where's the magical bit that means they can't use a native UI toolkit?

Re:How I, as someone who is visually impaired, use my iPhone... by csande17 on Thursday May 27, 2021 @12:19PM (#27304816)
The magical bit is that they have hundreds and hundreds of cooks in the kitchen, who all need to justify their existence by creating tons and tons of little one-off UI screens for obscure features that hardly anyone sees or uses.

This kind of team structure also causes other strange-looking technology choices, such as CSS-in-JS: they have to do stuff like that because they literally cannot prevent different members of the team from writing CSS class names that collide.

Re:How I, as someone who is visually impaired, use my iPhone... by tester34 on Friday May 28, 2021 @04:40AM (#27313061)
I always thought this was some anti ad-block feature, huh.
Re:How I, as someone who is visually impaired, use my iPhone... by lwb on Thursday May 27, 2021 @01:14PM (#27305463)
I think that number of classes is the main issue. It's in the many, many millions.

Also, the app has sooooooo much more functionality than people realize. Plus, there is a lot of functionality that ships with the app but is behind a feature gate, meaning that it is turned off for the majority of users. There's lots of internal tools for adjusting feature gates on a per-user, per-region, per-whatever basis, in the name of user research as well as just safely deploying new features at scale.

Re:How I, as someone who is visually impaired, use my iPhone... by munk-a on Thursday May 27, 2021 @02:12PM (#27306220)
Speaking as someone focused on code maintenance this isn't a good thing. If the highest complexity of your product exists at a level where users can't interact with it then you're spending a lot of dev time inefficiently.

But I don't believe you're correct, honestly feature flag rollout, even among insanely specific cohorts, isn't actually a hard problem and it's essentially been solved at this point - it isn't easy, not by any measure - but the components and how they interact are rather easy to comprehend. Facebook's main complexity (IMO) is from trying to build essentially a full OS on top of the browser from which to serve a variety of integration apps into their platform and, while I'm not a board member of Facebook or at all familiar with their earnings, that particular goal seems to have been, essentially, a dud.

Being able to play farmville with your friends may have been a decent income source once upon a time but it's very far from what their core competencies now are. Facebook now primarily uses API hooks into other native standalone apps for that particular class of data collection, but their pure web based collection seems to be where they really get value. The fact that they can see precisely where users are going on the web is, IMO, their main value proposition at this point - the social network stuff needs to exist to support that and ease the process of identifying users - but anything related to games seems utterly unnecessary and that core platform they have could be vastly simplified while still delivering the same value to the company.

That all said, they've invested a whole lot into their existing platform so I can see why business would be very very hesitant to try anything that might rock the boat, if they can sustain their platform being fast and responsive they can minimize their corporate risk.

Re:How I, as someone who is visually impaired, use my iPhone... by traek on Thursday May 27, 2021 @04:11PM (#27307707)
They aren't saying that the feature gating code adds to app size, but rather that there's a lot of code behind feature gates (for tests/staged rollout/locale-specific features/etc) that most users won't see which still add to app size.
Re:How I, as someone who is visually impaired, use my iPhone... by munk-a on Thursday May 27, 2021 @04:27PM (#27307967)
Fail fast and KISS are pretty celebrated virtues of sustainable project development. I understand that on the scale of Facebook you have issues with project management but if there is a significant amount of code that is locked to specific cohorts of users aren't you opening up the door to unprofitable levels of complexity and long running poor investments?

I'm sure a lot of developers on here try and minimize their use of integration branches in the day-to-day (they are necessary for some things but keep them short and sweet) and try and get in-progress features into master ASAP - that's largely due to the fact that maintaining multiple copies of the same basic logic can quickly become extremely difficult to manage.

Localization is a really big exception to this but that's why, whenever possible, you'll see game companies limit localization to strings only - including logical statements in the realm of information to be localized can make security issues extremely fun to track down along with causing frequent usability breaks in less used localizations.

I don't know - whatever the reasons for it and no matter the resources FB has - this stuff increases in cost exponentially and if they do have a really fragmented codebase it's likely that the majority of their labour goes into process definition and QA to make sure that they don't break the Swahili language version of the landing page for China when they change their contact us link.

Re:How I, as someone who is visually impaired, use my iPhone... by nine_k on Thursday May 27, 2021 @11:09PM (#27311322)
Fail fast works on the web, where you can redeploy the app with the next page refresh.

It works poorly on mobile, where users are not keen to reinstall an app every few days, and some do not update for months and years, because of lack of space, scarce bandwidth, old hardware, or just neglect.

Re:How I, as someone who is visually impaired, use my iPhone... by munk-a on Friday May 28, 2021 @01:55PM (#27318491)
It doesn't just apply to the web though - it can even apply to OS design. On the web it's usually (ab)used to leverage users as the metric of whether something is failing, but in theory fail fast is just about learning that something isn't working through any means - whether that be user reports, automated tests or proofs of concept.

Additionally, at least where Facebook is concerned and IIRC, they actually do heavily utilize out-of-app data in their mobile app. There is a good deal of code, but a lot of the UI ends up being tweaked by data that's being served to the client.

Re:How I, as someone who is visually impaired, use my iPhone... by mlcrypto on Thursday May 27, 2021 @05:10PM (#27308603)
Almost as if the user is the product instead of the app. The app is doing everything in the background to monetize the user
Re:How I, as someone who is visually impaired, use my iPhone... by munk-a on Thursday May 27, 2021 @05:36PM (#27308867)
I don't disagree with the sentiment - but I still think the app is poorly tuned if it's been allowed to accrue this much complexity in the relatively non-essential UX that we all interact with through the web. My point is that the complexity of FB's landing page is unmaintainable and misaligned with business goals - if we view those goals to be about data collection and not actually running a social network then the misalignment is actually worse.
Re:How I, as someone who is visually impaired, use my iPhone... by jayd16 on Thursday May 27, 2021 @03:23PM (#27307041)
Literally, Facebook reverse engineered Android's vm solution to monkey patch in a longer method table instead of reducing the method count. I have no idea why but their massive amount of client code seems very important to them.
Re:How I, as someone who is visually impaired, use my iPhone... by lwb on Friday May 28, 2021 @11:38PM (#27322850)
Part of it is FB’s company culture — generally the ethos has been to enable engineers, technical precedent be damned, and to never say no to a product idea. It is really impressive and a major part of why FB can move so fast despite being a very large corporation.
Re:How I, as someone who is visually impaired, use my iPhone... by swiley on Thursday May 27, 2021 @11:48AM (#27304486)
It's always absolutely fascinating how complicated people can make scrolling and displaying forms.

This stuff was solved in the early 90s and everyone's bored now.

Re:How I, as someone who is visually impaired, use my iPhone... by nawgz on Thursday May 27, 2021 @02:15PM (#27306249)
Infinite scroll was around in the 90's? Wow, I learn something every day on this site
Re:How I, as someone who is visually impaired, use my iPhone... by zozbot234 on Thursday May 27, 2021 @06:30PM (#27309391)
Yup. Browsers used to render all pages incrementally, so you could simply keep the HTTP connection open and add more HTML text to the page, and it would just get tacked on to the bottom. Then you had a CGI endpoint in a separate footer frame (sort of like an iframe but arranged in a Grid-like layout) with a "Read More..." form button for requesting more data. It worked really well and didn't even need to use JS.
Re:How I, as someone who is visually impaired, use my iPhone... by swiley on Friday May 28, 2021 @09:56AM (#27315353)
You can still do this. I wrote a chess game that checks arg 0 for "cgi" (otherwise it uses a VT interface) and renders a new board in the browser every time the other player makes a move. It works with absolutely no javascript.
Re:How I, as someone who is visually impaired, use my iPhone... by nawgz on Thursday May 27, 2021 @09:54PM (#27310911)
Imagine trying to argue UI development was solved in the 90s and then telling me you use manual pagination as the follow up
Re:How I, as someone who is visually impaired, use my iPhone... by tspike on Friday May 28, 2021 @02:54AM (#27312473)
> In Comments

> Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community.

> Comments should get more thoughtful and substantive, not less, as a topic gets more divisive.

> When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.

Re:How I, as someone who is visually impaired, use my iPhone... by nawgz on Thursday May 27, 2021 @05:54PM (#27309049)
You know, maybe sass isn't appreciated on this site, but it's pretty pathetic to imagine someone could unironically imply any part of UI was a solved problem in the 90's and not face a challenge here. UI engineering is a discipline which most software engineers grossly underestimate the complexity of
Re:How I, as someone who is visually impaired, use my iPhone... by mlcrypto on Thursday May 27, 2021 @05:09PM (#27308587)
Lol you are very naive if you think all Facebook does is show posts and messages. You need to track the users, collect sensitive date, and all the other malicious stuff
Re:How I, as someone who is visually impaired, use my iPhone... by dijit on Thursday May 27, 2021 @01:45PM (#27305884)
Errrrr. I make games, like, big games… compile times are a problem but it’s in the realm of 12hours at the absolute most.

Are you saying Facebook would take more time to compile natively than an open world game including baking maps?

Re:How I, as someone who is visually impaired, use my iPhone... by clarkcox3 on Friday May 28, 2021 @10:11AM (#27315525)
That is simply not true. Building the entire client app from source takes about a half hour.
Re:How I, as someone who is visually impaired, use my iPhone... by tootie on Thursday May 27, 2021 @03:12PM (#27306907)
The problem they're trying to solve isn't "Writing apps in Swift is too hard". The problem is "Writing your apps twice is expensive and throttled by Apple's ecosystem". Most app purveyors will target iOS first because iOS users tend to be more affluent and willing to spend money. Google obviously doesn't like that for their own competitive reasons, but the rest of the market is also loathe to give Apple so much power over the app market that they can charge monopolistic fees. And since Apple has no interest in making it easy on everyone to work with their competitors, dev tool makers are forced to use hacks like react-native to meet their needs.
Re:How I, as someone who is visually impaired, use my iPhone... by shoto_io on Thursday May 27, 2021 @04:31PM (#27308034)
Move fast and break things!
Re:How I, as someone who is visually impaired, use my iPhone... by tombert on Thursday May 27, 2021 @11:26AM (#27304221)
I agree completely.

I'm not visually impaired outside of garden-variety nearsightedness, but I sort of have a strong appreciation for "boring" websites that have very utilitarian "Header, subheader, body of text, etc...". They work well with text-only browsers, but also are trivial to make work with various text-to-speech things which I find occasionally useful; sometimes it's just easier for me to understand something if it's being read along to me while reading it, particularly if the font is small.

Re:How I, as someone who is visually impaired, use my iPhone... by 72deluxe on Thursday May 27, 2021 @11:38AM (#27304363)
They also typically load faster because they don't need megabytes of javascript to "display" the content or offer pointless fading in/out of text and lazy/load of images.

All of which means less CPU, fewer network requests and less power used which means a longer-lasting planet.

Re:How I, as someone who is visually impaired, use my iPhone... by tombert on Thursday May 27, 2021 @12:16PM (#27304791)
At some level I understand that it's kind of a form of artistic expression, and I understand and appreciate that. If people like making pretty and super-interactive websites because it's a way to make themselves happy, by all means they should do it. It's not radically different that someone getting into painting or sculpting in my mind.

I think I mostly get annoyed with stuff like news websites of personal blogs having all this extra crap added to it. At the end of the day, I view these things as somewhat utilitarian; I don't go onto a blog to be wowed by a million JavaScript effects, I go there to read text, and maybe some pictures to help elaborate on stuff.

Re:How I, as someone who is visually impaired, use my iPhone... by visarga on Thursday May 27, 2021 @11:44AM (#27304431)
> sometimes it's just easier for me to understand something if it's being read along to me while reading it

Doing exactly this right now. I use a bookmarklet to make anything I click start speaking, on any website. It even shows the progress by fading away read words. I've been doing this for at least 7 years, always using Alex from MacOS, at 1.3x. I used to have it work on PDF's as well, but that went away when Chrome's PDF viewer was changed from PDF.js

Re:How I, as someone who is visually impaired, use my iPhone... by quenix on Thursday May 27, 2021 @04:02PM (#27307565)
How can I get this bookmarklet?
Re:How I, as someone who is visually impaired, use my iPhone... by visarga on Friday May 28, 2021 @05:23AM (#27313298)
Unfortunately no because it logs my readings for later. It's not built to be used by more than one.
Re:How I, as someone who is visually impaired, use my iPhone... by mumblemumble on Thursday May 27, 2021 @10:14AM (#27303399)
I was recently shopping for cross-platform desktop GUI toolkits, and discovered that there are really very few options that work well with screen readers. The only ones that seemed at all viable were Electron and JavaFX.

.NET MAUI also seems very promising, and I like that they're actively blogging about it[1], but it hasn't been officially released yet.

Anyway, it seemed to me that basically all the others either aren't accessible at all, or are only accessible on one or two of the target platforms, or have long-standing accessibility bugs that seem like they would render the UI unusable.

[1]: https://devblogs.microsoft.com/xamarin/the-journey-to-access...

Re:How I, as someone who is visually impaired, use my iPhone... by nicoburns on Thursday May 27, 2021 @10:23AM (#27303503)
Does QT not work with screen readers?
Re:How I, as someone who is visually impaired, use my iPhone... by mumblemumble on Thursday May 27, 2021 @10:27AM (#27303551)
According to the information I was able to gather, it seemed that the answer to that question depends on whether you ask Qt, or a visually impaired user of Qt applications.

I decided the latter opinion was the one I cared more about.

I'm admittedly trying to play it very safe. I have zero proficiency with screen readers, so I'm not really able to independently verify any of this. All I know is that the GUI toolkit is one of the most expensive things to have to change later, so I want to be as close as I can possibly be to 100% sure that I won't end up in a situation where my projects have accessibility issues that I can't fix without changing the GUI toolkit.

Re:How I, as someone who is visually impaired, use my iPhone... by mwcampbell on Thursday May 27, 2021 @11:19AM (#27304152)
Thank you very much for taking the time to research toolkit accessibility and being willing to make it a deciding factor. Which toolkit did you go with?

From what I've read, JavaFX apparently has its own accessibility problems; for instance, I vaguely remember reading that if you used Alt+Tab to switch to or from a JavaFX window, JavaFX would automatically activate the menu bar. I've never used a real JavaFX-based app though.

As much as some of us might dislike it, I think the safest choice is Electron, or just making it a web app if that's an option.

Re:How I, as someone who is visually impaired, use my iPhone... by mumblemumble on Thursday May 27, 2021 @11:41AM (#27304397)
I chose Electron, largely because there seemed to be a lot more good documentation on how to maintain a decent level of accessibility.

Electron does have its downsides. On the upside, one nice thing about making screen reader support non-negotiable is that it took so many options off the table. So I was at no risk of analysis paralysis, and I don't have to worry about second-guessing my decision.

Re:How I, as someone who is visually impaired, use my iPhone... by tombert on Thursday May 27, 2021 @11:28AM (#27304246)
> I've never used a real JavaFX-based app though.

Neither have I; from what I can tell, the only place that JavaFX seems to have a foothold still is "intro to software engineering" classes in colleges.

Re:How I, as someone who is visually impaired, use my iPhone... by mwcampbell on Thursday May 27, 2021 @11:34AM (#27304320)
> "intro to software engineering" classes in colleges

That's not nothing. Blind students need to be able to participate in those classes.

Re:How I, as someone who is visually impaired, use my iPhone... by tombert on Thursday May 27, 2021 @11:55AM (#27304538)
Oh, to be clear I don't disagree at all. I'm all for making this stuff more approachable.
Re:How I, as someone who is visually impaired, use my iPhone... by lukastyrychtr on Thursday May 27, 2021 @10:33AM (#27303630)
The basics work, however for example screen readers do not anounce context menus under Windows, treeviews are not providing all the information they could see (https://bugreports.qt.io/browse/QTBUG-81874?jql=text%20~%20%...), etc. But in the end, if you need somewhat more advanced widgets (tables etc.) and you do not want to implement the gui on each platform or use Electron or similar, you have no choice.
Re:How I, as someone who is visually impaired, use my iPhone... by inamiyar on Thursday May 27, 2021 @10:13AM (#27303394)
This as of now also applies to most Rust UI libs, hence why I don't use them. At least in that community each UI kit has an 'accessibility' issue though so hopefully improvements to come.
Re:How I, as someone who is visually impaired, use my iPhone... by brudgers on Thursday May 27, 2021 @03:54PM (#27307432)
Apple and Google have done all that work because of accessibility laws at the US Federal and state (particularly California) levels. They have done it because accessibility laws are Civil Rights laws.

They have done all that work to avoid problems in the lucrative market that is the US.

Microsoft has done similar work for the same reasons. Business reasons. Bottom line reasons.

Re:How I, as someone who is visually impaired, use my iPhone... by dagmx on Thursday May 27, 2021 @06:59PM (#27309656)
While that is true, many of the devs also do care greatly about accessibility. As someone who has worked on some a11y stuff, I do it because I think it's the right thing to do, not because of the regulations. The regulations just set a baseline.

People often forget there are humans on the other end developing things, not just faceless corporations.

Re:How I, as someone who is visually impaired, use my iPhone... by brudgers on Thursday May 27, 2021 @07:25PM (#27309855)
The developers are paid to work on those things for the stated reasons. The alignment of interest is fortunate. But the motivations are orthogonal.

People often forget that companies are not humans.

Re:How I, as someone who is visually impaired, use my iPhone... by dagmx on Thursday May 27, 2021 @08:16PM (#27310280)
companies don't make decisions just out of thin air. A lot of the accessibility features on display aren't just meeting the baseline, they go above and beyond. That's done because people legitimately care about this stuff, in addition to it being beneficial to the company.

The point is it's not all mutually exclusive.

Re:How I, as someone who is visually impaired, use my iPhone... by brudgers on Thursday May 27, 2021 @09:43PM (#27310845)
I don’t see anything above or beyond. Just an effort to comply with civil rights law. I mean Steve Jobs was infamous for parking his Benz in handicap parking spaces just for convenience.

The companies are just as committed on principle as a real estate developer who puts in curb ramps to stay out of court.

That doesn’t mean the designer who drew the plans and the building inspector who approved them don’t care about the plight of the disabled. But the ramps are there because of the law not goodwill.

Re:How I, as someone who is visually impaired, use my iPhone... by josephg on Friday May 28, 2021 @07:55AM (#27314282)
They're there for both reasons. Laws never compel fully moral, virtuous action. There's no law forcing me to be nice to my inlaws. The law only says I can't assault them or rob them.

Its the same here - Apple had some legal obligations, but they didn't need to make their phones so insanely accessible to blind people. The situation is kind of absurd - the software on ios for blind people is so good that blind people prefer to use iphones (which are pure touch screen devices) over phones with keyboards. And they have since some of the very first iphones, back when there was real competition.

Desktop computers from a few years ago didn't do any of this. Screen reading software on windows used to be 3rd party software, and it sort of sucked. Apple could have made some APIs for that and forced someone else to make expensive, janky software for blind people. The law also has no problem forcing blind people to buy expensive electronic braille keyboards and things like that. (Which used to cost upwards of $3000.) Again, they could have done the same with the iphone - forcing blind people to type with $3000 external bluetooth braille keyboards. But they didn't do that. They built everything blind people need into the operating system. They made it work well.

Be cynical if you need to. I have no shortage of criticism for the way Apple handles the app store. But credit where its due - Apple has gone above and beyond to make accessibility for blind people great on the iphone. And I think accessibility on android isn't too far behind. The software on modern phones is a massive enabler for blind people the world over. It didn't happen by accident, and it wasn't written to pass the minimum bar set by the legal department. Real people poured love into modern smartphone accessibility, and it shows. They deserve credit and respect for their work.

Re:How I, as someone who is visually impaired, use my iPhone... by bryanrasmussen on Friday May 28, 2021 @04:08AM (#27312890)
I've heard that companies sometimes do things to keep humans employed with them happy to be employed there.
Re:How I, as someone who is visually impaired, use my iPhone... by nr2x on Thursday May 27, 2021 @10:19PM (#27311048)
I'm not sure if that's actually fully settled, but the supreme court only recently rejected dismissal of a case on this (sending it back to lower courts), and DOJ has not specified if ADA applies to websites/etc. IANAL, but I believe this issue is still being contested.

https://www.reuters.com/article/us-usa-court-dominos-pizza/u...

Re:How I, as someone who is visually impaired, use my iPhone... by econnors on Thursday May 27, 2021 @02:00PM (#27306075)
There are some folks doing great work here, although I agree on the overall sentiment. Ryan Florence is one name that comes to mind: https://reach.tech
Re:How I, as someone who is visually impaired, use my iPhone... by raarts on Thursday May 27, 2021 @05:50PM (#27309011)
Question. Would Flutter fall into this category? Because that would be a dealbreaker for my projects.
Re:How I, as someone who is visually impaired, use my iPhone... by pax_americana on Thursday May 27, 2021 @11:24PM (#27311408)
It has a pretty good accessibility story for it's built-in widget set (Material and Cupertino). However, if you want to create a new Widget that does not depend on the built-ins but still provide a11y, you can wrap it using the Semantics[1][2] widget.

[1] https://api.flutter.dev/flutter/widgets/Semantics-class.html

[2] https://youtu.be/NvtMt_DtFrQ