« first day (2754 days earlier)      last day (2419 days later) » 
00:00 - 20:0020:00 - 00:00

FaceMash is back
time for Adam to jump ship for Facebook
20:16
!
what's going on, Emm!
Long time no see
oh no, I'm scared of ghosts
hey hey!
how have you guys been?
well we haven't gotten the room frozen, so I guess good? :D
is that what happened to the js room?
20:17
oh
one of their room owners did damage control
but there's a lot of meta about it
I see
so... what is new?
well... Tim's a room owner
sometimes I'm writing Kotlin
that's about it
everyone sailing the Kotlin ship by now?
good
I don't think @codeMagic is writing Kotlin yet
but are you really surprised?
took him years to get off of Eclipse :D
20:19
well...no surprise there...
yes everyone writes kotlin, the J word is forbidden now
he is using AS now? wow...
yea time began with Kotlin
there was nothing before it
Are you still at Kayak trevor?
20:20
yup
cool
o/ Emm
thought you had abandoned us :P
\o
I am around
I am always watching....
lol
just not around here :D
20:21
true statement
is it me or bad Android questions in SO have greatly decreased?
for the guys using Kotlin (I am sure you know, but..) if you are using synthetic extensions inside ViewHolders, you are calling findViewById() every time, defeating the purpose of the ViewHolder
this is "fixed" in Kotlin 1.4 via an experimental feature
interesting
how'd you find that out
A coworker
it is fine for Fragments and Activities
yeah that's what the viewholder pattern was made for
20:29
in 1.4 you can define View caching for any class basically
o/ Ahmad
1.4? You mean 1.1.4?
it is also a good idea to us AS to see what Java code Kotlin produces
ups
correct
they should be at 1.4 already... lol
I am using 1.2.41 so I should be safe using it in viewholder right?
you have to add code to support it
you need to enable the experimental feature
and implement an interface (trivial interface I think)
I see
thanks for the hint, will dig in a bit deeper
20:34
np
also, this 1.1.4 adds Parcelable support
it claims to generate parcelable stuff for you via an annotation
Parcelable needs to plain die
@MehdiB. is benati still with bayern? he is moroccan right?
Yup (for both questions :D), he's been loaned to Juventus (for a year I think)
@trevor-e Amem to that
20:50
Talking about Parcelable, we had a really nasty crash on a previous team
Why?
the infamous TransactionTooLargeException
before 23(I think it is 23) it was just a warning, after 23 it makes your app crash
ohhh
eek
I stopped using parcelable a year ago thanks to an advice I got here, now I only pass IDs
same
we only pass ids
20:55
found it XD
Jul 19 '17 at 14:40, by Tim Castelijns
it is faster to use realm and put the model ID in the bundle
sound advice
yes :D I think I applied this advice that same day
That guy who gave this advice is a genius
we hit the same TransactionTooLargeException emm, it's actually taken quite a few releases to fix because it keeps popping up in different places
so the solution is to use a database?
21:05
I have never used Realm, but for on device database storage Room is definitely the way to go
we used StateFragments ¯_(ツ)_/¯
StateFragments?
no tool is the way to go. It depends on the usecase
oh I guess that's our own invention
thought it was part of the android api
I mean, if you want to save stuff on a DB and you are using Rx... Room is a great fit
I bet StateFragments are fragments that are retained, right?
21:08
realm has rx support as well
yes emm
I have heard @CarlAnderson and others really complain about Realm...
but again... I have never used it
everybody complains about everything
I'm just saying there is not 1 lib that is always the best option
@Emmanuel haters gon' hate
21:10
I still want to try ObjectBox
objectbox.io looks a lot better than realm
I agree with Tim, 1 library is not only the best option, unless it is a square library
just kidding
MOS was triggered
Run to the hills
21:12
square has done some nice work. Although I wouldn't recommend dagger
Leaked footage of Android developers applying a sprinkle of Realm into their apps
MOS's gif game is strong
Was there any doubt @Abhi?
well... with Kotlin default parameters, Dagger seems like overhead
Dagger 1 was... not great...
21:14
how are the 2 related?
Dagger 2... has a bunch of overhead
does room have a query builder that does not rely on sql?
dependency inversion is a plague
with default arguments you can nicely define default dependencies in place
nobody's brain works how dependency inversion wants to force you to think
21:16
how do you do it in an activity emmanuel?
The only dependency your Activity should have, for the most part, is a Presenter or a ViewModel (from the arch components)
ViewModel is kept across config change by default
Keeping a Presenter across config change requires a bit more work
but it is not that hard
how you do it? You new one up. Yeah, I know newing one up may seem like you loose control of testing the Activity, but you don't. Activities and Fragments should be dumb, and the should be tested using Robolectric. When doing so, the dependencies of the Presenter will be mocked, but not the presenter itself.
How do you mock the Persenter's dependencies?... by using Singleton Factories that provide these dependencies. The values these factories provide should be var so you can override them in tests.
@KTWorks. Access denied. You seem to just be looking for tech support and you do not have at least 80 points of reputation.
21:50
Just updated AS, everything is broken now
maybe you should write better code
5
#dreamCrushed
22:08
You can have dependencies on all kinds of helper classes in views
22:51
@AdamMc331 I hope your compensation isn't largely stock
Because if it is, you're having a crypto day
23:51
brutal Carl
🔨
oh hey @Emmanuel!! :)
great too see you here again :)
unfortunately I gotta hit the bed now
so hi, and bye!
00:00 - 20:0020:00 - 00:00

« first day (2754 days earlier)      last day (2419 days later) »