Open in app

Sign In

Write

Sign In

Jim Lai
Jim Lai

511 Followers

Home

About

Sep 8

Man vs Clean Architecture Propaganda Machine

Your only weapon: refactor — Clean Architecture 101 The above code snippet is obviously the (in)famous UseCase in clean architecture. ChatGPT recognizes it immediately of course.

IOS

10 min read

Man vs Clean Architecture Propaganda Machine
Man vs Clean Architecture Propaganda Machine
IOS

10 min read


Aug 16

The DI crashers

Let’s crash dependency injections — Whatever it takes to get in, get in. This showed up on highlight. Efficient Dependency Management in iOS: Introducing AppContainer for MVP+DI architecture In which he used Swinject, then commented by the creator of Resolver and Factory himself. It’s a party then. And they didn’t even invite me.

IOS

8 min read

The DI crashers
The DI crashers
IOS

8 min read


Jul 27

Why Use Cases are useless

I, Refactor — Denser alloy I read it somewhere that some Android dev team can output twice as much as iOS team because of the “reusability” provided by Clean Architecture. Wait, you mean Bob’s Brute Force Boilerplate? That Clean Architecure? But hey, maybe I was wrong. So I embarked on a pilgrimage, to learn from…

IOS

10 min read

Why Use Cases are useless
Why Use Cases are useless
IOS

10 min read


Jul 16

Aim for the bushes

Epic fails of dependency injection — Maybe it was just pride Saw this Meta guy pumping dependency injection to the point that he thinks every subview needs to be injected… as a module. Dependencies Injection in a Modularized SwiftUI App With MVVM At the height of its power, MVVM + DI pumpers think it can do no wrong. It is the…

IOS

11 min read

Aim for the bushes
Aim for the bushes
IOS

11 min read


Jun 21

Slow architecture in Swift

How to fail Agile using Clean Architecture — Godamn it, I was playing Diablo 4 Saw this when waiting my breakfast. Agile Architecture in Swift Published in Better Programming, in whch he touted Clean Architecture as a solution to be more Agile. I laughed my ass off. What a brilliant comedy piece from our friend at Better Programming. I would describe Clean Architecture as clumpsy…

IOS

13 min read

Slow architecture in Swift
Slow architecture in Swift
IOS

13 min read


Jun 12

How to fail basic refactor using Clean Architecture

The new progression paradigm for Swift — Does Bob know you are writing dumb shit in his name? Here is a question. How many lines of code do you think it’s reasonable to add an URL endpoint? Clean Architecture under the collective wisdom of industry titans with over a decade of experiences decided that number is > 40. With a setup for presentation it will be > 120…

IOS

13 min read

How to fail basic refactor using Clean Architecture
How to fail basic refactor using Clean Architecture
IOS

13 min read


May 18

A complete failure of MVVM+C in SwiftUI

Learn value type and refactor — You working again, John? Afraid so. Saw this on highlight. How to build UIKit like MVVM-C Coordinator hierarchy with SwiftUI As usual, I’m going to rant about it. At the very least this should give you a perspective outside of MVVM echo chamber. Let’s appreciate this iconic MVVM+C design: final class UserFlowCoordinator: ObservableObject, Hashable…

IOS

10 min read

A complete failure of MVVM+C in SwiftUI
A complete failure of MVVM+C in SwiftUI
IOS

10 min read


May 7

SwiftUI unit test without MVVM

What if there’s no view — What about testing? Every MVVM dev asks this question as if they were TDD titans. Yet the dumbest, most brute-force tests I’ve seen are from these MVVM TDD titans. At some point they forgot that a good design must come before unit test. If you can’t write highly refactored code, you can’t write…

Swiftui

12 min read

SwiftUI unit test without MVVM
SwiftUI unit test without MVVM
Swiftui

12 min read


Apr 6

Everything is business logic

The nonsensical “business logic” that drives MVVM — INDIANA: The hell you will. He’s got a two-day head start on you, which is more than he needs. Brody’s got friends in every town and village from here to the Sudan. He speaks a dozen languages, knows every local custom. He’ll blend in, disappear; you’ll never see him again…

Swiftui

14 min read

Everything is business logic
Everything is business logic
Swiftui

14 min read


Apr 2

Effin Architecture

Do the opposite of what Clean Architecture told you — This is either madness, or brilliance Think of Clean Architecture as British navy. And we… are pirates! What I’m going to do here, is to propose a brand new architecture two decades after Clean Architecture… while waiting to see John Wick 4. Based on my vast experiences reviewing MVVM and clean architecture, a typical Clean Architecture…

Clean Architecture

14 min read

Effin Architecture
Effin Architecture
Clean Architecture

14 min read

Jim Lai

Jim Lai

511 Followers

Casual iOS developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams