Pas de Code – Telegram
Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
@MightySeal shared an interesting link: looks like a much more convenient and typesafe wrapper for the whole startActivityForResult thing is coming soon.
 
#activity #google
Check out this JEP. They propose to enhance instanceof so it can be used like this:
if (obj instanceof String s) {
    // can use s here
} else {
    // can't use s here
}

 
#java #jep #instanceof
In this strange post author explores what happens when you try to close your app via System.exit(). It's not clear why would anyone want to do this, but it's always fun to know.
 
#system #jvm #activity
Records (kind of data classes for Java) continue to evolve and it's great! JEP 384 is a second iteration based on the first preview feedback.
 
#java #records #jep
Check out the current state of Project Loom (lightweight threads, "virtual threads" as they call them) in Java.
 
#java #loom #coroutine
A short post on using post and postDelayed to remind you that there is also the removeCallbacks method and a thing called ViewTreeObserver.
 
#view #handler
@themishkun shared with us a controversial post that perfectly matches this channel. Author tried to make a few changes to a project that wasn't being maintained for some time. In an instant Gradle and Android Studio drove him mad.
 
#ide #studio #gradle
I can't help but share this link: ask me anything with SpaceX software team on Reddit. Lots of interesting stuff: e.g. for state management they use Redux model outside the UI layer.
 
#software #programming #spacex
As a follow-up on yesterday's post @Shipaaaa shared a link on this Twitter thread. Former Tesla employee (NDA has expired) posted a bunch of disturbing details on how things worked at his time.
 
#software #tesla
The story of improving OkHttp connections reuse by implementing .equals on SSLSocketFactory and reusing it's instances.
 
#okhttp #network #performance