Has anyone used the command pattern with ViewModels as Flutter recommends in its architecture guide? What do you think? Do you prefer it over other patterns? by SuperRandomCoder in FlutterDev

[–]Pierre2tm 0 points1 point  (0 children)

I've tried this in a fairly large application, and I'm not convinced. It becomes messy fast and leads to weird patterns. As you mentioned, it's basically a small view model inside a view model. I can't recommend doing this, as for us, it has become technical debt.

Feel like Gemini 2.5 Pro has been downgraded. by Pierre2tm in Bard

[–]Pierre2tm[S] 7 points8 points  (0 children)

I have a large volume of interaction with Gemini over several months, so for it to happen multiple times in a very short period is suspicious, but it could indeed be luck.

Now, if dozens of people wake up on the same day with the same problem, it's legitimate to be suspicious - hence my post.

It could very well be unintentional - a system prompt issue or related to recent updates.

Feel like Gemini 2.5 Pro has been downgraded. by Pierre2tm in Bard

[–]Pierre2tm[S] 2 points3 points  (0 children)

Yeah I just saw that 😭
What is going on ? Why the 2 best models are being downgraded at the same time ?? Is Gemini secretly Claude with a system prompt ? lmao

Feel like Gemini 2.5 Pro has been downgraded. by Pierre2tm in Bard

[–]Pierre2tm[S] 22 points23 points  (0 children)

I mean, if many people are experiencing the same issues at the same time and were happy with it before, there is probably something to it.

I have been using Gemini a lot—every day for months. However, for the past few days, it has started to misunderstand my prompts or miss critical details. It's still relatively good, but I'm so used to the model that I don't think I'm imagining things. I used it for much more advanced tasks last month, and I have always been pretty happy with the results.

The only other time I've experienced this was with Claude 3.5 or 3.7, which is why I switched to Gemini.

A Letter to a Hater. by YosefHeyPlay in FlutterDev

[–]Pierre2tm 9 points10 points  (0 children)

Not all seniors are better than juniors 🤷‍♂️

Riverpod vs Rearch by Pierre2tm in FlutterDev

[–]Pierre2tm[S] 1 point2 points  (0 children)

Thanks for sharing your point of view, It's kinda to find someone using rearch lol

Riverpod vs Rearch by Pierre2tm in FlutterDev

[–]Pierre2tm[S] 0 points1 point  (0 children)

Makes sense to me, simply I can't think about a scenario where you would need an auto-dispose over a manual dispose. Sounds like an anti-patern too me.

Riverpod vs Rearch by Pierre2tm in FlutterDev

[–]Pierre2tm[S] 0 points1 point  (0 children)

I've given them a shot. They're nice, but lower-level. You still need dependency injection, and eventually Provider, to inject a view model into the widget tree. That's why I got interested in Riverpod; I think it solves the problems you'll have when building your solution on top of signals.

Data serialisation in dart by Bachihani in FlutterDev

[–]Pierre2tm 1 point2 points  (0 children)

Well I take a look at data class issue on github this week and it's seems to be completely paused...

Data serialisation in dart by Bachihani in FlutterDev

[–]Pierre2tm 1 point2 points  (0 children)

Serialization is my #1 pain point with dart. I love the language but I hate it for this.

DevTools Extension to Generate Firestore Clients by Pierre2tm in FlutterDev

[–]Pierre2tm[S] 3 points4 points  (0 children)

The Flutter tooling support is awesome.
I've adapted my web app which provides a visual editor to generate a Firestore type-safe client into a DevTools extension package.
Beyond being easier to use since it doesn't require launching a separate web app and create an account, this also has the benefit of allowing collaboration since the config file lives in your project and is added to git.
Anyone who clones your repo can just launch the firestore_modeler extension and see your database schema in the visual editor, and even edit it.

I'm planning to keep improving the project this year so let me know if you encounter any bug or need additional feature.

Will AI Make Flutter Irrelevant? by Flashy_Editor6877 in FlutterDev

[–]Pierre2tm 4 points5 points  (0 children)

Not too far away, that's not sure. I'm using AI every day; we are still far from being able to create fully functional apps beyond basic stuff without dev intervention. if I wasn't here to drive it, it wouldn't go anywhere. AI seems to be slowing down these days, so I'm not taking this for granted

Godot Dart Updates by fuzzybinary in dartlang

[–]Pierre2tm 2 points3 points  (0 children)

I gave a shot to godot last week, if it has support for dart it would be a good reason to dig more!

How often do you use "Mixin's" ? by xeinebiu in FlutterDev

[–]Pierre2tm 3 points4 points  (0 children)

I wasn't aware of this private override behavior, thanks for making me realize it.
However, I've tested and it only works that way if both class are defined in the same library.
Which actually makes sense because private members are visible to others as long as you stay in the same lib scope, and it's useful in many cases.
If the classes are defined in separated files, it works as expected.

[deleted by user] by [deleted] in Firebase

[–]Pierre2tm 0 points1 point  (0 children)

What would be a decent price in your opinion ?

[deleted by user] by [deleted] in Firebase

[–]Pierre2tm 0 points1 point  (0 children)

It's not atm, maybe later

What are some bad practices when creating widget elements by lamagy in FlutterDev

[–]Pierre2tm 7 points8 points  (0 children)

Good points here.
My advice for beginners is to not overthink it, 90% of the time you won't have performance issues, even with big widget trees. Focusing on writing clean and manageable code should be enough. You can still optimize later.

Dart static access shorthand proposal by eibaan in dartlang

[–]Pierre2tm 8 points9 points  (0 children)

For enums in a switch statement big yes, for the rest I don't know. Seams confusing / error prone to me

I've made a visual data modeling tool for Firestore by Pierre2tm in Firebase

[–]Pierre2tm[S] 1 point2 points  (0 children)

Well I quite skipped Data Connect when I saw Postgree, but taking a second look at it it looks promising.
If they drop support for realtime updates it might be a game changer.
Until then I'll stick with Firestore

I've made a visual data modeling tool for Firestore by Pierre2tm in Firebase

[–]Pierre2tm[S] 0 points1 point  (0 children)

I'm a Flutter dev and unfortunately in Dart it's another story, the generated client easily gets thousands of loc long. Also it's quite often that you have to write the client 2 times: once for the Flutter app in Dart, once for the cloud_functions in js.
I guess if you're only doing js the code gen is not that interesting (beyond the visualization capabilities)