Dirty deeds done dirt cheap!

Bogusław Błoński
1 min readFeb 28, 2021

--

Clean code is good but no thanks.

Context: Had to do hot fix in xamarin.app that need biometrics in MVVM cross.

Clean Code?

Composition over Inheritance and Liskov substitution principle are things I was doing not knowing theirs names to achieve high code coverage, but more to avoid circular references, dislike of inheritance and rest, all rest is syntax sugar.

You achieve that you put interfaces to constructor and let IoC to its magic:

Man sometime need to get himself dirty

Unfortunately app was crashing in release mode same as here:

Why? iOS Console o output shown that IoC have issues with creating my VM.

Workaround:

Removing IFingerprint from constructor parameters and creating IFingerprint instance inside constructor:

Summary:

“…Here ideals have fallen, there won’t be revolution…”

Cheap and fast “solution” for problem that need to be fixed in 5min while customer was waiting.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Bogusław Błoński
Bogusław Błoński

Written by Bogusław Błoński

Did small internal corporate and big projects with over 1 000 000 active users in ASP.NET and XAMARIN.FORMS and XAMARIN.NATIVE. Blogging for better sleep.

No responses yet

Write a response