Re: PHP-GTK2 or Delphi ??
| From: | Łukasz Wojciechowski | Date: | Wed, 03 Aug 2005 07:14:39 +0000 |
| Subject: | Re: PHP-GTK2 or Delphi ?? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6128@lists.php.net to get a copy of this message | ||
Benjamin Smith napisał(a):
Doing a full rewrite can be very *painful*. Much as I love PHP-GTK, I wouldn't recommend a re-write unless what you have is *TERRIBLE* or *DOOMED* by some impending event. Some food for thought recommend: http://www.joelonsoftware.com/articles/fog0000000069.html (Hint: It's titled "Things You Should Never Do, Part I") I read this article - it is very interesting.I think that full rewrite is needed here because old system was written 4 years ago and since then it was regulary improved with new features which never be tested enough. There is no such thing as "Design patterns" in this code. All layers are mixed up. Database structure is badly designed what needs workarounds and that workarounds causes bugs, dedlocks. There are no such thing like error handling, database abstraction, object=>db mapping, logging, permission system, security, "nothing"... Only few peoples which work on this system from beginning know its specific bugs and know how to avoid them. My boss dont have time to test and make some bugfixes to current version. So... I supposed to be project architect, manager and producer. I have some experience with design patterns, layering apps, uml modelling - all aspects which I think they allow me to start this project - I will probably need help but this is not a problem. All my experience in making modelled/planned, solid code - are derived from PHP programming. From my future carrier point teaching of Delphi is very godd thing/experience that probably will makes me a better than now programmer - this is OK. But in this new project as i think in all projects - production time is very important - it should be as short as possible. With my zero knowledge of Delphi I afraid this time will be much longer. And finally... I think that I can produce good system using PHP5(as a core) and all of its new OOP features. Then PHP-GTK2 as a UI layer. My question is again... Is PHP5 and PHP-GTK2 ready for professional systems ?? (I have stable versions on mind which i hope will be released soon) Im think YES :)
PS: Note to self: If/when I do a rewrite of our flagship product, I'll use SQLite instead of multi-dimensional memory arrays! Sqlite - hummmI developed lately a program in PHP-GTK which parses and bookes customers payments and I used Sqlite as a DB. Main table is "operation" which now has over 5000 records - day by day about 100 records are added to this table and my program is slowing down constantly :(. Maybe Sqlite3 is faster but I cant make it work with php-gtk - this is caused because php4-sqlite extension supports only Sqlite version 2 - so i believe Sqlite3 cant run with php-gtk. If Im wrong - please tell me :) -- greetings sorry for bad english Łukasz Wojciechowski