iOS Swift developer with an unhealthy amount of Android and Flutter thrown in. Cycling enthusiast. Admirer of TTRPGs, sometimes a player, often times a GM.
iOSProgramming @programming.dev WWDC24 Announced
iOSProgramming @programming.dev Masking Third Party Dependencies
iOSProgramming @programming.dev How (not) to monitor SwiftUI @State
Flutter @programming.dev Developing Flutter apps for Large screens
Flutter @programming.dev Issue 188 - Flutter Tap Weekly Newsletter
Flutter @programming.dev Xcode 15 issue related to Flutter 3 — Fix
Android Development @programming.dev What’s new in Android 14 for developers
iOSProgramming @programming.dev Mastering Observation framework in Swift
iOSProgramming @programming.dev Swift Data by Example
Flutter @programming.dev Everything you need to know about Enum with Flutter and Dart
iOSProgramming @programming.dev How async/await works internally in Swift
Flutter @programming.dev AsyncSnapshot .when extension using Dart 3 pattern matching
iOSProgramming @programming.dev @Model for CoreData
iOSProgramming @programming.dev Swift if and switch can now be expressions
Raspberry Pi @programming.dev RaspberryPi 5 Review
Swift @programming.dev Value and Type parameter packs in Swift explained with examples
iOSProgramming @programming.dev Value and Type parameter packs in Swift explained with examples
Kotlin @programming.dev Implementing Multiplatform Kotlin library
Kotlin @programming.dev Making Multiplatform Better
iOSProgramming @programming.dev Thread safety in Swift with actors





I think the responder means that duplicate code is usually easy to refactor into single methods. Typically I see copy pasted code that is changed just a little bit. However much of a duplicated function can be broken into smaller functions and the redundant code removed in favor of calling into the functions. Often what is left then becomes easier to reason about and refactor accordingly. I love the PRs that I make which delete more code than I add but still manage to add functionality. It doesn’t happen often but it’s fun when it does.