LOGIN
User Name
Password
Remember me


Register...Forgot password?
Main menu
Leagues
Gonzaga
Blue Max
Cartagena
Wooden Ships...
King Me!
VampiRing
Forum Message
Previous messagePost a replyNext message

City:Milano IT
Personal Data:Male, born: March 28 1964
HomePage or other cool site:http://www.youplay.it
Membership22years 249days ago.
Last Login16years 34days ago.
Last Move18years 236days ago.
FourthApache is currently Offline!Send a mail to FourthApache


Message header
Area/Game:Cartagena
Topic:Program code error
Subject:Re: SERIOUSLY guys are you ever going to fix the league bug
Posted by: FourthApache - 19years 15days ago.
Message text
cassio wrote:
why doesn't it work without the transactions? When leagues were starting Cartagena worked properly until suddenly it stopped.

I have to be a bit technical to explain this, so anyone who is not interested in technicalities can stop reading here

Last summer we changed the site code a lot.
This was made to improve response time (mainly), and to shift the coding mode from procedural programming to object oriented programming.

For example we used to have several include files sharing global variables and procedures. Sure it worked, but was really hard to keep the site working when we were changing something.
When we started to code the site, we had absolutely no idea that YouPlayIt was going to grow this way, so we started from some spare code we already wrote for other projects and put in it a lot of new spaghetti-code, just to have something running fast (I know, it's a shame, but we already had a lot of time to regret it ).

Our efforts to insulate code started from the interface. There were 2 includes for header and footer, and another one for the procedures. The user handling was scattered in several modules too, and there was a module to send mail, and another one to show the user related data. Another include was used for declaring global variables.

After the last restyling we now have a SiteInterface class for every page, and we can add different CSS or Javascript to a single page simply using the proper method.
Every users is handled in a proper User class, that now include the send mail and the ShowData method.
The SiteInterface encapsulates a User class used to save the currently logged user data, and the global variables are almost gone.

It was a big programming effort, and we had to touch every page in the site to implement these new classes.

Everything worked flawlessly, but Cartagena. There was no insulation at all in the Cartagena Move code, and this impacted very bad with the new implementations. One of the reason was that the the new OO code was implemented easily inside leagues, but was really hard to put it in the old Cartagena Move module.
We did several patches, but in the end the best way to fix everything was to rewrite the move code in a proper way.

At the beginning of this year Cartagena already had a complete restyling for the ShowGame code, that was written using an object oriented approach: there is a Game object, containing a map object, several Subscribers object and everyone of them implements a User object.

That was the right time to join the last written implementation with the already written one, and this is what I started to do.

Then the problems began. Not programming problems, but personal problems, that kept me away from the site since now.

In the meantime Nick was doing a great job working to several improvement for Blue Max and WS&IM. Some of them were released, but other were not because he suddendly too had a lot of real life work to do.

That's all. I'm back now, at least until the next real life tidal wave .
I have not the time I'd like to, yet, but Nick asked to our friend avallega to help us, and we both were really happy when he accepted to do it .

it is easier to be patient if there are some news how the status is.

Message received.
Currently the new move code is written, but is in an alpha state. There are several bugs to squash, and I'm working on it.
Excuse me if I prefer not to talk about a release date but, as I always say, this is only an hobby, and the time we can spend on it depends by too many factors.

Bye
Fourth

Back to the messages list
Messages thread
Posting elapsed timePosted bySubject

19years 18days flying_neko Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
19years 18days Zif Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
19years 18days flying_neko Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
 19years 17days Zif Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
  19years 17days flying_neko Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
   19years 16days Zif Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
19years 18days darken Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
19years 18days FourthApache Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
 19years 18days Bombadil Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
 19years 18days pokerguy Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
   19years 18days Zif Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
   19years 18days flying_neko Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
 19years 15days cassio Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
  19years 15days FourthApache Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
   19years 15days ksnake Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
   19years 14days cassio Re: [CA][BUG] SERIOUSLY guys are you ever going to fix the league bug
Next thread
Posting elapsed timePosted bySubject

19years 14days Angiolillo [BM][OT] Models to play Blue Max and Wings of War
Previous thread
Posting elapsed timePosted bySubject

19years 21days BazJP [BM][SYS] League 536
19years 18days TrevorWigwam Re: [BM][SYS] League 536
19years 18days BazJP Re: [BM][SYS] League 536
 19years 18days Lord_Biclopse Re: [BM][SYS] League 536
  19years 16days Yrrah Re: [BM][SYS] League 536
19years 16days FourthApache Re: [BM][SYS] League 536
 19years 15days BazJP Re: [BM][SYS] League 536
 19years 14days Bombadil Re: [BM][SYS] League 536
Page generated in: 23.82813 milliseconds.