miriam_e: from my drawing MoonGirl (Default)
[personal profile] miriam_e
Over the last few decades of programming I've seen a strange thing become more and more common: the useless parentheses syndrome. It seems that most computer languages these days have lots of classes, functions, methods, whatever, that have parentheses that perform absolutely no purpose at all. I'm sure I'm not the only programmer who finds this annoying and confusing. On learning a new language it is one of the most irritating hurdles. Does this one take parameters? Or are the parentheses there purely for decoration?

Related to that, the dot manner of indicating that some function relates to a particular group of functions is a very nice way of doing things, and can do a great job of clarifying code, but I find it often gets mixed up with parentheses in entirely arbitrary ways like this:
    length(blah)
    blah.length()
    blah.length

Looking at the bare reference guides for languages it is often difficult to tell how something is used, or why that way and not another. Even python, the most sane computer language I've yet found, is prey to some of this silliness.

While I'm on the subject I have to say I've never really seen any purpose to the ridiculous proliferation of names for subroutines -- functions, methods, objects, classes, modules, calls, subroutines, blah, blah, blah... As far as I can see, they are all subroutines that take and/or return data.

It seems computer programmers are busy building many towers of Babel. It will be a blessing when AI advances sufficiently that computers program themselves and put us all out of a job. We might get some sanity in programming then.

Date: 2007-01-02 11:56 pm (UTC)
From: [identity profile] annie-lyne.livejournal.com
Good to see you again :) Hope you had a good break.

Java is a pain in this respect especially because you have to bloody cast everything back and forth. Objective-C is a little better, but then you have square brackets instead of round ones.

Profile

miriam_e: from my drawing MoonGirl (Default)
miriam_e

December 2025

S M T W T F S
 123456
7 8 910 111213
1415 1617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 25th, 2025 12:17 pm
Powered by Dreamwidth Studios