Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 692 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 6 1 2 3 4 5 6
Re: Lite Foundation - A powerful Lite-C library [Re: Quad] #372200
05/30/11 01:04
05/30/11 01:04
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
A bit about the naming convention: C and C++ use underscores and all lowercase for functions, and camelcase without underscores for structure (etc) names. Common practice is to use names that are gramatically correct and clear: create_entity rather than ent_create. But since 3dgs doesn't follow that convention, it might be a wiser decision to follow 3dgs' choice anyway.

Nice lib, such things are very useful, and every programmer should built likewise on his own as he goes laugh. Having a starting lib like yours saves a lot of time.

Last edited by Joozey; 05/30/11 01:25.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Lite Foundation - A powerful Lite-C library [Re: Joozey] #372212
05/30/11 09:40
05/30/11 09:40
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
I wouldn't say that C and C++ has its own naming convention. Its more like with the different syntax styles, some like K&R more, some other like the Allman style more.
The default libraries use underscores for functions and types, but caps for defines (ERRNO for example).

Originally Posted By: Joozey
Common practice is to use names that are gramatically correct and clear: create_entity rather than ent_create.

I guess ent_create came from the idea to have a three letter abbreviation as prefix, we have also snd_create and such things. I guess the idea was to have an convenient way to do things.

Originally Posted By: Joozey
But since 3dgs doesn't follow that convention, it might be a wiser decision to follow 3dgs' choice anyway.

No. Functions have to be verbose, they have to tell one what they do. This saves one from going to the manual over and over again, you just need an idea of what you want and how it might be named, and you will most likely find it right away.
But thats just my personal preference and it was really hard with SED to have this style because it lacked code completion. Luckily we have LED now which makes it really easy to work with heavy verbose libraries like Lite Foundation.


Originally Posted By: Joozey
every programmer should built likewise on his own as he goes laugh.

Yes, couldn't agree more. There will always be things that one doesn't like without doing it on its own. But Lite Foundation can also be used in such cases, eg. one could remove classes (or all classes) that one don't like and work with the runtime directly. Or remove the runtime and rewrite it from scratch while still having the default classes.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Lite Foundation - A powerful Lite-C library [Re: WretchedSid] #386448
11/03/11 06:41
11/03/11 06:41
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
All links down frown
Please reupload it, i need it :|

Page 6 of 6 1 2 3 4 5 6

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1