Outline ·
[ Standard ] ·
Linear+
Clean Code Approach Part 1, Short consice clean code part 1
malleus
|
May 3 2021, 09:54 PM
|
|
The part about construct vs usage, it can probably be simplified by using the term, dependency injection, then explaining what DI is.
On naming conventions, a rather useful reference will be the ruby on rails naming guide, where they define what is to be used in singular, plural, etc.
|
|
|
|
malleus
|
May 5 2021, 06:21 PM
|
|
QUOTE(Imaizumi @ May 5 2021, 05:43 AM) I think the concept separation of construct vs usage is a precursor to DI. That's a basic I belive should be understood before moving on to higher level concept such as DI. Off coursep pro like you and other experience developer would feel it's "obvious". *Edited, refering to this? https://gist.github.com/iangreenleaf/b206d09c587e8fc6399e ? Actually, the way that I look at DI is very simple. It's basically just passing a dependency into a class that needs it as a parameter, instead of initialising it within the class that needs it. And then there's those DI frameworks that helps with this, but that's a different thing. and yup, that's the reference I was talking about as a example for naming conventions.
|
|
|
|