« first day (3863 days earlier)      last day (1068 days later) » 

1:01 AM
@grrigore when combined with getters and setters it's actually quite nice because you know immediately what you're working with and it's easy to hide things that shouldn't be messed with and only expose what you want
for instance when combined with a setter you can ensure a provider notifies listeners every time the variable is modified
 
 
3 hours later…
4:10 AM
just saying I don't mind it
 
 
2 hours later…
5:52 AM
o/
 
6:12 AM
@RaghavSood, @DaveS, @Mauker, @Pochmurnik, @CptEric, @Graeme, @ballBreaker, @Jordy, @WarrenFaith, @grrigore, @Reno, @CrabsStew, @bluetoothfx, @Code-Apprentice This is your weekly reminder of New Free Games on Epic Store!!!!!!!! :D
I almost forgot hehehhe
 
 
1 hour later…
7:29 AM
o/
 
 
3 hours later…
10:04 AM
This was the most starred message last year on this day:
May 14 '20 at 19:37, by W0MP3R
oh boy!! i'm late x'D
 
Tim
10:59 AM
\o
 
11:20 AM
hi
I need help with a birthday present!
SOS
 
Tim
lana del rey CD
 
it's not for you
:D
 
Tim
:(
 
D:
 
11:49 AM
Got a question which is all language related
Most of the info on my oldtimer app is solid, needs to be retrieved at start-up and passed around. So Im considering a main dataController class to initiate retrieval of all data and pass this around per singleton or once-initiated object
But if I do this, what is the most efficient way to trigger data retrieval to get updated data
A timer?
Right now relevant data gets retrieved from the db at page switch
 
Tim
12:09 PM
do you control the server where the data comes from
or where does it come from
 
From FireBase
I'll make this more generic: A base-controller-data class that will retrieve all required data for the dashboard and underlaying tabs
 
Tim
in that case you can observe the data so it lets you know when it has been updated, rather than you asking if it has been updated every X seconds
 
which will be passed around but does require updates once in a while, but I do not want entire data retrieval on each page switch
@Tim observe means pinging the server if anything changed?
 
Tim
no it means firebase sdk tells you when the data changes
you don't have to keep asking
read a bit about 'polling vs event'
 
nice, I will
and how is your stand on a base-data-controller class that will contain all required database data and be passed around in the app (or be a singleton)
 
Tim
12:17 PM
there should be 1 class that exposes functions that allow data retrieval. The classes calling these functions should not care where the data is coming from or how it is retrieved. Any UI that needs data from here will be populated by its viewmodel, the viewmodel has a dependency on another class that knows where to get the data
typically this looks like UI <- viewmodel <- repository <- firebase gateway <- firebase sdk
repositories are most always singletons, this allows for sharing data without having to fetch it again all the time
 
exactly
 
Tim
depends a bit on how you cache data
 
alright, except I do not use viewModels in Flutter not sure what they are called there
 
Tim
fine, as long as there is a clear separation of concerns between layers
 
I followed the rules of the tutorials and looked into git projects
@Tim well with Flutter there is not, for example a Future injects the data immediatly into the UI layer
 
Tim
12:26 PM
language/platform tutorials usually don't bother with best practices for architecture
 
But I checked the best practices tutorials
 
Tim
make the separation yourself
 
Sure but I know myself and could dive into this too much
With a result of getting no actual building done but only re-organizing
I've made that mistake before, but I do keep the fine lines of seperation for sure as how most people do it instead of strict MVVM rules
But now I'm a bit stuck since I use underlaying tabs that use the same data as for example my dashboard
Should the main.dart who builds the underlaying tabs be fetching the data to be passed around the dash and underlaying tabs?
 
Tim
no
 
12:41 PM
Well damn there goes my plan
 
@MwBakker is it a hobby project or production based app?
 
Then what should retrieve the data and when? Each page his own viewmodel that retrieves data from the base-controller-data class?
 
@MwBakker is it possible to share you UI?
 
@bluetoothfx its my own app, due to interest it could become production level
@bluetoothfx what do you mean by share?
 
@MwBakker For huge audience firebase real time update might cause a good amount of money.
show us here (your UI) the pagination UI
 
12:44 PM
You mean the tab building part?
 
yes
 
Tim
@MwBakker yes. You don't want to retrieve data that you don't need
 
@bluetoothfx ok
@Tim Alright so I will use viewModels dat initiate at the determined page
 
agreed with @Tim.
 
Tim
I don't know, do something that fits the flutter style
 
12:51 PM
How do I keep the ViewModel 'alive' without re-initiating after page switch or should I have the retrieval of data being that is being processed in the ViewModel come from a singleton instance?
 
Tim
yes latter
 
`
class UserGarageVM {
...
List<Vehicle> vehicles
If (vehicles != null) {
DataControllerClass.fetchUserGarage(uid)
...
}`
why does code-font no longer work
 
check if that widget statefull or stateless
 
Tim
`` is for single line inline
 
IDK flutter stuff much
 
Tim
12:54 PM
for multiline indent every line with 4 space or select all and press cmd+k
2
 
Anyway the above code, is that how I should handle it?
As in, is that the general approach
 
Tim
can't help you there
 
how come? How is your general approach to this?
 
flutter widget update when the data change
why you are looking for if your vm alive or not
 
Because the VM will contain the retrieved database data
 
1:00 PM
framework will take care of that thing, you just ensure server sending your updated data.
 
Firebase will take care of that afaik
So
 
@MwBakker you subscribe/register the event and listen for changes
 
Page will initialize, along with the VM. The VM will get the relevant data from the data-controller instance and give the output. Do I have a green light on this approach from you guys?
 
@MwBakker so you have to trigger that and update your UI. Do it 1st then improve your code.
@MwBakker seems flow is ok.
Do your code work then try to improve if that is 1st time for you..
 
I first want to have my flow correct
I was passing around these data objects as parameters and it gets confusing
But my school taught me to avoid singleton classes at all costs
 
Tim
1:13 PM
why?
 
2:04 PM
They said it will ruin the UML
And the basic principes of OOP
So I stick to that, but I also do not like to constantly fetch data on every page I redirect to
 
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Afternoon Everyone!!!!! :D
 
or pass the variables
 
2:16 PM
Is this more like it?
d..do I get the gist of it?
 
2:37 PM
heyo
 
@MwBakker local persistent or in-memory cache
 
@Tim whats the anno multiplayer like again?
 
Tim
May 3 at 15:31, by Tim
meaning you can team up with a friend and be on the same team controlling the same economy
 
nice
there's a versus too I imagine right?
like separate teams
 
Tim
well yeah
you can play 2v1 and stuff too
 
2:40 PM
cool, you said you prefer the multiplayer over the single player too right?
oh nice
 
Tim
or 4 on 1 team vs AI or something
 
im digging the game so far, gotta convince my friends to spend the money
haha
 
Tim
yeah there are too many things to do for 1 person it's impossible
 
lol yeah it starts to get hectic
finally unlocked artisans last night on my third playthrough attempt
didn't realize going broke wasn't the end of th egame the first two times I could have just paused production but w/e haha
 
Tim
lmao noob pls uninstall
 
2:43 PM
ok
I have more important thing to do with my time anyway, like being a man and not crying
because anno makes me a woman and cry
brb let me juice my jokes with some coffee im full retard mode rn
I am now RM-1
 
Tim
2:58 PM
hmmmm ok
 
thanks for your patience in this transitory time
hows everything going with the house construction?
@IvanMilisavljevic man you gotta check this song out, so fuckin cool
the saxophone is
 
Tim
3:24 PM
@ballBreaker drove by there last night actually, first floor has a ceiling now
 
eyyyy nice
congrats on your ceiling
 
Tim
3:38 PM
thanks I love ceilings
also had a peek at the neighbor's ceiling, it sucks, ours is better
 
niiiice, get fooked
 
3:53 PM
@IvanMilisavljevic not yet in cache
you guys on discord
 
4:05 PM
no :(
 
no sorry mwb
 
eyo/
 
4:21 PM
yo man
i wanna do something fun tonight what should I do
 
what are your options if any?
 
hmm well I was trying to convince my friends to do something but they're dragging their feet so fuckem, basically it's video games, or maybe try to go see someone out of town if I have to
but I'm feeling doing something that's not video games as that's all I've done every day for the past 2 months haha
 
Hit the road and go somewhere far
Wait, how's the covid restriction?
 
lockdown unfortunately still
 
how's the weather?
hmm
 
4:29 PM
@ballBreaker organise a dinner and throw a bag of brown recluse spiders to the ceiling fan unexpectly
make sure you record it
 
it's super nice out right now, currently sitting out on my balcony naked soakin gup some sun
lmao that'd be an interesting dinner by myself
 
@ballBreaker go hit the park
I wish I was at the park rn but I would be alone so then I rather work on my app
 
yeah I think I'll do that after work
yeah I'll be alone as well I think
my friends are being very lame
 
smoke some weed
 
I wish my mountainbike was fixed
I would hit the forest
 
4:32 PM
hmm
maybe ill go visit my family
 
Tim
do it later, play some games first. What if they take the servers offline tomorrow? Take every chance you have to play games
 
I'm going to hide myself in mu pc-cave and play the Mass Effect Remaster all weekend
 
lmao
 
I need to buy a lappy, I am kind of stuck whether I should pick something from Thinkpad or XPS series
 
my* pc-cave
 
4:42 PM
what purpose do you want the laptop for?
 
For work purposes only. Mainly programming and various multi-media stuff
My ideal specs would be 4-6 core CPU, 12-16 GB RAM, 512-1TB SSD, at least 1080P IPS display, 4+ hours battery backup
I was interested in Ryzen 7 builds but I they are so scarce here
 
yeah thinkpad is good enough for that
 
Tim
5:01 PM
"4+ hours battery backup" is this with our without compiling
 
5:31 PM
okay I decided to leave toronto tonight
look at me
doing something with my life
 
6:00 PM
like.. permanently leave?
or just leave for a night
 
just for tonight/tomorrow
 
6:20 PM
Time to go~~
Cya on Monday everyone!!!! :D
 
cya womps!
 
6:48 PM
Guys I need an interface name for objects that will be in generic lists
Listable ?
No that sounds wrong
halp
 
GenericListObject
 
7:13 PM
I think I'll be switching to SQL database
instead of firebase
 
YES!
good choice @MwBakker
 
Because I only choose Firebase because I use my logon there but furtheron I really prefer working with tools like Datagrip etc
 
one less customer, means one more step closer to firebases demise
 
I dont want anybody to demise
It works fine furtheron but I need to import/export at ease if I change my mind when the project goes huge
plus paying for every document write/read makes me anxious
Nah Ill stick to it
Was just an outburst
If it gets too expensive I'll seek investors :p
but I'll keep stuff relational
 
7:30 PM
@JBis what's wrong with firebase xD
 
7:58 PM
man
I just got this email and found it the funniest thing
> Hello bB,

Hope you are doing well.

When I do a pp presentation in teams and have a video with audio the audience cannot hear it…video no problem?

Is there a setting in Teams to change?
 
bb's name irl is also bb
confirmed
 
hahah
I'm just glad this guy isn't inviting me to his meetings where he shows his pp to everyone
 
  array.words[idx >>> 2] &= ~(0xff << byteShift(idx & 3));
  array.words[idx >>> 2] |= (byteValue & 0xff) << byteShift(idx & 3);
was this dude trying to find cheat codes in js?
 
is >>> a logical right shift?
 
8:09 PM
> Unsigned right shift (>>>)
>> is logical right shift
 
8:21 PM
>> is arithmetic shift, >>> is logical shift. arithmetic shift preserves the sign bit, but logical shift doesn't
||>console.log(-100 >> 1)
@JamesBot
 
|| status
 
I am currently alive!
 
||> console.log(-100 >> 1)
 
@JBis undefined Logged: -50 Took: 0ms
 
need a space cause he's dumb
If these tests pass first try, I will donate $20 to charity
 
8:34 PM
||> console.log(-100 >> 1)
 
@Smarticles101 undefined Logged: -50 Took: 0ms
 
ah
||> console.log(-100 >>> 1)
 
@Smarticles101 undefined Logged: 2147483598 Took: 0ms
 
9:00 PM
unclear what he's doing without the definitions for byteShift and byteValue
but it looks like he's working with the first 2 bits of idx
but how he's applying it to array.words doesn't make much sense to me atm
 
byteValue & 0xff would retrieve the first two bytes of byteValue
 
9:25 PM
and the shift right would drop the first two bits
the & 3 would apply the first two bits of idx and overwrite possibly the first two bits of the word @ idx>>>2
seems weird
 
Tim
@MwBakker the possibility of ending up in a collection (list) is not factor when deciding a name for an interface
 
10:23 PM
i just ended up deleting it, refractor made it not needed
 

« first day (3863 days earlier)      last day (1068 days later) »