473,466 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Class name notation

Hello
I have a tiny problem about naming convention. When i read msdn, they
says how to give a name to the internet (IThing), and to the class
(Thing)... but i like abstract classes to factorize methods used in
many inherited class... So i don't really know how to name them since
i didn't find anything in msdn or anywhere else...
I've tryed : ThingSkeleton, AThing (like IThing), ThingAbs,
ThingFactor... but nothing really suits me...

IThing
^
|
ThingSkeleton
^_________
| |
AThing AnOtherThing ...

So i would like to know what the pros use...

Thanks

Great A'Tan.
Nov 16 '05 #1
2 1401
n!
> many inherited class... So i don't really know how to name them since
i didn't find anything in msdn or anywhere else...
I've tryed : ThingSkeleton, AThing (like IThing), ThingAbs,
ThingFactor... but nothing really suits me...


For abstract base classes, for me, it depends on the context. Sometimes I
will give them no extension (eg. simply 'Thing') and sometimes I append the
word 'Base' to the end (eg. 'ThingBase'). I haven't used anything else for
abstract classes.

--
n!
homepage: http://www.btinternet.com/~nfactorial/
blog: http://nfactorial.blogspot.com
Nov 16 '05 #2
Yeah I generally choose to put Base at the end of the name for abstract
classes. It depends whether the abstract classes will be significantly
referenced in code... if that's the case, I'd give the abstract class the
name I'd want to see in code, and give the implementation class an 'Impl'
suffix.

--
John Wood
EMail: first name, dot, last name, at priorganize.com

"n!" <nf********@nomailplease.com> wrote in message
news:uf****************@TK2MSFTNGP09.phx.gbl...
many inherited class... So i don't really know how to name them since
i didn't find anything in msdn or anywhere else...
I've tryed : ThingSkeleton, AThing (like IThing), ThingAbs,
ThingFactor... but nothing really suits me...
For abstract base classes, for me, it depends on the context. Sometimes I
will give them no extension (eg. simply 'Thing') and sometimes I append

the word 'Base' to the end (eg. 'ThingBase'). I haven't used anything else for
abstract classes.

--
n!
homepage: http://www.btinternet.com/~nfactorial/
blog: http://nfactorial.blogspot.com

Nov 16 '05 #3

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

Similar topics

1
by: trenchmouth | last post by:
Does anybody know how I can loop through all the properties in a class I have created? Can I use Me to refer to the properties? I'm using VB6. Many thanks.
3
by: kackson | last post by:
Hi. What does it mean when it is written as: in the test.hpp file-> class MYFUNCTION: public TOP { public: ....some variables... MYFUNCTION(int x, int y, int z.. and some more argument);
11
by: Andrew Thompson | last post by:
I have written a few scripts to parse the URL arguments and either list them or allow access to the value of any parameter by name. <http://www.physci.org/test/003url/index.html>...
2
by: Paul Wu | last post by:
Perhaps someone can enlighten me with a peculiar question I have: Why is that in a Class library written in VB.NET, a public property can be accessed through "Class.Property" notation when...
2
by: brzozo2 | last post by:
Hello, anyone knows if there is a way to use pointer notation instead of array when it comes to copying one object to another via a pointer of array to objects? Here is a very simple code to show...
3
by: antred | last post by:
Hello everyone, While working on a program I encountered a situation where I'd construct a largish data structure (a tree) from parsing a host of files and would end up having to throw away...
1
by: Cartoper | last post by:
I have this book "Beginning JavaScript for Practical Web Development, Including AJAX" and in it the author is using javascript syntax I don't understand. It is <class name>={ <function...
1
by: neoone | last post by:
Hi, I reported a bug to the bugtracker (issue 1443), but it was rejected with the comment: "Go ask on c.l.py why this is not a bug" After decrypting c.l.py to the name of this group, I'll do...
21
by: Mr.SpOOn | last post by:
Hi, I'm going to work on a project to represent some musical theory in Python, in an object oriented way. I have to manage many elements of music such as notes, intervals, scales, chords and so...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.