Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Design patterns in Lite-C #276896
07/06/09 23:02
07/06/09 23:02
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Design patters, do you use them in your code?
Although Lite-C can't be put to use with classes and inheritance, most design patterns can still be applied.
I'm curious to those who have used patterns with lite-c, and how well it eased your workflow.

Cheers,
Joozey

Design patterns in Lite-C
single choice
Votes accepted starting: 07/06/09 23:02

Click and join the 3dgs irc community!
Room: #3dgs
Re: Design patterns in Lite-C [Re: Joozey] #276903
07/07/09 00:06
07/07/09 00:06
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
Im not %100 sure on what they are, anyone care to explain for me ?

Thanks,
Blade


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Design patterns in Lite-C [Re: Blade280891] #276910
07/07/09 01:52
07/07/09 01:52
Joined: Aug 2003
Posts: 2,122
Berlin, Germany
checkbutton Offline

Expert
checkbutton  Offline

Expert

Joined: Aug 2003
Posts: 2,122
Berlin, Germany
Design Patterns are special, reusable patterns in software engineering, that fulfill certain tasks. Further information on wikipedia, the article is quite usefull.


I don't have a homepage, for god's sake!
Re: Design patterns in Lite-C [Re: checkbutton] #276925
07/07/09 06:38
07/07/09 06:38
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
I have some sort of pattern, meaning I have introduced naming conventions for functions, variables and interfaces. Also I make extensive use of comments and then generate an interface overview using Doxygen. It really helps a lot.

Of course this consumes more time than hacking together a piece of code, so I'm mostly sdoing this for stuff which I think I can reuse.

Re: Design patterns in Lite-C [Re: FBL] #277052
07/07/09 14:58
07/07/09 14:58
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Design patterns are mostly well established for object oriented code. I use patterns since I learned them, so, yes I use them. You can even design an object oriented system for your game and translate it over to C, that is no problem, though, this disables certain patterns (like polymorphy and late binding) but can be emulated (late binding through function pointers, for instance).

Re: Design patterns in Lite-C [Re: HeelX] #277056
07/07/09 15:09
07/07/09 15:09
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
Design patterns are from hell!
http://realtimecollisiondetection.net/blog/?p=44
Design patterns are from hell^2!
http://realtimecollisiondetection.net/blog/?p=81
:p

Re: Design patterns in Lite-C [Re: HeelX] #277057
07/07/09 15:12
07/07/09 15:12
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
I know the vague concept of design patterns, but never actually looked into them.
Therefor i'm not using a specific pattern, however I do have a specific setup I find usefull myself that I, with any project, start out with (folder and object structure etc).
So in a way i do use a design pattern.

I still voted "I have no clue what design patterns are", because i care about them, never looked into them nor used them, so this was the closest option for me.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Design patterns in Lite-C [Re: Helghast] #277100
07/07/09 18:50
07/07/09 18:50
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Thanks all for the comments so far. I myself have thought about using them, but never came to that point. I do apply them on C++ very often, but never bothered to do so with lite-c so far.

Quote:
Design patterns are from hell!
http://realtimecollisiondetection.net/blog/?p=44
Design patterns are from hell^2!
http://realtimecollisiondetection.net/blog/?p=81
:p

That's a very silly guy...

But you don't hear me saying design patterns are all great.
Applying patterns on C++ while programming on the Nintendo DS might get you in trouble really fast. All of a sudden a decorator seems like the most inefficient way in terms of memory consumage you could think of smile.

But patterns do a great job adding structure, overview and extendibility to your code.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Design patterns in Lite-C [Re: Joozey] #277103
07/07/09 19:02
07/07/09 19:02
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
it may be a bit exaggerated but there still is a lot of truth in it. i don't think he is a silly guy. there are some interesting articles on his blog.

Re: Design patterns in Lite-C [Re: ventilator] #277104
07/07/09 19:03
07/07/09 19:03
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Ah I edited my post.
I found the comments there just as interesting.


Click and join the 3dgs irc community!
Room: #3dgs
Page 1 of 2 1 2

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