473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using all CPAITAL letters for variable names

I use capital letters for macros only. Is it a good idea
to use all capitals for things like constant variables and variables and
array in global namespace ?

--
www.lispmachine.wordpress.com
my email is @ the above blog.Google
Groups is Blocked. Reason: Excessive Spamming

Aug 27 '08 #1
2 1322
On 27 Aug, 07:38, arnuld <sunr...@invalid.addresswrote:
I use capital letters for macros only.
that was the original, and still widely used, convention
it is to draw attention to the fact that "something funny"
may happen because the preprocessor is involved.

*Some* people also capitalise enum values. I suppose
because the are "like" macro constants.
Is it a good idea
to use all capitals for things like constant variables and *variables and
array in global namespace ?
IMHO, no

but then you shouldn't have many variables in the global namespace...
--
Nick Keighley

Many astrologers think that this concentration on [the sun-sign
column] has
done untold damage to serious astrology.
The Independent

Aug 27 '08 #2
On Aug 27, 9:38 am, arnuld <sunr...@invalid.addresswrote:
I use capital letters for macros only. Is it a good idea
to use all capitals for things like constant variables and variables and
array in global namespace ?
If it's *your* C project, you write the specification, and you can
make it a good idea.
If it's someone elses project, you read his/her specification, and you
figure out whether they like it or not.
C doesn't say anything about it (thus such question might be off-
topic)
Though there's things to look out for when choosing names: E?*
(where ? is a digit or capital) are reserved identifiers.
Aug 27 '08 #3

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

Similar topics

1
by: Filth | last post by:
Hi I have the partial section of a script below as you will see its not exactly great but im learning slowly but surely. When I have error_reporting(E_ALL); set I get the following error...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
61
by: Christoph Zwerschke | last post by:
On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion: "These operators ≤ ≥ ≠ should be added to the language having the following meaning: ...
24
by: garyusenet | last post by:
I'm working on a data file and can't find any common delimmiters in the file to indicate the end of one row of data and the start of the next. Rows are not on individual lines but run accross...
2
by: Gary42103 | last post by:
Hi I need Perl Script to do Data Parsing using existing data files. I have my existing data files in the following directory: Directory Name: workfs/ams Data File Names: 20070504.dat,...
2
by: chrisdavies | last post by:
Hi People! I use this site loads but this is my first post - so hope you can help! I've got an access database and I'm writing some code to move contents of USB memory sticks to certain locations...
9
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett --...
5
by: ghjk | last post by:
I have a web site with several web pages. They are having different number of variables. eg: first page having 4 variables in the form(Name, Phone, ID, Gender) second page having 10 variables in the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.