Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 6 1 2 3 4 5 6
Re: Lite Foundation - A powerful Lite-C library [Re: WretchedSid] #370766
05/15/11 14:39
05/15/11 14:39
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Well, my System here is currently a Mix of Both conventions. "Class"-Name as prefix(Camelcase), underscore, Methodname(CamelCase).

Like:

TBigWindow_DrawSomething(MyWindow);

Thought about this to keep a visual gap between the Structname and methodname.
Havent tried full Camelcase for this approach yet(no underscore).


Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Lite Foundation - A powerful Lite-C library [Re: Rackscha] #370769
05/15/11 14:45
05/15/11 14:45
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
I would go with one way, either completely camel case or just underscores because its easier to learn as a beginner. Plus: I would throw out the T and replace it with a two or three letter abbreviation to avoid function name collisions and as a replacement for namespaces.
But thats just my opinion.


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] #370774
05/15/11 15:18
05/15/11 15:18
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Normally, CamelCase is what i prefer. Iam using it at work in Delphi(for 10Month now).

When i started to do some OOP like things in LiteC, i wanted a Name for a method that States what it does, and which class it is part of. Thats why i started to use the ClassName_MethodName approach.

I have been a bit scared about something like:

TMyClassThatDoesSomeFancyShit() as a method name. You have to look twice to see which class its part of. So i went TMyClass_DoSomeFancyShit();
In Java, Delphi Iam still using normal CamelCase since they support real classes.

And maybe i should stop here, because i dont want to bash you Thread with offtopic things^^

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Lite Foundation - A powerful Lite-C library [Re: Rackscha] #370778
05/15/11 16:28
05/15/11 16:28
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Rackscha
And maybe i should stop here, because i dont want to bash you Thread with offtopic things^^

Nah, don't worry, you help spreading lite foundation (6 dls since your first post), so keep the Off-Topic talk as long as you want tongue

Btw, I doubt that the underscore helps, here are a few examples from Lite Foundation:
Code:
LFStringCreateWithCString();
LFSetAddValue();
LFAutoreleasePoolDrain();
LFEnumeratorNextObject()



Its visible to which class the function belongs although its camel case. I find this more easily to read plus its also states what it does (which is also a naming convention I favor (say what you do without saying how you do it)).


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] #370801
05/15/11 21:21
05/15/11 21:21
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Quote:
Nah, don't worry, you help spreading lite foundation (6 dls since your first post), so keep the Off-Topic talk as long as you want tongue

Okay^^

Quote:
Btw, I doubt that the underscore helps, here are a few examples from Lite Foundation:


Mh, see what you mean. The underscore had another reason: My typerythm grin.

May try out to use PureCamelCase since i have to rewrite most parts of my game, so rewriting some ugly parts of my guy seems to be something on my checklist too.

But i have a mainproblem whenerver i write code thats not Delphi.. i start to write delphi in LiteC for example v.v:

Value := Value + 1;

Serious who had this nightmare when developing pascal >.<.

Anyway. Going to bed now, tommorow is time for work again laugh

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Lite Foundation - A powerful Lite-C library [Re: Rackscha] #370981
05/16/11 23:53
05/16/11 23:53
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Okay, ten downloads so far since my server is down.
This means that there are at least eleven opinions about Lite Foundation and I want to hear them. Wether it is a "its too complicated", "I don't get it" or a "I fucking hate you, please die", please write it down.

If you don't like certain parts, go ahead an blame me! Otherwise I can't improve the whole stuff.


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] #370987
05/17/11 04:53
05/17/11 04:53
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline
Member
tzw  Offline
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
i think the problem is that majority of users need not use such ADTs,they hold small projs,they focus on developing rapidly.
so your lib wont help them so much though your lib is veeeeeery powerful.
imp a path finding system i guess is more useful to them,and reach 1K downloads…

well, sorry for my English.

Last edited by tzw; 05/17/11 04:55.

Full of my eyes are class struggles.....
Re: Lite Foundation - A powerful Lite-C library [Re: tzw] #370997
05/17/11 07:45
05/17/11 07:45
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Yes you are probably right, the problem is that a pathfinding solution doesn't fit into my kernel project where I need Lite Foundation instead ^^
Anyway, imo even small hoby projects can profit from Lite Foundation, eg. the array class can be dropped into any project and works perfectly fine with storing eg. entities. This would help beginners because they don't need to implement their own (which probably does some horrible memory faults), without the need that they understand how eg. the LF runtime works.

But yeah, your point is nonetheless valid and I would love to hear from the "average" user what they wish and what could have been done better to even catch the average user.


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] #371001
05/17/11 08:41
05/17/11 08:41
Joined: Mar 2002
Posts: 1,774
Magdeburg
F
FlorianP Offline
Serious User
FlorianP  Offline
Serious User
F

Joined: Mar 2002
Posts: 1,774
Magdeburg
Server down? o_O


I <3 LINQ
Re: Lite Foundation - A powerful Lite-C library [Re: FlorianP] #371003
05/17/11 08:45
05/17/11 08:45
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline OP
Expert
WretchedSid  Offline OP
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Yes, I already posted an alternate link (can't edit my first post anymore).
But here is the link again, just in case someone missed it:
http://cl.ly/6ghG


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Page 4 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