« first day (4055 days earlier)      last day (910 days later) » 
05:00 - 17:0017:00 - 00:00

5:00 PM
xD
 
all communication is saved, if they dare to throw me under the bus for this I will head to news
but again, I think I just gained superpowers instead
yadada I don't care, Im not a bad person I just want to do my job so I wont benefit from this mistake
 
still think you should take his kids
 
they changed my mail by putting a '1' at it
just like in school
I hate that, I have a damn middle name for such reasons
 
tbf all (or most) companies do that
I'd rather be a number than people know my middle name, personally
what do you guys think is better for lunch today, keep in mind im tired
1) grilled cheese w/ tomato soup
2) go get a peppermint mocha from starbucks (so fucking good) and chicken noodle soup
 
i found a very old video of mine on my youtube channel
@ballBreaker 2
 
5:10 PM
nice
deal
I only needed 1 vote
@asim nice whats it of?
 
@ballBreaker some martial art kick, too shy to share lol
 
bahahah
fair enough
probably for the best, since I'm a martial arts armchair expert
brb
 
haha
 
@ballBreaker 3) whatever you can find you don't have to cook then sad/lonely shovel it into your face
 
o/
I came to share some exciting personal news today. I'm engaged!
4
I'm tired of your shit, Dave.
5
user image
10
 
5:20 PM
Adam McEngaged over here! Congrats!
Sorry I stole your thunder
 
lmaooo thank you Dave <3
it's okay haha
 
wad da dag doin
Congratx
 
Tim
congrats man :) and what a coincidence someone was taking pics of you just then
 
I know right? Weird Kappa
 
Adam soon will have his license to do Dad Jokes™
 
5:27 PM
you stop that
one step at a time
 
That's why he proposed
 
@DaveS ikr
 
they're gonna be married in 8 months
 
@AdamMc331 Yes Adam, baby steps
 
Daddy why is my birthday on your wedding anniversary?
 
5:30 PM
lol
 
lil AdamMc332
5
 
LMAO
 
you missed the version num, @AdamMc331 how many versions are you planning to release?
 
The versions end with me, the adammc bloodline is deprecated sorry. In the event that I change my mind it'll be released as adammcx in five years.
 
Tim
but you're a GDE so deprecation has little meaning
 
5:37 PM
ah okay, make sure to sign them with proper keys
 
AdamMCompose
 
thank god you don't need a keystore for children or my child won't make it past a year
5
 
LMAO
 
LMAO
 
5:57 PM
@AdamMc331 congrats dude!!
 
Thanks! <3
 
hello friends
private var expandableDetailList: HashMap<ProfessionListItem, List<Profession>>? = HashMap<ProfessionListItem, List<Profession>>()
**
this is my hashmap and also available index for key , value so how to get value of model ?
 
Tim
asim you're up
 
yeah asim go go go
 
@asim you are the most qualified to answer this question
 
6:09 PM
@asim that one is for you
 
our thoughts and prayers from last time extend to this time as well, so we dont have to do it again
 
6:37 PM
What context am I missing here about asim lmao
 
Nov 18 at 18:04, by Tim
Send thoughts and prayers to asim
 
lmao
 
oh crap it's 2018
 
throwback to the good ole days
 
6:47 PM
the glory days
 
there's a trump and/or nsfw joke in there somewhere
 
some things never change
but adam's profile pic did change wtf
you've changed man smh
 
he broke up with kotlin and got engaged to Meagan
 
I feel like tristan has a bot that times how long Adam is in here and if it passes an hour then he comes and joins
 
can't keep an ex on your pp
 
6:49 PM
which would explain why it hasn't happened in like 3 years
 
it's called "Adam DMs me a link to something he posts here and I see it and check it out"
complex bot
 
OMG TRISTAN
 
damn that's a complex bot for sure
 
TIL Adam is Tristan's bot
 
Who dares to replace me with other bots
 
6:55 PM
omg the gang's all here
 
I felt compelled to return to congratulate you @AdamMc331
Everyone's all grown up
Except Tristan
 
D:
true
 
@RaghavSood this is the nicest thing I've seen Raghav say in his entire uptime
4
 
Tristan is still 10
 
Mentally yes
 
Tim
6:58 PM
tristan turned 10 ayyy congratulations buddy
 
Is that still a thing on SO
 
SO still exists?
 
yeah i thought just the chat was left
 
@Mauker Adam just upgraded an SO I believe
 
7:39 PM
How have all of you been? How's work and life for y'all
 
Ups and downs
But I'm good :)
Moving out of Brazil soon
 
Tim
anxiety inducing wbu
 
same
 
Didn't know lobsters could get anxious
Oh my, all those lobsters I ate
 
yeah apparently when lobsters lose a battle against another lobster their posture deteriorates
which leads to a lower production of serotonin
 
7:46 PM
@AdamMc331 Congrats!
@DaveS I have flutter questions
 
@ballBreaker fascinating
 
hey @Tim I have a funny joke/meme for you.. but I have to put it in discord because its probably too nsfw for here
 
@ballBreaker I find this offensive. nsfwism is my religion. You're supposed to be welcoming on SO.
 
uh oh
 
Sorry I know it's confusing. I change religions a lot.
 
7:55 PM
I'm trying to decide if not offending your religion is more important than mehdi's dissapointment in me
 
Tim
the religionschangerist in me approves that
 
Mehdi-disappointmentism is my religion. Don't discriminate.
 
well the picture is in the nsfw channel in discord if you want to laugh
 
yeah, I already saw it. lol
 
good good
 
8:01 PM
@ballBreaker I have good news for the rights of your people: usatoday.com/story/news/world/2021/11/22/…
 
Tim
that's a good one bb
 
hey
 
@MwBakker neat
 
@AdamMc331 congrats man 🍻
 
just lmk in the chat I'll see if I can help
 
8:08 PM
@twiz ayyyyyy
I HAVE A DREAM
I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their shell but by the succulence of their flesh. I have a dream today.
 
8:26 PM
:(
I having trouble understanding basic crypto math and it's making me sad
4
why the star?
 
I guess people like it when you're sad
 
😥
6
 
lolol
haha this guy is doing what he loves and is bad at it and its making him sad, lol
 
lmao hahaha
 
@Tim aww thanks
@TristanWiley ahaha
 
8:40 PM
@DaveS Alright so I'm questionned about a state management approach somebody offered as a solution
 
what is crypto math
 
1
Q: What is the recommended approach / best practice to reuse a Future call in body?

grooI am new to flutter and I got a situation where I need to reuse data from an asynchronous call, after researching a bit I found out about the nice FutureBuilder Widget and I am using, it works great but I have this situation where I need the data from the future call in two different widgets like...

@DaveS the answer suggests a FutureProvider, but I do not see any check if the retrieved data is already set or not
I myself use a ViewModel behind my view that holds the Future's like the FutureProvider is doing in the given answer
Anyway my question is how is the answer in that question preventing the Future's data being re-fetched?
 
8:59 PM
future: !snapshot.hasData ? weight.findAll() : Future()//null
unless thats what the futurebuilder already is
@MwBakker the answer only fetches the data once because it's described/triggered in the initializing action
after fetching the data, he keeps it in the weightsProvider and reuses the data
which is exactly what you should be doing
you've got your data calls tied into your UI state which is a problem, complex widgets will just spam your API
 
9:24 PM
@DaveS who says I have it tied to my UI state?
There is one setState scenario
 
@MwBakker every time your UI re-renders it's calling the future
 
@TristanWiley math relating to cryptography
 
you need to store your data in a proper provider and do your findall in initState or something
you absolutely should not have data calls tied directly to UI draws
your UI Draw should only read the data, fetch your data a different way
 
but I agree, and I didn't state this was the issue itself
 
I'm saying though you need to decouple the fetch from the draw to fix the issue
you want to prevent multiple fetches, you're getting multiple fetches because you fetch directly on the UI draw
if you move your fetch to only fetch if data is missing or in an initstate your problem will be fixed
and yes you check the snapshot but that's specific to the widget not the app
> I have this situation where I need the data from the future call in two different widgets like the code fragment below which causes the async call to be executed twice and I would like to avoid it.
> How to avoid the two calls? What's the recommended approach in this case? I couldn't find a reference/recommendation for this situation.
Answer: Make the call once, store the result somewhere else, re-use the result
 
9:35 PM
@DaveS but I need buildcontext to fetch 'observe' the Future so how is that decoupling
 
no you don't
 
you mean I put it in initState, but I would still need BuildContext somewhere
I don't?
 
this is what providers are for
_myWeightProvider = Provider.of .... in your build
you can either check _myWeightProvider in build for initialization and only call it there if you want
another way is using a PostFrameCallback in initState
to call it just once when the widget loads
 
so either way in InitState
 
only the postframecallback would be initState
or you could do it even earlier when you register the provider and do it in the provider creation
that's what the FutureProvider answer does
it makes the call when the provider gets created
but when you say _myWeightProvider = Provider.of .... in your build, the widget will redraw when you call notifyListeners()
like after your fetch
all you need buildcontext for is to listen for changes, Provider.of automatically subscribes you to those changes
you can do your fetch anywhere you want then notify the provider to let the widgets know there are changes
 
9:44 PM
yes, that approach is known to me. Though when I became fan of FutureBuilder I saw I may lack some efficiency here and there. Wasn't expecting issues but I know I do not need certain lists to be fetched twice in short time for example, unless ofc notified
 
Yeah FutureBuilder is not a good fit for data fetches
it would be better for animations or something
you want to use FutureBuilder when you need to do something every time the widget is drawn
 
Well during the tutorials I followed it was the one thing people suggested to fetch list data, you can understand where I come from
 
yeah and for a basic widget and that's the only place you use the data it could be fine
 
@DaveS I have such scenarios and it works the way it's build, but it's not in every scenario and I rather have things optimilzed immediatly
 
So my advice is move away from futurebuilder or make your futurebuilder conditionally check a separate provider
you only want to call this fetch if the data is missing, so you need to put it somewhere else (another provider)
 
9:47 PM
@DaveS I made it work, no complaints but not I aim for more efficiency. I have database classes in a viewmodel-type class to hold data for reuse but I wasn't certain if it actually remains held the way Flutter works
and now I am trying to see how the FutureProvider exactly differs from this
 
A future provider is just a provider that is created by a future
 
@DaveS FutureBuilder is great to perform the WaitingCircle if the data is not ready yet
 
I use a ChangeNotifierProvider almost exclusively
 
so for building/loading animations it does the job pretty well
 
only if you want to run the future that causes the loading animation everytime
 
9:48 PM
solely on the homePage
 
just use a _loading bool on your provider
 
you see, the data from the homepage goes to sub-views and this is where I do not need re-retrieval from data
 
if myProvider.loading ? circular : normal
 
@DaveS ok combined with your ChangeNotifier approach this seems a lot cleaner to me yes
 
initState(){schedulePostFrameCallback(){myProvider.loadData();
 
9:50 PM
Do you have a class file for comparissement perhaps?
@DaveS this clears out a lot too, thanks
 
> @override
void initState() {
super.initState();
_showingTutorialDialog = false;
BackButtonInterceptor.add(backButtonInterceptor);
WidgetsBinding.instance!.scheduleFrameCallback((_) async {
await _getAccount();
if(!_accountProvider.loggedIn && !await TutorialManager.hasSeenTutorial(Tutorials.settingsTutorial)){
_showTutorialDialog();
}
});
}
 
I think im getting the point
removal of FutureBuilder -> Provider of data (which is not just the viewmodel holding the Futures coming from the Database class) -> StateLess widget views unless rebuild necesseary on change (with usage of onChangeNotifier)
 
yeah
> Future<void> _getAccount() async {
_accountProvider.readAccount();
}
now you're getting it
you just fast draw your widgets with the data you have
use appstate logic and user interaction to trigger fetches and notifyListener
 
damn, FutureBuilder might make things more complicated than necesseary
 
yeah
it would be useful if you wanted to run an animated transition every time a menu was opened
because animation completion is a future
or something very simple
but it's not good for managing app-wide data
 
9:56 PM
Tutorials went too enthousiastic about them, and I got my stuff working but I knew something could be better
this is that better, but I was already quite far in building so optimilizing this is now confusing
But for the better, after all
thank you for clarifying things Dave
 
no problem
 
now it's up to me to turn things like this
Future getFutureCompanies() {
    return DataController.companyDB.getCompanies();
  }
into an actual provider, because we now agree this isnt that kind of provider right?
 
10:10 PM
yes
you can even put that call in the provider if you want
just keep your data accessible without the fetch to re-use it
myCompanyProvider.fetchCompanies(); and myCompanyProvider.companyList
fetchCompanies() async {this.loading=true; notifyListeners(); companyList = await myCompanyFetch(); this.loading=false; notifyListeners(); }
simplify even more:
> bool get loading=> _loading;

set loading(bool loading) {
_loading= loading;
notifyListeners();
}
Future<void> fetchCompanies() async {this.loading=true; companyList = await myCompanyFetch(); this.loading=false; }
 
10:27 PM
@DaveS I always have time for y'all
just many months later :)
 
isn't that like the definition of not having time for us?
you went out for a pack of smokes and never came back
don't think you can just walk back into my life now DAD Tristan!
 
11:04 PM
Thanks Dave, good night and sleep well
Bad Tristan, leaving us like that
 
But I did come back!
How are you Dave? Where you at, what ya doing?
 
11:21 PM
headed out, ttyl
 
byeeee
 
05:00 - 17:0017:00 - 00:00

« first day (4055 days earlier)      last day (910 days later) »