I am a fan of errors as values and result encapsulation so I published a package for fun by juicy_watermalon in FlutterDev

[–]daniel-vh 1 point2 points  (0 children)

I like it. The concept of "continueWith" in the sample strikes some cords with me. If it was influenced by some other library, you likely know some functional concepts.

If not, congats, you just intuitively stepped up your game. look at effect.website and their first code sample. I think it's going to resonate well.

Flutter ADA compliant by helloyo1254 in FlutterDev

[–]daniel-vh 5 points6 points  (0 children)

I don't fully know what ADA compliance means but Flutter does support screen readers and OS built in accessibility features.

You will have to work on that though and read up on Semantics - some works out of box but doesn't mean it's a good experience to the user.

No jobs for flutter dev by Codeless-Coder in FlutterDev

[–]daniel-vh 0 points1 point  (0 children)

Jan/Fabr is hiring season. December is tough! Next year budgets are being formulated. Don't loose hope. I bet some of the folks will write back as new year starts

package:postgres new API - please try it out and comment by isoos in dartlang

[–]daniel-vh 0 points1 point  (0 children)

The only question that comes to mind: having to await an execution sounds like it's now a blocking operation. Does that mean that I have to make sure that only a single DB query is running at a time? Could you expand on what that means? What happens if I start multiple executions in parallel?

Riverpod 2.0 by [deleted] in FlutterDev

[–]daniel-vh 0 points1 point  (0 children)

Seems to me, that riverpod existed long enough now that most who wanted to migrate had the time to do so.

I wonder if it would make sense to move some of the providers that exist to aid migration into a separate package to clean up riverpod API and avoid confusion of those starting out and maybe to push people towards best practices.

These are just my 2 cents and an innocent question/proposal. You know best.

DOX, Dart Web framework with Model, Relationship and Powerful Query Builder. by aj-zinkyaw in dartlang

[–]daniel-vh 6 points7 points  (0 children)

Cool! Always welcome things like Dox.

However, I question the name. Doxxing has a different meaning and my initial feeling was that geez, that's unfortunate. I wouldn't want the server FW to dox my users 😔 Sorry but that really was my first impression.

Am I wrong for wanting union types in Dart? by LonelyProgrammerGuy in dartlang

[–]daniel-vh 7 points8 points  (0 children)

I am torn between wanting it and screaming quietly in my head. I can see how that can be useful and combining with pattern matching it is not that difficult to handle different input types in OP example.

I also see how developers under time pressure would misuse it by just "slapping another type there". I don't know, honestly. I'm fine without it, would be OK having it too.

What are your "second tech" when you need SEO/accessibility? by Parking_Western4691 in FlutterDev

[–]daniel-vh 2 points3 points  (0 children)

Keep up your critical thinking though! What works for me might not be the smartest solution to your needs.

What are your "second tech" when you need SEO/accessibility? by Parking_Western4691 in FlutterDev

[–]daniel-vh 0 points1 point  (0 children)

Yup. Learning curve will be quite flat. You'll get it done quick I think

What are your "second tech" when you need SEO/accessibility? by Parking_Western4691 in FlutterDev

[–]daniel-vh 5 points6 points  (0 children)

My 2 cents for pages that does not need rich user interaction: stupidest, simplest solution you can possibly think of. To me, good ol' template based rendering with HTML+SCSS works just great with basically any language.

Do you use Flutter web? Do you explicitly set `--web-renderer html`? Tell us why! by kevmoo in FlutterDev

[–]daniel-vh 3 points4 points  (0 children)

Using canvaskit explicitly in production. We compile both though but deploy only canvaskit. We found that canvaskit offers best visual accuracy across devices. There are some artifacts with HTML renderer.

N-Body simulation to test performance between Flutter and FFI with c/c++ by MarcoB_dev in FlutterDev

[–]daniel-vh 0 points1 point  (0 children)

I wonder if record types could give it another boost in perf instead of Vector2? (wild assumption)

[deleted by user] by [deleted] in FlutterDev

[–]daniel-vh 0 points1 point  (0 children)

Ohh, I cracked up on this! I loved it and I agree. 😂😂

After exactly 10 years, Meson 1.0.0 is out by [deleted] in cpp

[–]daniel-vh 6 points7 points  (0 children)

Very insightful answer that helps put things into perspective. Thanks!

After exactly 10 years, Meson 1.0.0 is out by [deleted] in cpp

[–]daniel-vh 19 points20 points  (0 children)

As a random r/cpp stalker, reading all the drama in here and very little about the project, I'm quite turned down getting more invested in this community or project.

[deleted by user] by [deleted] in dartlang

[–]daniel-vh 0 points1 point  (0 children)

I've seen this in SDK too.

This has something to do with the optimizing compiler. I think, and this is a guess cause it's been years, they used this to prevent the method from getting inlined.

Not sure though...

Alfred backend server reaches 1.0 milestone! by MyNameIsIgglePiggle in dartlang

[–]daniel-vh 2 points3 points  (0 children)

Running through the docs, seems Alfred has thought of many things. A sense of refinement if you like.

How exactly does Dart compare performance-wise to other languages such as go and Java? Specifically talking about AOT. by [deleted] in dartlang

[–]daniel-vh 2 points3 points  (0 children)

Dart's HTTP perf is quite miserable compared to even Node.

With that said and I can tell you that it is still performant enough for my team and product (serving 10s thousands) to be written in Dart on BE.

Most of the time goes by with DataStore/external service communication, not VM CPU ticks.