How do spring components fit together

How do spring components fit together

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

How do spring components fit together

Post by Das Bruce » 16 Apr 2012, 11:27

I'm trying to write my own engine but the big problem I'm running into is confusion on how to organise all the different macro components (rendering, sim, etc). Can someone paint me a picture of how spring does it?
0 x

User avatar
Beherith
Moderator
Posts: 4934
Joined: 26 Oct 2007, 16:21

Re: How do spring components fit together

Post by Beherith » 16 Apr 2012, 12:29

Model-view-controller.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10238
Joined: 24 Jan 2006, 21:12

Re: How do spring components fit together

Post by PicassoCT » 16 Apr 2012, 13:25

Always the same answer.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: How do spring components fit together

Post by FLOZi » 16 Apr 2012, 15:49

<shotinthedark>
I imagine the answer for Spring is 'not that well' considering its heritage, though things have improved considerably with the refactors over the past few years.
</shotinthedark>
0 x

User avatar
hoijui
Former Engine Dev
Posts: 4342
Joined: 22 Sep 2007, 09:51

Re: How do spring components fit together

Post by hoijui » 16 Apr 2012, 16:35

to what flozi siad: first part true, second part not true (with minor exceptions like the new config system and to some extend the new logging system).

i agree with behe that model-view-controller is the most important concept you should keep in mind, but also all the other accepted general/OO software design patterns. other then that, you should think about stuff like... on what systems will this engine run on, what are the most important things.. for example.. will it be performance critical cause it runs huge numbers of units on big maps or the like?
and probably the most important and most complex thing you have to think about in the very beginning, is how you want to approach multi CPU/Core support/usage.
an other general recommendation i would make, is to design all sub-parts through as simple and clean interfaces as possible. and of course it would be best if you would be able to keep these interfaces stable (no changes there). all this work may be a bit boring in the begining, but if your work ever gets usable and maybe even successfull, and used by others, ... or even just for the sake of learning how to do things right, you will be very thankfull for that.

btw, this is kind of one of my key interest topics, so if you have more questions or want to discuss.. i'd be interested.

ouh... and if you are using C++ ... better just do not even start... please!
0 x

User avatar
Karl
Panzerstahl Developer
Posts: 746
Joined: 01 Apr 2010, 21:05

Re: How do spring components fit together

Post by Karl » 16 Apr 2012, 17:47

hoijui wrote:ouh... and if you are using C++ ... better just do not even start... please!
What is with Haskell,Erlang or other programming languages that uses pattern matching?
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: How do spring components fit together

Post by FLOZi » 16 Apr 2012, 21:35

hoijui wrote:to what flozi siad: first part true, second part not true (with minor exceptions like the new config system and to some extend the new logging system).
Well I'm sure there's still a long, long way to go... but I didn't want to be too much of a debbie downer; ie. I sure do appreciate all your work. :-)
0 x

User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: How do spring components fit together

Post by Das Bruce » 16 Apr 2012, 23:34

hoijui wrote:ouh... and if you are using C++ ... better just do not even start... please!
Too late. :cry:
0 x

User avatar
AF
AI Developer
Posts: 20669
Joined: 14 Sep 2004, 11:32

Re: How do spring components fit together

Post by AF » 16 Apr 2012, 23:43

Spring is a horrific mudball that compiled and ran oneday.

Since this heap of garbage managed to work and something desirable appeared on the screen, many many termites of the genus "Developus yankspankicus" and "Flamus ceepluspluses" have been shaping the mud into something resembling a termite hill in hopes that they will not be swept away by the unwashed masses

The most structured part of the engine is the lua bit
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10238
Joined: 24 Jan 2006, 21:12

Re: How do spring components fit together

Post by PicassoCT » 17 Apr 2012, 08:34

now... why cant we have a big company providing a cathedral architecture, that is fixed and will collaps if only one stone is removed after building has ended.

Just accept what the world is, accept that you might not be alone on your engine. Write ComentCode before creating functions and junctions


//Function: Returns values this and this

//wahr(end) do

//if this is true then you goto do

//else

Also, while keeping to modell view controll, make sure you have something minmal that compiles at all times. Undefined Coment in Line 55: No point in sailing the red Ocean (thats how i call the codeblocks, youvegotErroz lines)
Also, draw a paperplan.. consider stuff that has to adapt, and stuff that will be fixxed.

Usual coding stuff applies.
0 x

User avatar
AF
AI Developer
Posts: 20669
Joined: 14 Sep 2004, 11:32

Re: How do spring components fit together

Post by AF » 17 Apr 2012, 09:55

PicassoCT wrote:cathedral architecture
Image

No not the cruciforms, the pain, it burns, where's the ultramorph, no NO NOT THE THORN NO NOOOOOO
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: How do spring components fit together

Post by Cheesecan » 17 Apr 2012, 16:52

Write acceptance tests for anything that is interactive. Use any technology that will save you time and allow you to work more effectively than other one man teams. Even if it is a pita to set up initially. Also don't develop an engine, develop a game. This last piece of advice is probably the most important.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10238
Joined: 24 Jan 2006, 21:12

Re: How do spring components fit together

Post by PicassoCT » 17 Apr 2012, 17:36

Image
This might sting a bit!
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: How do spring components fit together

Post by Cheesecan » 17 Apr 2012, 21:39

http://scientificninja.com/blog/write-games-not-engines

It's food for thought if you ever find yourself embarking on that journey.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10238
Joined: 24 Jan 2006, 21:12

Re: How do spring components fit together

Post by PicassoCT » 17 Apr 2012, 21:59

excellent post - he has been standing guard to the gates of hell for so long, they built a drive-in-schwarma at his rear.
0 x

Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Re: How do spring components fit together

Post by Gnomre » 18 Apr 2012, 00:24

Nice picture find Picasso, but the eyes aren't nearly red enough
0 x

User avatar
hoijui
Former Engine Dev
Posts: 4342
Joined: 22 Sep 2007, 09:51

Re: How do spring components fit together

Post by hoijui » 18 Apr 2012, 06:07

what cheese said, and take hints from others, for example [Dr]WTF and his LSD space shooter relative to music game, where he uses very few, purely procedurally generated "content", which alloed him to do the whole thing in not too much time.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10238
Joined: 24 Jan 2006, 21:12

Re: How do spring components fit together

Post by PicassoCT » 20 Apr 2012, 15:32

Cheesecan wrote:http://scientificninja.com/blog/write-games-not-engines

It's food for thought if you ever find yourself embarking on that journey.
Thinking about this made me realize, that spring is capable of growing- wherever the devs want it to grow towards to. And even outgrow stuff. Like we did with ugly maps.. or ta modell support only..

Really nice blog.
0 x

Post Reply

Return to “General Discussion”