News for hackers. Stuff that matters.
Re:Flutter for Linux by akerro on Wednesday July 08, 2020 @03:20PM (#23773305)
>It's the best multi-platform solution for mobile

They announced beta version for Windows in the last few weeks, so what to expect? I've been using it on linux desktop for 4 months so far, there were many problems, but it's absolutely the best framework so far. It's miles ahead of Qt (which I've been programming in since 2010). Dart and flutter are just years ahead of Java, C#, Qt and React Native in terms of positive programmer experience, productivity, good looking UI. There are so many bad things to say too, but all I can think about are only due to immature ecosystem, but that's changing literally daily.

Re:Flutter for Linux by brnt on Wednesday July 08, 2020 @06:01PM (#23774670)
Hoe is it ahead of Qt (on desktop)?
Re:Flutter for Linux by heavyset_go on Wednesday July 08, 2020 @08:27PM (#23775778)
I'm wondering this, too. While I enjoy Flutter, it doesn't hold a candle to the extensive Qt library and QML.
Re:Flutter for Linux by pjmlp on Thursday July 09, 2020 @02:25AM (#23777503)
Specially to the graphical designer tools, or the quality of third party component libraries.
Re:Flutter for Linux by akerro on Thursday July 09, 2020 @03:40AM (#23777872)
I wrote it's more pleasant to be used by programmers by giving better experience, then I wrote it's ecosystem is immature, but growing. As of now, it has its better and worse sides.
Re:Flutter for Linux by rowanG077 on Wednesday July 08, 2020 @06:26PM (#23774884)
Dart is the reason I don't like flutter.

Why do you feel C# is worse then Dart?

Re:Flutter for Linux by satvikpendem on Wednesday July 08, 2020 @06:58PM (#23775174)
Dart is...fine. The real value comes in its code generation features, which enable packages to add whatever language features they want even if the language maintainers don't (yet), such as algebraic data types, functional programming features, etc. You can argue this as being good or bad for future maintenance but it's nice to have the ability to add to the language.
Re:Flutter for Linux by virtualwhys on Wednesday July 08, 2020 @10:00PM (#23776278)
> The real value comes in its code generation features, which enable packages to add whatever language features they want

Got any eamples of ADTs, pattern matching, immutable collections, data classes, named parameters, etc.?

Coming from Scala and TypeScript the Dart language is pretty unappealing wrt syntax and functionality, kind of archaic actually. Flutter looks amazing and have been hoping that Dart would evolve more quickly than it has.

Re:Flutter for Linux by g5becks on Wednesday July 08, 2020 @10:51PM (#23776509)
https://pub.dev/packages/freezed is ADTs, pattern matching, Dataclasses. named parameters are already part of the language.

There’s about 4 different packages that provide immutable collections, built_collections might be the most popular.

Re:Flutter for Linux by cutler on Thursday July 09, 2020 @04:00AM (#23777961)
Dart is just about tolerable but Dart + Flutter widget hell is not.
Re:Flutter for Linux by _pmf_ on Thursday July 09, 2020 @02:16AM (#23777455)
> It's miles ahead of Qt (which I've been programming in since 2010).

Would you mind elaborating?

Re:Flutter for Linux by cutler on Thursday July 09, 2020 @03:58AM (#23777950)
Flutter widget hell makes Javascript callback trees look tame. I just don't get the buzz around this atrocious style of coding.
Re:Flutter for Linux by rkangel on Thursday July 09, 2020 @05:15AM (#23778345)
You commented this elsewhere too without elaboration. I'm curious as to what you mean by 'widget hell'.

I founded the nested tree of widgets syntax good after getting over the (short) initial learning curve. Some basic good programming practice over shared bits and it was very maintainable even for complex screens.

Re:Flutter for Linux by cutler on Thursday July 09, 2020 @05:38AM (#23778467)
Why is this style of programming frowned upon in Javascript yet idiomatic in Flutter?
Re:Flutter for Linux by imtringued on Thursday July 09, 2020 @06:15AM (#23778618)
I'm not sure what you are talking about. Javascript developers also use HTML and the ability to nest HTML elements is "idiomatic" as well.
Re:Flutter for Linux by rkangel on Thursday July 09, 2020 @06:30AM (#23778692)
This is a wonderful answer and much better than what I was about to write.

Flutter Widgets, like HTML are declarative. They're just hierarchical information. This works in HTML, and it works in Flutter - there's nothing to get confused about.

Nested control flow (if statements, loops etc.) obscures the actual behaviour and so good practice is to break it up until it is clear and understandable.

Re:Flutter for Linux by BiteCode_dev on Thursday July 09, 2020 @06:07AM (#23778583)
Widgets are declarative, like in HTML, the nesting is additional information. With callback hell, you nest logic, and actually obfusc information about the control flow.