View profile

“Remind yourself what you’ve been through and what you’ve had the strength to endure.”

SpookilyTyped Newsletter
“Remind yourself what you’ve been through and what you’ve had the strength to endure.”
By Matt from StoicallyTyped • Issue #20 • View online
PHEW! Thanks to Labor Day this week only had 4 work days and that has been a giant blessing. The new job is kicking into high gear which is incredible but also very tiring. Learning new things really takes a lot of energy!
So what am I learning? Kotlin Multiplatform Mobile (KMM)! I’m very fortunate to be on a team that is using this incredible technology every day. I’ll most likely be including some great KMM finds in following issues as I learn more about it.
If you’ve got some conference budget to use definitely check out @ChicagoRoboto! There is an amazing lineup of speakers this year with some amazing sounding talks.
That’s it from me, lets get the goods. 👏

👾 Fun Stuff
Check out this thread from @Louis_CAD. He has updated refreshVersions!
Louis CAD
I'm just going to put this here.

Suffer from this? Look in the 🧵 below https://t.co/DW5AoKuT9h
Here’s a pro tip from Tyler McCraw! Find out how to do this in his replies!
Tyler McCraw
I finally decided to save myself one extra click for when I clean my project by adding the "Clean Project" action in Android Studio's navigation bar.

It only took 400,000 unnecessary clicks to make me want to do this. https://t.co/c0p1wO8aKm
📚 TL;DRs
Android 12 Beta 5 update, official release is next!
Accelerated Kotlin build times with Kotlin Symbol Processing 1.0
🛠 For Your Toolkit
refreshVersions: Life is too short to google for dependencies and versions
👩🏻‍💻 Android Practice Question
How would you refactor this code using apply?
Are there other improvements you can make to it?
Try it in this playground and share your answer!
Send a link to a gist with your answer by replying to this email or the Tweet of this issue. Have your answer included in next weeks issue!
⭐️ Answer to Last Week's Question
In Kotlin, how does a Sequence differ from an Iterable Collection?
Can you think of any scenarios where a Sequence would perform better than an Iterable?
A Sequence is a different container type in Kotlin. It has the same functions as Iterables (like List) but handles these functions in a “multi step” way.
  • Basically an Iterable will do each chained function like filter, map, etc on the entire Iterable before moving to the next function in the chain.
  • A Sequence will do each function in the chain on each element of the Sequence before moving on to the next element.
When to use a Sequence:
  • Many or expensive operations to perform on a collection.
  • When processing can short circuit. (end early because a result is found)
  • The operation is stateless.
  • The collection is smaller.
When to use Iterable
  • When collecting the results (toList(), toSet())
  • The operation is stateful.
  • The collection is larger.
Stateful - other collections are needed to perform the operation
Stateless - no other collections needed to perform an operation
Try out this Kotlin playground to see the difference and let me know what you think!
💭 Stoicism x Tech
“Remind yourself what you’ve been through and what you’ve had the strength to endure.” — Marcus Aurelius
Wow I’m really needing this quote this week. I’ve been reading so much and learning so many things for my new job. It’s been a lot…
But I need to remind myself what I am capable of. I’ve gotten to this point because of my past trials and experiences. In a few months I will be facing new challenges and be able to look back on this time and through it gain strength.
Do this for yourself too! Remember what you have been through. Don’t take your learning or knowledge for granted. You too have faced challenging situations and have made it through them.
👋 Want to Contribute!?
Did I miss something great this week? Have a career question you want answered by the community? Send them to me on Twitter or reply to this email. I’d love to hear from you and chat!
If you enjoyed this issue consider sending it to someone you think might enjoy it.
Remember to stay hydrated and have a great week!
Thanks for reading!
- Matt ✌️
Did you enjoy this issue?
Become a member for $3 per month
Don’t miss out on the other issues by Matt from StoicallyTyped
Matt from StoicallyTyped

Weekly bite sized Android news and stoic quotes for your career in tech, delivered Monday mornings to kick off your week.

You can manage your subscription here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue