331 points · by tech234a · 7y ago · 333 comments
The browser should have a WYSIWYG mode for when your application needs it. The server could re-scale as needed for different devices based on a layout engine of the designer's choosing. That way one is dealing with one layout engine instead of say 50 (browser brand/version combos). Seems more logical to me. We don't need auto-flow rocket science if we just partition layout engines logically.
I believe Flash and Java Applets both made the same fatal mistake: tried to be an entire virtual OS. That made them too complicated, which invites hackers. If they had focused on just UI "serving", they could have been small enough to be manageable.
... unless you're working in a space allowed to discriminate against users that need assistive access to your content of course, in which case you can spring for the WYSIWYG dream.
I don't think that's actually where we are though. As you touch on, code is inherently necessary in order to build responsive pages. A static layout will never know how to reflow itself when the window size changes; it needs code to define that behavior.
I know what you mean wrt fixed-width layouts, but want to point out that reflow is the default browser behavior in the absence of problematic markup and styling rules. That's the beauty of mobile-first RWD and progressive enhancement when done right; the starting point is just the content, full stop. The first media query is the absence of support for media queries. Then min-width rules to guide layout changes across progressively larger breakpoints.
This is no longer true. CSS grid solves this completely.
And for those who cannot, there can and should be a simple htmltext fallback.
But that should not cripple the manority who enjoy nice looking things, which are way easier to achieve with WYSIWYG tools which is why flash was loved among designers.
Assistive access to content is an afterthought for almost everyone in software, and that's perfectly fine. It's an extremely uncommon and unnecessary use case for nearly the entire device-using population.
It's not perfectly fine - it's illegal.
https://en.wikipedia.org/wiki/Americans_with_Disabilities_Ac...
Which is why it's not a bad idea to stick close to the base HTML spec unless you have a real good reason to deviate from it or use advanced features, JavaScript based animation, etc. Because HTML is a document format not a render format, staying close to home on the spec gives you a lot of accessibility for free. Not all of it, images of course are still just binary blobs without more metadata, but you cover a lot of ground.
A website in flash got approximately zero of that for free, and it was a known issue in that era. Accessibility suffered.
PDF's, for example, can be made accessible if created properly.
Restaurants can offer Braille menus. They aren't forced to put translations in Braille immediately next to every piece of text on the menu they give to everyone.
... granted, they're also screwing themselves over because anyone trying to integrate something like UberEats against them to provide delivery is gonna skip them over for the competitor with the more-easy-to-scrape online presence. ;)
PDF lives because it's ubiquitous and stable, despite really rough tooling. If you don't have Acrobat it's a bit of a nightmare to work with, simply because it's so opaque. Yes, you can decompress a PDF to text and look through it by hand, but you need to learn the syntax and know how to use an extensible text editor with the write add-ons; this isn't something your average person in an office will know how to do.
The lack of discoverability is evidenced by the number of posts on Stackexchange etc. that answer "how do I losslessly recompress a PDF?" by giving a command that actually performs lossy downsampling. Or the accidental inclusion of secret layers underneath what were supposed to be blackout redactions. Personally, it took me ages to figure out how to losslessly recompress a monochrome image using JBIG2, which provided an enormous space savings and should have been much easier with some tree-based GUI explorer.
I'm hoping that one day we'll get a good, stable, powerful, reflowable PDF-like format. HTML+CSS+JavaScript works, but it's a huge standard, rendering is not exact, performance (in terms of memory usage in particular) isn't great, it's best created by hand (requiring programming and/or technical knowledge), and it's not really self-contained or sandboxed from network access.
Can you write more about that? And what was the initial format of a monochrome image in the PDF, and why wasn't it JBIG2?
As to the conversion itself: I think every page was just an image (which was fortunate, as I'm not sure how I would do this otherwise) so I extracted all the images with something like mutool, converted them using jbig2enc after figuring out the flags to use to ensure lossless compression, then use some tool (ghostscript? imagemagick? some dedicated image-to-pdf program?) to smush it all back together.
So the flow was original.pdf -> [page1.png, page2.png, ...] -> [page1.jb2, page2.jb2, ...] -> new.pdf
I can't recall the original format of the images. Obviously it was something less efficient, but it was lossless. Presumably the images were compressed using the less efficient scheme because whoever scanned the pages didn't know they could twiddle some knob on whatever scanner or scanning software they were using. Or there was no knob for them to twiddle.
My next website project will be published in PDF, not HTML.
And if your objection is that it can run JavaScript and make web requests, then I have some bad news for you about PDFs.
Out of these two conflicting ideas come all sorts of issues. Accessibility is one, but so are things like scraping, copy/paste, DRM, confidentiality, artistic integrity, cross-platform compatibility, new devices, peformance & resource consumption, etc.
The server having more control doesn't necessarily harm accessibility. It's a matter of making sure sufficient meta-data is included. It's possible accessibility is more work under the second, but not outright impossible. (I've stated more about accessibility nearby.)
That said, Flash was/is an accessibility nightmare. It broke screen readers, and the animations and custom interfaces regularly created unnecessary cognitive load and confusion.
Later, the designers showed up and started abusing <table> and <img> and body background, thinking the web was a word processor or Photoshop, and everything started going to hell. Now we have JavaScript and <canvas> and I as a user have pretty much lost all control over my browser. It’s just been handed over to the web site publisher, who tries to get rid of my scroll bars and worries whether some element is rendered 3 or 6 pixels wide on different browsers.
In my view, we sacrificed a lot at the altar of “predictable layout”.
> It’s just been handed over to the web site publisher
This is an illusion. It is a fact that the evolution of the web as a medium empowered publishers with more control. However, the browser is running on our computers. The truth is we let them have control. We trusted the publishers and allowed execution of foreign code on our machines.
We gave them that power. We can take it away. It began with popup blockers. Then people created ad and script blockers. Now we have general content blockers. I bet one day people are going to make GPL'd custom clients for popular websites.
<map> was the true monstrosity, <table> and <img> were improvements upon it, but were burdened by padding and margins added by early browsers that were difficult to modify and retain consistency.
The situation hasn't really improved much; creating a website nowadays is a matter of dedicating yourself to a custom content platform, like Blogger/Squarespace/Wordpress, or learning the arcane language of HTML+CSS+JS.
That's a far cry from the drag, drop, click, publish or share of Flash. Just how does an individual create a .EXE of their animation/game/document and send it via email, nowadays?
The key question is if these are mutually exclusive goals or not. Can we take the simplicity of Flash's concepts and improve the accessibility, or will fixing accessibility inherently ruin the simplicity?
It seems to me that accessibility meta data can be supplied to the client independent of layout info. If Paragraph A comes after Paragraph B, the meta data can indicate that regardless of where A and B show up on the screen. Ideally they don't contradict, but my point is that they can be independent.
Conceptually think of two different markup tag sets. Set A is for visual positioning only, and Set B is for semantics (accessibility). The visual rendering engine would ignore tag Set B and an accessibility "reading machine" would ignore Set A. For practical/convenience reasons we may want to tie them together at times, but it's not a requirement for making both the visual screen "happy" and making ADA devices "happy" at the same time.
They can be independent info.
A fixed layout is not going to work for all devices.
Such a choice is tantamount to deciding that some classes of devices are not going to be supported, which may be a reasonable choice but better to make good choices in the HTML and CSS and let the devices try to make something usable of it rather than giving them a fixed window into a layout intended for another.
Designers are also making their choice with HTML nowadays : Desktop is not supported anymore. Look e.g. at twitter, a billion dollars company switching to mobile web only. Flash could easily implement media queries to re-layout itself.
Source? Twitter.com currently works just fine on Desktop. Even dynamically adjusts its layout to look good on a bunch of different screen sizes.
The layout engine in flash was REALLY well thought out, and allowed for simple constraints that would allow for things to grow or shrink based on screen size. You could anchor buttons and they would move properly, all without having to worry about things breaking across browsers.
If someone would re-implement just this feature along from flash i would be REALLY excited to use it!
So far i dont think there is really much in the way of "constraint based" layout engines that are easy to use for the web is there?
Agreed, but not all apps need watch-to-wall scaling. All our internal "productivity" apps run on desktops and nobody has complained. Certain check-status-of-project kinds of apps may be something people want on mobile, but not heavy data chomping/sifting.
Different things need different tools and standards. Even web apps don't really work right on mobile unless you test and adjust for mobile. Using Twitter Bootstrap etc. does not guarantee an app is usable on mobile.
And sometimes it seems it would be easier to make two different apps for different devices rather than one-size-fits-all, as it's nearly impossible to optimize the UI to automatically adjust to both using Bootstrap etc. Workable on both, maybe. Optimized for both, no. There may be handful of people in the world who can pull that off, but you won't find them.
My mother still uses an iPhone SE with a 4.7" screen, while I use a gargantuan phablet. My grandmother has poor eyesight and runs her browser on a 720p screen at 175% zoom, while I have a large high-resolution monitor and normally open browser windows to 1280x2160 portrait. My monitor is color-calibrated and extremely bright during the day, but after sunset it's deep amber and very dim.
If you think that WYSIWYG for the web is desirable, you haven't understood the web.
Maybe the form it takes would be a good place for discussion, but really there is no reason things like this have to be inaccessable to screen readers any more than a native app would be.
Let’s be fair here: every major web browser also implements an entire virtual OS by this metric, probably even moreso than Java or Flash ever did. Yes, they absolutely do invite hackers with their absurdly complex designs, but advances in security-in-depth have made them fairly hard targets (not invulnerable, though, as Pwn2Own demonstrates annually). Flash and Java never really had enough attention paid to real, in-depth security engineering by comparison, and browsers learned from those lessons and improved. The JavaScript engine and API scope in a modern browser is easily multiples of what you could access from ActionScript in Flash, but the security is much better.
I just to make or consume that sort of content anymore though. I couldn't even tell you how to do it using HTML, or how to author it. Speaking of school,
<aside>I remember when I signed up for a Director course (Director!), and it was re-done into an advanced internet art class, and all I did was hand in HTML/Javascript assignments. I failed the class, as I worked on all that stuff during my job, the teacher didn't know anything about the tech, and I was inundated with questions on how to do cool stuff. </aside>
Which hasn't gone anywhere, but has been renamed Adobe Animate.
This isn't some defense of Flash and its attendant problems but Flash is very different from that. Canvas is a drawing surface, Flash has a full-blown component model. You can't put a canvas in a canvas.
In the end, technology moves forward. And frankly, there are enough libraries for grid/layout that really close to just work. I find that material-ui with react is insanely easy to use compared to what came before. Every time I do anything more custom, yeah, I have to google it and play around witht he CSS rules. However, for CRUD guis, material-ui library all the way.
In the end, you aren't going to get away with knowing nothing. Even in the Flash days, if you wanted to do anything interesting you had to know ActionScript and the quirks that went with it. For forms and crud apps, you had Flex, which had its' own niceties but wasn't a panacea either and wasn't WYSIWYG either.
What could have saved Flash was opening the runtime and creating an interoperable specification and let browser vendors work with Adobe (Macromedia and I forget the company before that) etc. Silverlight was much closer, but still sucked in a lot of ways that held it back in the end. Flash's tooling still exists and iirc targets HTML5 these days, so you can still pay and use it.
If Flash had simply been a bundle spec for a zip archive with a manifest file, JS, SVG and MP3 (or other audio) and video files it could still be a thing. I had hoped that would be the direction it would go when Adobe bought Macromedia. It wasn't. It was the source of too many bugs and crashes and it died because of it.
At any rate, HTML layout is determined by the spec barring rare bugs, so you can design something that lays out exactly how you want regardless of browser, except that you must decide and specify the layout for any possible width/height combination.
I hate designers who think they are typographers. Typography is an engineering discipline. It is not something you want to leave to designers. Especially not insecure designers (and customers) who need constant novelty.
Computers are not paper. Get over it and adapt.
For CRUD apps, you really just want HStacks, VStacks, and ZStacks like they have in SwiftUI.
They nicely express reflow behavior without driving you crazy or bloating your code. They're a bit more work than drag-and-drop because they make you be explicit about resizing/reflow, but you should be thinking about that anyway.
You'll want to skip that step when iterating quickly on design, but that's why you design in a separate design tool, which is visual and uses position:absolute.
When you're ready to parameterize the design over varying content and screen sizes you'll have to specify resizing constraints somehow, and in my experience, VStacks/HStacks in code are a pretty good way to do it.
I recommend adding building these abstractions on top of flexbox, and adding them to your standard library.
This is all specifically for CRUD apps. If you're making an animation, or something else that would feel wrong to call a "document", you probably want a completely different set of tools.
Yes, browsers do have different layout engines available, but they all go through buggy and inconsistent JavaScript and CSS in the end: the chain is as strong as the weakest link.
Would a canvas and/or SVG GUI be acceptable?
In the most technical sense, yes, but it's way too low level an abstraction to be practical. Flash's entrypoint abstraction was the timeline, which already bundles up a huge amount of complexity around time-based transformation of content that you'd have to build atop canvas to approach Flash's convenience.
The industry really needs a dedicated GUI-friendly standard. Emulating GUI's keeps failing. If you fail 30 beauty contests, the blunt truth is you are ugly. Get a clue and change direction.
There is some precedence. Rich Harris (of Rollup & Svelte fame) has been toying with the idea of a precompiler for Web GL...
But if you're trying to optimize across several displays HTML can re-flow for you and isn't generally terrible unless you're doing things that need to be pixel-perfect.
1. Page and document centric (HTML may be close enough)
2. Productivity and data-oriented GUI's ("cubicle" stuff)
3. Games, art, and diagrams
Doing everything in HTML/CS/JS keeps proving too clunky. Even the big wealthy sites have odd rendering bugs that pop up.
If the "designer" of a web page were able to send me plain text and links only, with my client application in control of the font, size, line width, layout, etc, I would prefer that to current state of the web.
How about we quit ignoring the elephant in the room?
CSS sucks. It was designed for a time when Javascript wasn't required for every website.
Now that we've thrown in the towel and every single website is dependent upon Javascript, we should toss CSS, too.
The only tool that does this to my knowledge is Tumult's Hype: https://tumult.com/hype/. I'm glad it's using an old-school pricing model of one-time payment and not the subscription model that Adobe and everyone else switched to.
Adobe Animate used to be a thing, but that got sunset years ago. There is Adobe After Effects + Lottie, but that assumes you are a front-end developer and know how to integrate those tools together and use the resulting JSON.
No wonder then that the only visually interactive websites out there these days are things like "Spotify Year in Music" stuff that probably takes an entire team multiple sprints to build.
Adobe Animate received two feature updates last year and at least one bug fix update this year.
So, it's not dead yet. Maybe wait until after Adobe MAX (which starts in a few days) to write its obit?
Hype is a desktop app that give you much more control and is targeted at Flash game devs, web designers and others.
Back in the day I worked with a team that created training modules for products. We had a team of animators that was creating beautiful stuff. We had a cast of characters, voice talent, the whole shebang. It was very popular, especially in Asia where they loved the animated training.
Then the iPad came out. Our customers informed us that they were going to adopt the iPad for their on the floor training. Well, the iPad didn't support Flash so we had to rebuild everything to be HTML/CSS/JS only. It has been nearly 10 years and we are still using plain text, images, and the occasional video. We tried bringing back the interactive animations over the years, but nothing has come out that comes anywhere close to working as well as Flash did. It really sucks that despite nearly a decade no Flash replacement has emerged. I really feel like we lost something when Flash died. Interactive animations have been replaced with youtube videos and boring text and image web pages.
I don't think it's as simple as "web secure, everything else bad". For the very longest time only Chrome and Safari had working sandboxes, and there wasn't a huge difference in the exploit stream between WebKit, Flash, Java and Adobe Reader. They all had somewhat similar feature sets.
One thing I do wish they would / could do in situations like this though is open-source the core of that crawler, so if someone else finds a purpose for it, they could run their own on whatever corpus they care to index. But, such is the price of relying on closed-source software for things.
I'm all for downranking it to the last page, but when your google results only has 2 pages total, every single result matters, including that flash content.
- Every page had its own navigation style.
- Every page had its own font which you could not change. Remember the trend with 8px bitmap-like fonts where you used a special setting so they would render very sharp?
- Every page had its own scrolling style. Want to use the mouse wheel? Nope.
- Caret navigation for the impaired or people who prefer keyboard navigation? Forget about it.
- Stop sound? Only if we give you a button for that.
- Here's our looping video intro, you must watch it before accessing this website.
- Deep hyperlink to the next "page"? That came very very late. A bit too late for Flash.
- View on mobile? Even if you had the plugin somehow installed (some people did back in the day on Android) pages would still be unusable.
- An error has occurred within this SWF blob, good luck debugging.
- Later came the exploits.
I was a fan for a while and used it since Macromedia Flash 4, but I'm glad it's dead and buried. It was poor tech which subverted progress in the HTML/CSS/JS space for many years.
Quite interesting if you think about it! A bit of an antithesis to the idea that what's on the web is preserved forever.
Basically there is a program you can download from Adobe called Flash Player Projector Content Debugger, then you just point that at the .swf and go.
An open source emulator would be better in the long term, but for now this is easier than trying to find a browser that still supports Flash natively.
Looks like it got dropped from Ubuntu though.
Now that the adtech firms switched to building the browser and the cluster of html5 technologies have matured it's easier to track people natively. That's really the only reason flash went away.
Unity is just one example that can export to web. There's https://playcanvas.com/ too and a plethora of other stuff :)
Unity demo: https://wasm.bootcss.com/demo/Tanks/
It'd be a great open source project. As a commercial product, it'd probably be enough to support a small team, but I don't see a way for it to get huge.
Technically, yes. Commercially, no.
remember that time when Steve jobs kept out flash from iPhone /iPad vs Google's stance to go full on support for flash on mobile :)
When Adobe finally did make it to Android, it required a gig of RAM and a 1Ghz processor. The original iPhone had 256MB of RAM and a 400Mhz processor. An iPhone with those specs didn’t come out until 2011.
One of the big selling points of the Motorola Xoom was that it would run Flash. Adobe was six months late leaving the Xoom in the embarrassing position that you couldn’t view its Flash enable home page from the device for at least the first six months.
Just running the plugin on a phone isn’t the hard part.
It's so sad too because Flash is still amazing when it comes to animating vector graphics in a crossplatform way. Nothing in the HTML5 world remotely comes close.
You can upscale Homestar Runner to 4k and it renders beautifully. Now that it's all YouTube videos, whatever resolution they rendered it at, there it will stay for forever (plus you lose all the clickable eastereggs in the Strong Bad e-mails!)
If that's the case, Flash should be held up as a case study for the utility of robust tests. Because the amount of refactoring needed to make it fit the mobile world was significant, and if the codebase was fragile because of lack of tests, that refactoring may have proved expensive enough to kill the whole technology stack.
1. Adobe announced Flash's EOL by the end of 2020. Google isn't killing Flash, it's already dead.
2. Indexing Flash means parsing site structure embedded within SWF files. When was the last time you saw a website with Flash navigation? Your SWF web games are embedded in normal webpages that will still be searchable via H1 tags, backlinks, and so on.
Surprising number of Flash lovers coming out of the woodwork after nearly a decade of Flash hate on HN (proprietary, security holes, etc).
But in the web era, IP isn't king; communications is.
But I also think this is a bad idea, just from an information retention scenario. What ever happened to "to organize the world's information and make it universally accessible and useful?"
What will Google decide the world doesn't need to know about next? HTML2? JPEGs? non-Google-hosted javascript?
This is what we get for allowing a private company to be the gatekeeper of our culture.
Also, it's not just Google doing this. Pretty much every major browser vendor is dropping support for Flash in 2020.
- Abobo's Big Adventure (abobosbigadventure.com)
- Super mario bros crossover (http://supermariobroscrossover.com/)
The fact that they weren't very imaginative or fun or free is what the hyperconnected mobile web brought us.
It seems that Google is already using WebAssembly in its products, Google Keep [0], so it is likely that they will continue to use this.
[0] - https://webassembly-security.com/google-keep-webassembly-mod...
This is a rather creepy equivalence.
They've told us that replacing it is "on their roadmap," but haven't told us when they plan on replacing it. (I also think that Verifone's vault for credit cards was flash based until earlier this year!)
They also told us that replacing it is "on their roadmap," so we replaced Kronos.
Same for Firefox: https://support.mozilla.org/en-US/kb/npapi-plugins
Not 100% sure about IE, but it doesn't seem like you'll be able to make Flash work there either: https://blogs.windows.com/msedgedev/2017/07/25/flash-on-wind...
I think Firefox ESR might still support Flash for a while, at least until the next release.
Its funny how many people are willing to give up their freedom to decide what works best for them, and let others decide, in the name of "im doing all this for your own good".
You should always have the right to decide what technology to use, what you install and download on your device.
The whole app store deciding what they allow or not, not giving you any other alternative, should be deemed inconstitutional in a society who knows whats happening, when people have nowhere else to go because the digital dictatorship is in control of your digital life.
This whole trend smells digital feudalism to me, and it was Jobs that started this whole dangerous trend to the bottom of our civil liberties.
Why are you defending this new feudal lord who are mining your right to choose what you do with your own property?
If after having bought a house, the guy(or company) who have selled to you, had made some demands of how you could use the kitchen, or the bedroom, would you think its within his right to do so?
Each and every time a costumer buys an iPhone they're deciding.
Adobe decided to do a half-assed flash player for the Mac. That decision proved to be wrong.
Or do you really expect that Adobe would do a decent job supporting an new platform when they couldn't even bother supporting the big cash cow Apple had at that time?
Edit: I just found this subthread: https://news.ycombinator.com/item?id=21388405 Quite a few alternative implementations are mentioned. Doesn't sound like anything will be perfect, but this looks more future proof than I was afraid it might be!
They even have a shortcut to create a snapshot and insert it directly in a cell. Sadly, it requires Flash.
I understand the reasons behind this but it seems like over 15 years of flash content is about to be rendered unaccessible.
The devices used proprietary level 7 protocol sitting on top of regular TCP/IP (could easily debug using netcat).
Actionscript made it easy to work with this proprietary protocol.
How would one do this with Javascript these days?
You probably couldn't do it with WebSockets since WebSockets are at the same level 7 as the proprietary protocol, so you'd need to run some server to translate.
Maybe, this https://www.w3.org/TR/raw-sockets/ ?
Please write to leisenming AT protonmail DOT com
Does Google no longer index .zip files and the like? Obviously they can't process any content in those formats, but if the file name contains the right keywords... shouldn't search be file type agnostic?
I've had .exe's show up in Google results. It was a long time ago—so maybe things don't work like that anymore—and it was never common, but I know I've seen it happen. I'm sure Google could look inside the binary for text strings, but I can't imagine they do.
There is perhaps an argument that standalone exe's shouldn't turn up in results for security reasons (how can you possibly verify its safety without some context?), but I liked to think that search results could at least theoretically include any file type at all.
so much is said and implied in those sad, sad words
I've never understood why it was necessary to ban it from browsers and practically kill nearly 20 years of games and animations.
Let’s be honest. It is not going to replace flash. It’s a real shame that flash couldn’t make it. Perhaps for good reasons. But it’s a real shame.
That runtime is likely to end up looking a lot more like a console hardware emulator than a data parser.
Here’s to hoping the future comes back a little sooner, rather than later.
Same thing with hypercard and other cool-but-abandoned platforms.
I remember when the first 7" Galaxy Tab came out in late 2010. Jobs mocked its size, saying you'd need to file down your finger to use it, while at the same time working on the iPad Mini, which wouldn't launch until after his death.