3 ms·
This[1] was linked to in the post. I've been playing around with flutter, and saw a lot of code similar to this. Where is this style from? I've written apps in
by ktta 9y ago
This[1] was linked to in the post.
I've been playing around with flutter, and saw a lot of code similar to this. Where is this style from? I've written apps in Java for Android but never encountered such style.
The post refers to this as problematic because developers fail to map the code spatially. While I agree, I also find this kind of code very unreadable and unelegant. I'm interested in what others think. Isn't this a part of the UX? It becomes a bit hard for me to maintain proper context with this way of writing code.
[1]: https://gist.github.com/anonymous/6dcf061bad914e1a0d18653eda789e65#file-row_column-dart https://gist.github.com/anonymous/6dcf061bad914e1a0d18653eda...
- sethladd 9y ago(disclaimer: I'm on the Flutter team) We're looking at ways to make it easier to glance at and understand Flutter code. Here's one experiment: https://github.com/Dart-Code/Dart-Code/issues/383 https://github.com/Dart-Code/Dart-Code/issues/383 Notice how we're auto-inserting "synthetic" comments to clearly mark the closing parens/brackets. So far, the feedback has been very positive, it helps improve scanning and reading the code. Feedback welcome (via the GitHub issue :)
- ktta 9y agoThat looks a lot better! Thanks for working on these little improvements too.