News for hackers. Stuff that matters.
Re:I still use Flash in 2022 by int_19h on Wednesday December 21, 2022 @07:41PM (#34088287)
The problem is that the approach itself is kinda flawed. The moment you have to support high-DPI or translate the app to a different language (with text labels of different size), that whole trick of just WYSIWYG dragging and dropping widgets in a visual designer breaks down.
Re:I still use Flash in 2022 by fomine3 on Wednesday December 21, 2022 @10:55PM (#34089601)
HiDPI isn't a problem but variable (dynamic) size is.
Re:I still use Flash in 2022 by int_19h on Thursday December 22, 2022 @02:46AM (#34090889)
The problem is that on some platforms, text doesn't quite scale linearly as you increase the point size. Techniques like subpixel antialiasing with pixel-snapping produce shapes that are more readable on low-res screens, but it also causes distortion to letter shapes, and with multiple letters, depending on the exact text and its location, it can add up to amounts significant enough to cause overflow.
Re:I still use Flash in 2022 by fomine3 on Thursday December 22, 2022 @05:42AM (#34092014)
It's a problem on older GUI platform with HiDPI support, but new WYSIWYG GUI platform should be able to implement it correctly.
Re:I still use Flash in 2022 by int_19h on Thursday December 22, 2022 @03:50PM (#34098485)
It's a problem on any platform that wants more readable text on low resolution. The only platform I know of that chose precise text layout over contrast regardless of the resolution is macOS. On Windows, ClearType still behaves as I described above. On Linux, it depends FreeType settings, which you don't know in advance, so you have to assume that it will happen.
Re:I still use Flash in 2022 by dheera on Thursday December 22, 2022 @03:34AM (#34091125)
> translate the app

The way translation is implemented today is horrifying.

Likewise for high-DPI. Why are they still using some linear scaling of icons instead of a super-resolution GAN and some caching?

Why can't an OS translate a single-language app on the fly using state-of-the-art translation neural nets and using visual attention to capture context? It's almost 2023 ffs, and people are still using some gettext nonsense?

Re:I still use Flash in 2022 by jimnotgym on Thursday December 22, 2022 @07:42AM (#34092724)
It isn't just the WYSIWYG element though, developing the UI elements in code is not that hard.

But imagine in Tkinter and Python, probably the least steps to get a basic UI, there is so much to manage.

In vb you double clicked a button in the designer and got a place to type code. All the stuff about event loops, and not blocking the thread was dealt with for you. In Python if you try the same thing the app freezes continuously. Then you want to do simple everyday things like a date picker, or progress bar, and find you need to implement it yourself????

Then having built your app in Tkinter and Python, you want to share it with some colleagues...so where is the 'compile button'?

It is easier to implement a machine learning model in Python than it is to make it into a standalone app with a file importer and a 'go' button!