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
HaveAMerryChris tmas
isn't too hard, but what about deciding between
HaveAGoodWeeken d
and
HaveAGoodWeekEn d?
I think that most native English speakers would automatically chose the
former, but others might tend to misremember the latter.
And what about LaunchGoodyearB limp versus LaunchGoodYearB limp? 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! 2 1771
John Benson wrote: ... what about deciding between
HaveAGoodWeeken d
and
HaveAGoodWeekEn d?
... And what about LaunchGoodyearB limp versus LaunchGoodYearB limp? 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
"John Benson" <js******@benso nsystems.com> wrote in message
news:ma******** *************** *************** @python.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
Here is an example of just such a usage:
<dl class="faq">
<di>
|
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 better control, method, to
prevent user from entering text?
Thanks,
Jim
|
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:
function GetCurrentStyle( el, prop ) {
if ( window.getComputedStyle ) {
// Mozilla et al
return window.getComputedStyle(el, '').getPropertyValue(prop) );
} // IE5+
else if ( el.currentStyle ) {
|
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 huge and
I don't know what to choose.
Thanks in advance
|
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 building a new word to add to the array but that
seems incredibly wasteful. must be some easy way to do it.
| |
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 for
linked lists, I couldn't find one. I read something about Mcilroy's
"Optimistic Merge Sort" and studied some implementation, but they
were for arrays. Does anybody know if Mcilroys optimization is applicable to
truly linked lists at all?
|
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 ...
|
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 while he's still entering data and
hasn't yet saved the record that he is modifying. How can the
button's click event procedure test to know that the user is in the
middle of entering new data? I've tried testing against the form's
recordset's...
|
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 (users are using Access 2000
via ODBC linked table).
I went into QA (SQL 7) and tried an Insert Into statement, but I got the
same result from QA: the system just hung. No error message. After 5
minutes, the query was still trying to execute.
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |