r/programming • u/Darkglow666 • May 07 '19
Flutter for Web (technical preview)
https://flutter.dev/web11
u/tonefart May 08 '19
Why bother? You'll just be letting google take control of development standards for web (html5/javascript/css)
-7
u/MachoAlpha May 08 '19
It's better this way than the mess it is right now
6
u/tsjr May 08 '19
Yeah, that's the reason why Flash and Java are preferred on the web over the mess we have – things sure are great where you give one company a way to dominate and control the platform ;)
And on this topic in particular, I don't think it's even replacing the mess: it's just adding to it. If HTML, JS and CSS are still there then Flutter Web is just another layer of shit slapped on top of it, with the exact same inherent problems that Angular are others still have. If it at least replaced JS with Dart-compiled-to-WASM I'd see it as an improvement, but as of now it just seems like yet another translation layer with the exact same problems as all the other ones have.
2
u/virtualistic May 08 '19
(disclaimer: I work on Flutter for web)
Flutter Web is built on top of existing HTML/CSS/JavaScript standards. We do not require any proprietary browser features. We do stumble upon browser differences here and there, but that's because browsers do not implement the standards 100% identically, not intentionally. However, you could say that we use these standards in an unorthodox way. You wouldn't be entirely wrong. We actually tried a more typical approach in a prior prototype (details in my blog post), but we failed to express the kinds of UI and interactions that Flutter is used for, so we had to be creative. We actually use a small subset of HTML and CSS because the Flutter framework does a lot of heavy lifting for us (e.g. layout), so we avoid a lot of "the mess" :)
WASM, WebGL/WebGPU are still options for us (or the community) to explore in the future. For now, we are trying to see how far we can go with the HTML/CSS/JS stack. This stack is adding interesting new capabilities too. For example, we're exploring the upcoming CSS Paint API.
1
7
u/colelawr May 08 '19
Wow! This is a huge step for Flutter. A lot of people are highly skeptical of Flutter, but I'm still hoping that it succeeds, since it has been one of the most enjoyable cross platform UI development experiences I've seen.
1
u/ClownReddit May 08 '19
With this I believe Flutter has (WIP) targets for mobile, native desktop and web, so basically every platform is covered. Pretty huge for the security of the toolkit.
2
1
u/feverzsj May 08 '19 edited May 08 '19
why not qml, you can use js directly.
3
1
u/virtualistic May 08 '19
QML is great! But we're implementing Flutter on the Web, so we use Dart. API compatibility with Flutter is an explicit design goal. Having said that, there's a number of exciting new features coming to the language that will make coding UI in Dart much more pleasant (check out Bob's post).
0
May 08 '19
[deleted]
3
u/Darkglow666 May 08 '19
If the tech achieves popularity, it won't be dropped. Simple as that. So if you like it, use it and promote it. To innovate, you gotta try everything, and that's Google's strategy. Many, many of Google's technologies have achieved critical mass and are now part of our daily lives. Telling people to walk away from anything proposed by Google is a great way to make sure we never move forward at all.
1
u/kankyo May 08 '19
And then there are those that crushed the market and then got canceled.
2
u/Darkglow666 May 08 '19
What's an example of that?
5
3
16
u/fuckin_ziggurats May 08 '19
Google in 3 years:
"What's Flutter? Infotrode is the future of the web."
0
-6
u/myringotomy May 08 '19
Microsoft has shut down more stuff than Google.
19
u/fuckin_ziggurats May 08 '19
Microsoft and Google are incomparable in terms of maintenance and support length. There's a reason Microsoft tech is popular in the long-term enterprise domain and Google tech is popular in startups.
-7
u/myringotomy May 08 '19
Microsoft and Google are incomparable in terms of maintenance and support length
It's true. Microsoft has canned more technologies than google. Google is much better at this at this stuff because they open source everything they no longer want to maintain.
13
u/fuckin_ziggurats May 08 '19
You're off your rocker. Microsoft most of the time only cans technologies that have been passed by time and no longer used. Google literally has two joke websites (gcemetery.co, killedbygoogle.com) referring to their tendency of dropping services they heavily advertised less than 5 years prior.
1
u/myringotomy May 09 '19
You're off your rocker. Microsoft most of the time only cans technologies that have been passed by time and no longer used
Same with google, same with any company.
Google literally has two joke websites (gcemetery.co, killedbygoogle.com) referring to their tendency of dropping services they heavily advertised less than 5 years prior.
LOL. So we are to take this as some sort of evidence? Do you want me to hunt down all the anti microsoft sites out there?
1
u/kankyo May 08 '19
Microsoft is older.
-1
u/myringotomy May 09 '19
So?
0
u/kankyo May 09 '19
So it has had more time to kill products.
1
u/myringotomy May 09 '19
Even if you do average them out per year MS has killed more technologies, libraries, and products.
1
u/myringotomy May 09 '19
Even if you do average them out per year MS has killed more technologies, libraries, and products.
19
u/dwighthouse May 08 '19
We’ve come full circle, I see.