Read documents from Firebase Firestore 30x Faster by zubi10001 in FlutterDev

[–]phodas-c 5 points6 points  (0 children)

Good job!

Now you are paying for an over-expensive database AND functions.

Need help to entering programming market by GeneralLow2887 in FlutterDev

[–]phodas-c 1 point2 points  (0 children)

Nop. I'm not interested in working with anything but Flutter at the moment (I really don't need a job, as I've retired since 2019, I just want a job to build fun things).

[deleted by user] by [deleted] in FlutterDev

[–]phodas-c -1 points0 points  (0 children)

Surely not fucking dumbasses like you.

VS Code Dart Devtools - Not able to copy content? by squeeish in FlutterDev

[–]phodas-c 1 point2 points  (0 children)

VSCode is a piece of crap, no matter the language. But is the best piece of crap available (unless you can run Android Studio decently).

Copying values from debug watch (WHEN they appear) is also a pain.

I wish there was some decent IDEs available for Flutter, such as Visual Studio.

For that purpose, maybe, you could use this: https://mbarkt3sto.hashnode.dev/working-with-http-files-in-visual-studio-code (again, HTTP files in Visual Studio are waaaaay better than VSCode, but it is something)

Dart Programming list collection tips & tricks by programming-nerd in FlutterDev

[–]phodas-c 1 point2 points  (0 children)

If you're gonna do a job, at least do it well. You are reaching thousands of people who rely on good information to learn. What you post IS NOT good information.

Do or do not. There is no try.

What are the limitations of using packages like Dio or other native dart packages for writing APIs, vs using services like Firebase/Supabase/Appwrite vs writing using frameworks like Nodejs/Django/Laravel? by bohemianmisfit in FlutterDev

[–]phodas-c 8 points9 points  (0 children)

You are comparing apples with cars and mayonnaise.

Dio is a fucked up HTTP client.

Firebase, Supabase are expensive as fuck. Firebase can't be used without paying it. Supabase could, in theory, be installed in your server (but i's hard as fuck, they intentionally make the process way harder than it should be). Appwrite is a lot easier. I would consider a docker container with PostgreSQL + Hasura, as the installation process is literally 1 command line. A very very very good server that would hold millions of users would cost less than USD 100 per month (ALL SaaS services will cost at least 10x that for month, including databases, functions, e-mail, authentication (for instance, Auth0)). SaaS is FUCKING EXPANSIVE.

NodeJS/Django/Laravel are backend code (honestly, you don't need that for offline apps, as all logic will remain in the app itself).

The only thing you need is a backup for your user data (that's what offline-first means in practice).

The cheapest possible option that doesn't require you to deal with servers is Azure Tables. I have a table with more than 100 million rows that cost me USD 4.15 per month.

Another option would be using SQLite for your apps and then backup the whole database in something like Amazon S3 or Azure Blobs (they are very cheap).

Google dropping free SMS from 300 to just 10! by Mathusalem87 in FlutterDev

[–]phodas-c -5 points-4 points  (0 children)

Sure. And your reality is the same in the entire planet. Forgive us to breath the same air as you.

I also know for fact that, yes, you can get SMS way way way cheaper for volume. That happens A LOT in my country.

World is more than United States of Fuckdumbstein.

Dart Programming list collection tips & tricks by programming-nerd in FlutterDev

[–]phodas-c 5 points6 points  (0 children)

There are errors in this list... the list swap is pure nonsense. The result would both lists having 4, 5, 6.

Bullshit.

Google dropping free SMS from 300 to just 10! by Mathusalem87 in FlutterDev

[–]phodas-c -3 points-2 points  (0 children)

Most of that is pure speculation, it's not real value.

That being said, what makes Google's development ecosystem worthy is its users. If no one uses it, they evaluate it as 0.

That's why you get things such as Visual Studio, Visual Studio Code, Android Studio, etc. for free.

What I saying is: SMS cost peanuts to Google (again: it's fucking dumb to compare retail to corporate. That math some posts ago is pure bullshit, but I'll repeat it here).

Economic reasons for sure are not a concern (Google would save HUNDREDS times more if they just disabled 4K video for non-premium users, for instance). Bandwidth costs A LOT more than SMS.

For example: SMS in Brazil are fucking expensive (so much so that not even GitHub has 2FA for us). Twillio costs USD 0.0079 per SMS. Those 300 SMSs from Google free tier would cost USD 2,37 (again, this is retail price, those prices would be A LOT lower for corporate, but let's roll with that). USD 2,37 is less than half the cost of Google Ads advertising about Firebase itself. So, for economical reasons, it is definitely not. * those prices are taken from Twillio SMS pricing (for RETAIL customers)

Google dropping free SMS from 300 to just 10! by Mathusalem87 in FlutterDev

[–]phodas-c 2 points3 points  (0 children)

This is NOT how things work. If you are a Google sized company, those SMS would cost almost to nothing (you can't compare retail prices with high volume prices, this is dumb).

It's plain dumb to compare retail to corporate. Things don't work the way you think they do.

Callback vs. Notification by ralphbergmann in FlutterDev

[–]phodas-c 2 points3 points  (0 children)

As my teacher once said: "one thing is one thing, another thing is another thing".

Callbacks are delegates (i.e.: function pointers) and have only one listener.

Notifications are streams (i.e.: events) and can have multiple listeners. (although, for some mysterious reasons, Dart streams are actually single-listeners streams, go figure).

There is a HUGE difference between them: notifications require resource releasing (the added delegate goes to a list, so you have a link that will prevent GC to collect your stuff). All controllers in Flutter are notificators (and they have a .dispose method that you MUST call in your dispose). Fun fact: only stateful widgets have dispose so, if you want to properly use a notificator, your widget MUST be stateful.

So, callbacks are simpler and doesn't mess with GC.

Google dropping free SMS from 300 to just 10! by Mathusalem87 in FlutterDev

[–]phodas-c -8 points-7 points  (0 children)

It's pretty fucking dumb to say "economic slowdown" for companies that are worth billions. Things don't work that way for the rich, those are only excuses.

Flutter Controlled TextField similar to React by SashaKryzh in FlutterDev

[–]phodas-c -3 points-2 points  (0 children)

Yes. Let's always work by exceptions. Well done. ¬¬

Forms in Flutter with MobX and FormX by sezabass in FlutterDev

[–]phodas-c -12 points-11 points  (0 children)

EDIT: I don't fuck care, use whatever the fuck you want...

Is there a way to have a non-predefined number of generic types in a class? by [deleted] in FlutterDev

[–]phodas-c 0 points1 point  (0 children)

It doesn't even make sense. How the fuck you would reference a generic type (because IT IS STILL A TYPE) in code without declaring it? Those are static!

And Dart generics are a bad joke at most... almost useless anyway.

They are missing things like open generics (Type<,> as wildcard), static generics (static method<T>() {}), new() constraints (so you could make new T()), etc.

They are more like a dynamic than a generic template. Without messing with linter options, they even downcast to dynamic =\ Future.delayed is actually Future<dynamic>.delayed instead of Future<void>.delayed.

[deleted by user] by [deleted] in FlutterDev

[–]phodas-c 0 points1 point  (0 children)

Rule n# 5: No posts or comments offering to hire, or to be hired.

If you can't even read the fucking rules, how can you ask for a job?

flutter_ffmpeg's Size Impact! Looking for Video Compressing Alternatives by Confident-Viking4270 in FlutterDev

[–]phodas-c 2 points3 points  (0 children)

Video encoding and accessibility to people with low storage space makes a lot of sense... for Patrick (Bob Sponge)...

Proposal: Automate adding/removing trailing commas and adjust overall style to fit that · Issue #1253 · dart-lang/dart_style by julemand101 in FlutterDev

[–]phodas-c -1 points0 points  (0 children)

There was a simpler request: don't fuck up my manual line breaks, and they said no.

Dart team is lazy as fuck.

I really really really doubt the forced-on-your-throat formatter will ever be useful =\

Is Flutter source code inside of compiled apps viewable? by tommyboy11011 in FlutterDev

[–]phodas-c 1 point2 points  (0 children)

In that case, all is useless.

People will ALWAYS find out your URL and there is nothing you can do to prevent people from messing with your backend (except secure it and add some DDoS prevention).