473,386 Members | 1,754 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,386 software developers and data experts.

entering the lists against CamelCase

I never cared for CamelCase because a lot of words in English are compounds,
and remembering the right CamelCase rendition of them gets difficult. For
example, an object attribute named

HaveAMerryChristmas

isn't too hard, but what about deciding between

HaveAGoodWeekend

and

HaveAGoodWeekEnd?

I think that most native English speakers would automatically chose the
former, but others might tend to misremember the latter.

And what about LaunchGoodyearBlimp versus LaunchGoodYearBlimp? A person
without specific knowledge of the Goodyear company might easily fall into
the error of choosing the latter. I'm sure that even better examples could
be found, given billable time.

As to the relative abundance of CamelCase, I've seen a potful of it. I
remember seeing it in the Macintosh API, and it's all over Windows. I've
also seen a lot of mostly-lowercase code, too, so in my experience you can't
decide the case (pun intended) on the basis of popularity.

I think CamelCase is a reaction against an unrelieved boredom with
uppercase-only terminals and printer chains. When terminals and printers
could do both upper- and lower-case glyphs, one group went almost all
lowercase (except for C globals and object-like macros ) and another group
went CamelCase, both in reaction against the former tyranny of uppercase. A
holdout was the lone COBOL programmer I knew who refused to disengage her
caps lock key in an effort to preserve the wierdly uncool all-uppercase
style of old COBOL listings.

Although I'm tempted to claim that all the cool guys and gals went mostly
lowercase because that's my personal preference, I'm actually grateful for
all the CamelCased good stuff available to me through Python.

Case Dismissed!

Jul 18 '05 #1
2 1755
John Benson wrote:
... what about deciding between

HaveAGoodWeekend

and

HaveAGoodWeekEnd? ... And what about LaunchGoodyearBlimp versus LaunchGoodYearBlimp? A
person
without specific knowledge of the Goodyear company might easily fall
into
the error of choosing the latter. I'm sure that even better examples
could
be found, given billable time.


If this is really your biggest problem in programming, I'd say that
you're in fantastic shape. Seriously.

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ I never think of the future. It comes soon enough.
-- Albert Einstein
Jul 18 '05 #2

"John Benson" <js******@bensonsystems.com> wrote in message
news:ma**************************************@pyth on.org...
I never cared for CamelCase because a lot of words in English are compounds, and remembering the right CamelCase rendition of them gets difficult.
[snip]

Well, having worked in monocased languages, I find that
the biggest problem with them is the inability to tell where
word breaks are without a clue. Capitalization is one such
clue, underscores are another. The hyphens you find all over
COBOL programs are a third. All of these suffer from the
ambiguity problem you mention.

The best solution I know of for the ambiguity problem is to
create a lexicon for a system rather than simply creating names
as they swim up from the depths of the creative unconcious.

John Roth


Jul 18 '05 #3

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

Similar topics

9
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
7
by: JimO | last post by:
I teach HS computers and one of my kids has a web site with a textbox of info that the user can scroll down and read. The problem is that users can also enter text into it. Is there a way, or a...
20
by: RobG | last post by:
I'm messing with getPropertyValue (Mozilla et al) and currentStyle (IE) and have a general function (slightly modified from one originally posted by Steve van Dongen) for getting style properties:...
4
by: __frank__ | last post by:
I have some difficulties to learn lists and its coding in C language. Is there a site that explain this argument in a simple way (with examples of course)? I tried to "google" but results are...
10
by: pantagruel | last post by:
Hi, I'm looking for an optimal javascript function to split a camelcase string and return an array. I suppose one could loop through the string, check if character is uppercase and start...
51
by: Joerg Schoen | last post by:
Hi folks! Everyone knows how to sort arrays (e. g. quicksort, heapsort etc.) For linked lists, mergesort is the typical choice. While I was looking for a optimized implementation of mergesort...
14
by: Paulo da Silva | last post by:
Hi! If I have two files .py such as m.py from c import * ... x=c() ... os.any_method ...
2
by: robertns5411 | last post by:
I have two questions: 1) Say I have a form bound to a table. Assume the user is entering data into a new record at the bottom of the form. Now, suppose the user clicks a button on the form...
4
by: Neil | last post by:
Having trouble with inserting a record into a table. It's a list of names. But, for some reason, it won't take a particular name. When a user tries to enter a name into the table, the system hangs...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.