Main Menu

News:

Please be aware of the Forum Rules of Conduct.

Why I did the food/trade system change

Started by Tom, January 28, 2012, 08:40:43 PM

Previous topic - Next topic

Tom

A bit behind-the-scenes into my thoughts:

The old code was a horrible mess, and very buggy. Transporting it to our new code system (Doctrine2) would have worked, but would have been more work than this complete re-write was. In addition, we can now get rid of several very specialized database tables and code fragments and instead re-use things that are already there - the new granaries are just another workshop building.

I am not talking a little bit here. I have literally replaced hundreds of lines of code with maybe a quarter that, and completely eliminated another 500 or so lines of caravan handling. This is a tremendous reduction in potential bugs, and the new code is so much cleaner and easier that when people demanded an overview page for the banker it literally took me 15 minutes to write one.

There will certainly be a few more bumps in the transition, and likely a few bugs here or there, but I can already see the advantages of the new system in the backend code handling, and that alone was worth it.


Perth

"A tale is but half told when only one person tells it." - The Saga of Grettir the Strong
- Current: Kemen (D'hara) - Past: Kerwin (Eston), Kale (Phantaria, Terran, Melodia)

egamma

As banker/trader/lord, I like the new system.

pcw27

How does geographical proximity effect the new trade system?

Tom

Quote from: pcw27 on February 06, 2012, 08:32:13 AM
How does geographical proximity effect the new trade system?

I don't understand the question.