02 Feb 2021 • 3 min read Every Disposable holds a strong reference to the observer it binds. This can lead to surprising memory leaks. Consider the following example: class TacoViewModel : ViewModel() { var compositeDisposable = CompositeDisposable() fun loadTaco(activity: Activity) { compositeDisposable.add( Single.just(Taco()) .subscribe { taco -> // Handle taco… println(“Taco created in […]
Your browser does not support theaudio element. Download Anvil is a Kotlin compiler plugin that makes your life a tad bit easier when using Dagger 2. In this episode we talk to Ralf Wondratschek from Square who created the library and open sourced it for all of us. After touching on some of the basics, […]
Did you ever have to share your screen and camera together? I recently did and it was that easy. How hard could it be to create our own? Today, we’ll code our own webcam utility app for macOS in SwiftUI. I recently got chance to be part of my first online tech conference where I […]
Many people don’t realise dark mode is an accessibility feature. It’s often just considered a nice to have, a cool extra feature that power users will love. But dark mode is also a valuable accessibility feature. Some types of visual impairment can make it painful to look at bright colours, or large blocks of white […]
If you have a regulatory requirement to provide accessibility in your app (spoiler, you do) the chances are it will say you have a requirement to reach WCAG AA. While this is likely meaningless to anyone other an accessibility professionals, in short it means you are providing the minimum level of accessibility features required to […]
Episode 120 (The Prairie Chicken in Wisconsin: Highlights of a Study of Counts, Behavior, Turnover, Movement, and Habitat) The Memory Palace is a proud member of Radiotopia, from PRX, a curated network of extraordinary, story-driven shows. Music We move between three different pieces from Camille Saint-Saens’: Suite, Op. 90: II Menuet, and two from Carnival of… Source […]
It’s been a year since I joined the NextUX Design Agency and I can’t be more grateful and fortunate to have taken that decision. It’s been a wonderful time. I did not grow just design-wise, but also at the personal level too. All thanks to Yagnesh Ahir and Dhanashree Manohar. Now, as I left the […]
It’s been almost two years that Combine has been introduced to the Apple developer community. As many developer, you want to migrate your codebase to it. You don’t want to be left behind but you’re not sure where to start, maybe not sure if you want to jump to SwiftUI either. Nothing to worry, let’s […]
Lamb Biryani with Nik Sharma | Serious Eats At Home Source link
Preview! Heads up: most things covered in this post are in a preview state of some sort. If you want the full technical details on this topic, you can jump to KEEP-226 and its design proposal instead of reading this article. JDK15 introduced a version of sealed classes and interfaces (see JEP 360) in a […]