473,486 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Complex policies

Reading about policies in Andrei Alexandrescu's Modern C++
Design, I was wondering about the complexity of policies.

It there a general recommendation that these policies should be
relatively small and simple (compare Create policy in the above
book) or can they be arbitrarily complex? For instance would it
make sense to define a FileParser policy which states how a file
should be parsed? Or should that be deduced further to smaller
components/policies?

Maybe it doesn't matter as long as the policy interface is
followed?

--
anderberg: People are just mutations. Some worse than others.
Dec 16 '05 #1
1 1320
anderberg wrote:
Reading about policies in Andrei Alexandrescu's Modern C++
Design, I was wondering about the complexity of policies.

It there a general recommendation that these policies should be
relatively small and simple (compare Create policy in the above
book) or can they be arbitrarily complex? For instance would it
make sense to define a FileParser policy which states how a file
should be parsed? Or should that be deduced further to smaller
components/policies?

Maybe it doesn't matter as long as the policy interface is
followed?


I think it's the choice you need to make when designing your system.
Nothing in the language says your template arguments need to be simple
or cannot be as complex as you can handle. Whether it makes sense to
subdivide your more complex parts of the system into simpler ones, is
completely up to you (and the group you're working in).

For language-neutral advice on OOD and OOA, try 'comp.object' newsgroup.

V
Dec 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1262
by: Deon | last post by:
Greetings, I need assistance in the following area please. I'm trying to search thought the WHOLE active directory to find all policies that are applied (active or not). And the description and...
1
3914
by: Dave | last post by:
Hello all, The methodology of policy-based design states that one should inherit from policy classes and, of course, these classes must provide an agreed-upon public interface and semantics. ...
8
1885
by: Jon Slaughter | last post by:
I'm reading Alexandrescu's Modern C++ design about the concept of policies. What I'm wondering is if policies are a common design pattern in C++(OOP) nowdays? It seems like a good idea but I'm...
116
7411
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
2
4528
by: Justin | last post by:
I am currently working on a windows app in C# that when given a computer's name needs to check local security policies on that computer across the server. Some of the policies I would like to...
0
1221
by: abhishek.gilra | last post by:
need to create a function using C# to achieve the following in windows 2k - - Start -Programs -Administrative Tools -Local Security Policy -> Local Policies -Security options. Change...
3
2288
by: Stephen Torri | last post by:
Below is a class that is suppose to represent a segment of memory or a contents of a binary image (e.g. ELF executable). I have started to read Modern C++ Design and thought the best way to ensure...
3
3415
by: Alex | last post by:
Hi, I'm having a booger of a time trying to understand the policies for VB 2005 so I can run the EXE file from a network share via mapped drive. My first route was to use the Global Assembly...
1
1486
ry54770
by: ry54770 | last post by:
hello all, i am new to "thescripts.com", and i have a question about group policies that i have created on my primary DC not replicating to the BDCs on my network. i took the PDC offline about 2...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.