October 31st, 2007

glasses

Dear Lazyweb, C++ library names and include files

Hi!

I don't write new C++ libraries all that often that I intend to publish. I have a class I need to define... so I am thinking...

/usr/include/Class.h

but...

I already have a
/usr/include/class.h

OSX, Windows.... both have case insensitive file systems. So the above is not going to work.

What is the common naming convention to use?

For the library I was going to do:
libclass++.so

so that it does not clash with:

libclass.so

Any thoughts? Surely one of you out there has strong feelings on this sort of thing.

Thanks!
-Brian
glasses

Trick or treater...

"Do those M&M's have peanuts? I am allergic to peanuts."

What the hell!

It is sugar!

Sugar! Sugar! Sugar!

Damn kids these days have no respect for the holiday... In my day is was all about filling pillow cases up with enough treats to eat for days.

The youth of today show no respect. I bet most of them have never egged a house or smashed a pumpkin either.
glasses

C++ File Naming Conventions Poll

Dear LazyWeb,

Please provide insight :)

I am wondering what the common beliefs are regarding C++ file extensions. To come up with an answer I have decided to take a poll (which will not only be unscientific, but probably biased to those who care enough to hit a submit button).

What file extension should be used for C include files?

.h (you suck, this should be c)
10(55.6%)
.hpp
3(16.7%)
.hh
3(16.7%)
.h++
0(0.0%)
.hxx
2(11.1%)

What file extension should be used for C source files?

.cc
9(47.4%)
.cpp
10(52.6%)
.c++
0(0.0%)

More polls on squirrels?

Doom!
9(64.3%)
Cowboyneal!
5(35.7%)


If you can not see the poll then you are not viewing this post on Livejournal (so go see the original post).

This has nothing to do with MySQL... though I am sure more then a few of our developers have an opinion on this :)