logo       


Re: Add support for AL_*_OFFSET for alGetSource [try 2]: msg#00062

Subject: Re: Add support for AL_*_OFFSET for alGetSource [try 2]
Prakash Punnoor wrote:
What I prefer:

- linux like style, ie indenting of braces like above, indenting with tabs set to 4spaces.

I prefer the former, eg.

if (foo)
{
   a();
}
else
{
   b();
}

I don't hate the other style (we call it the Egyptian braces style here), but I'd much rather use the style above. 4-space tabs are fine.

I think to make static variables more discerneable from local or parameters, they could get an prefix like "s_". Furthermore I like speaking names (I think almost all usable IDEs support word-completion), and due to my professional use of C# (no flames please ;-) I prefer their use of camel cased function parameter names and pascal cased function names.

Can you describe these?  I'm not sure what you mean.


In the company we also prefix vars like in Hungarian notation, as it makes word-completion easier as vars of the same type are grouped together logically. I think applying these rules on C would help readability, as well.

I really hate Hungarian notation. I'll cave on everything else to keep Hungarian notation out of it. Just name the variables something logical ( unlike most of the SI :-/ ), and 99% of the time you'll know the type intuitively. BTW, I don't use IDE's as a rule (vi and the command line are fine for me), so I don't see making style choices just to improve things like word substitution as much of an argument. The choices should primarily be made to improve readability.

--

--"J"

"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
        --Neil Peart


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe