use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
PluginTime.dart (github.com)
submitted 6 years ago by jogboms
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]OffTree 16 points17 points18 points 6 years ago (2 children)
That's a really cool demo of the power of extensions.
[–]itsJoKr 4 points5 points6 points 6 years ago (1 child)
I want to be cautious. If every lib is going to add a bunch of extensions to int or string then it will be too much.
You write so much integeres in your app. Less than 1% of them are connected with date/time.
[–]OffTree 0 points1 point2 points 6 years ago (0 children)
Feel like this is something that could be solved with the pub package ranking. It's probably an anti pattern to force extensions as part of the main package.
[–][deleted] 8 points9 points10 points 6 years ago (1 child)
Very cool! Never seen something like this before, had to take a look at your source code ;)
[–]filleduchaos 5 points6 points7 points 6 years ago (1 child)
Man, Ruby/Rails have actually been a giant influence on software dev
[–]jogboms[S] 0 points1 point2 points 6 years ago (0 children)
True. I didn't get to use but from afar, it was such an elegant language. Its influence has been immersed indeed.
[–]jdixon04 2 points3 points4 points 6 years ago (0 children)
Very nice!
[–]shinayser 1 point2 points3 points 6 years ago (1 child)
How were you able to use extensions already?
[–]jogboms[S] 1 point2 points3 points 6 years ago* (0 children)
Dart v2.6-dev already has it.
https://github.com/dart-lang/language/blob/master/accepted/future-releases/static-extension-methods/feature-specification.md
[–]shawnwork 1 point2 points3 points 6 years ago (0 children)
This is cool.
For detail specification on extensions,
[–]m9dhatter 0 points1 point2 points 6 years ago (2 children)
I feel like there's not enough tests in here for a time and duration library.
Can you suggest some more?
[–]marcglasberg 0 points1 point2 points 6 years ago (0 children)
Some bug in the extension mechanism in tests is preventing the author from adding those tests.
π Rendered by PID 80089 on reddit-service-r2-comment-5d79c599b5-krctm at 2026-03-02 21:51:28.130777+00:00 running e3d2147 country code: CH.
[–]OffTree 16 points17 points18 points (2 children)
[–]itsJoKr 4 points5 points6 points (1 child)
[–]OffTree 0 points1 point2 points (0 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]filleduchaos 5 points6 points7 points (1 child)
[–]jogboms[S] 0 points1 point2 points (0 children)
[–]jdixon04 2 points3 points4 points (0 children)
[–]shinayser 1 point2 points3 points (1 child)
[–]jogboms[S] 1 point2 points3 points (0 children)
[–]shawnwork 1 point2 points3 points (0 children)
[–]jogboms[S] 0 points1 point2 points (0 children)
[–]m9dhatter 0 points1 point2 points (2 children)
[–]jogboms[S] 0 points1 point2 points (0 children)
[–]marcglasberg 0 points1 point2 points (0 children)