Hi list!

What I want to show with my pseudo code is:
 I like to implement a higher abstracted layer (factory classes or functions)
I need a clear and easy API. The names of my classes implements their
definition.
Your way in your code example is very short. Yes, but it is difficult to
understand. It has
a low abstracted level. My way has three steps. One more then yours:

[read file/ deserialization] => [logger init]

my three steps are :

[get config from anywhere] => [config represent class] => [logger init]

Any person can read my code and quickly understand what the way it is. The
detail
of implantation is not important. Yes, the class can use cxxtool deserialization
and in the most time it is the best way. The target class, the logger must not
know where the configuration comes from. But the problem in this moment is: the
deserialization needs a special class for configuration data and this special
class is needed by cxxtool logger. But this special class has not any public
functions or proprieties. So I can not write my own classes as higher
abstracted layer. An example for a case is a plausibility check:
 
[deserialization] => [config represent] => [plausibility check] => [logger]

Today I can not see any way to implement this as higher abstracted layer.

Best regards,

Olaf

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to