Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Clean Code Approach Part 1, Short consice clean code part 1

views
     
malleus
post May 3 2021, 09:54 PM

Look at all my stars!!
*******
Senior Member
2,096 posts

Joined: Dec 2011
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
post May 5 2021, 06:21 PM

Look at all my stars!!
*******
Senior Member
2,096 posts

Joined: Dec 2011
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". smile.gif

*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.

 

Change to:
| Lo-Fi Version
0.0136sec    0.45    6 queries    GZIP Disabled
Time is now: 29th March 2024 - 04:34 PM