Connascence— Part III: Connascence applied

pandaquests
Level Up Coding
Published in
6 min readDec 17, 2020

--

In the previous two parts, I first defined the concept of connascence (part I). Then I elaborated on the different types of connascence (part II). During part II I gave examples. In this part I’ll refactor all the examples I mentioned in part II and move it from higher connascence to lower connascence and thus improve the code.

Before we start, let’s see our table of the different connascence types:

--

--

°(p.q)° Full stack software engineer (JS, TS, HTML, CSS, Java, Kotlin). Follow me on my journey