Delphi For PHP Released
Gramie2 writes "Codegear (now a subsidiary of Borland) has just released version 1.0 of Delphi for PHP, a RAD development environment (running on Windows) that produces standard PHP code. It features a large set of built-in components, including ones that use AJAX for database access; and Codegear is encouraging users to develop their own components. The framework, VCL for PHP, is open source, and documentation follows the PHP model. Initial database connectivity is for MySQL and Interbase (Codegear's commercial database that spawned the open-source Firebird), but more are promised."
I for one am welcoming or new component drived rapid development overloads. In an agile way!
Will code for new sig.
Damn Slashvertisements. Who gives a crap?
Finally - Delphi will give PHP the credibility it needs in the corporate world (hahahahahaha)
If you're as confused as I was, it's because the name Delphi can apply to the language Object Pascal, as well as for the IDE used primarily for Object Pascal.
This article is about the IDE being used for PHP, so fans of Pascal syntax have nothing to get excited about.
"A week in the lab saves an hour in the library"
compare:
...
http://video.codegear.com/php/hello/hello.html
and
http://docs.rinet.ru/ActiveVB/f22-3.gif
Why does this IDE remind me of my visual basic 3 days (not to say that there's anything wrong with that). I guess I've been staring at eclipse for too long.
Personally, I think PHP is a pretty horrible way to do web development of any real size. Web apps need to be written in proper code, with MVC, and templates, not as code embedded in individual pages.
However, this might at least this might steer some windows users away from the thing microsoft likes to pretend is reponsible for a TLD ("dot net"), which is worse.
AJAX for database access? WTF? I thought AJAX was between browser and server.
Does this IDE just use the normal PHP interpreter available from http://www.php.net/ or did Borland/CodeGear write their own PHP implementation?
When Borland (then Inprise, then Borland again, then Codegear(?) ) stopped making sober RADs and decided to take a chance on expensive toys for code management, they lost in both fronts. The Turbo Series (Pascal, C and Assembler) and Delphi (the odd versions, 1, 3, 5 and 7) seriously competed against Microsoft products (Microsoft C, Assembler, Visual Series), even outselling them in a lot of places in the world (Brazil, for instance).
.Net would not exist (and consequently, stole Borland's thunder) or the Borland tools would be better even than the Microsoft ones on that fronts (Delphi 8 almost got there, initially). Borland died a sad death, and what we see now is nothing but Post Morten flatulence.
Two things made Borland wreck their scene: 1) losing their creative minds to Microsoft, specially Anders Hejlsberg, creator of nothing less than Turbo Pascal, Delphi and main architect of C#. 2) losing their focus (from useful RADs to expensive but totally good for nothing "Application Lifecycle Management" (whatever it is).
Had kept the focus and the creative minds, either
So I don't know much about history, but I am capable of using Dreamweaver to build web pages that connect to a MySQL database. Is this something worth me looking into?
I'm sorry... Delphi for PHP? Am I the only person who read that and thought "ftw"?
Writing insecure web applications in less time. Thanks Borland! ;-)
Another desperate attempt by Borland/Codegear to appease their dwindling developer community.
Delphi is dead. Nothing to see here. Move along.
Y
With php, code is seperated from the design, templates handling the visuals.
all major software like phpbb et al are like that.
you can make it so that not a single byte of code mingles with template if you wish.
php offers liberty on seperating content with the code. some do not, some do.
Read radical news here
With all due respect , .NET is a great platform for enterprise-level development. PHP, no matter how you flip it or manage it , isn't . Zend is not big enough to develop and patch a platform that can compete with Microsoft's flagship.
Cheers
My Starcraft 2 Blog
Oh let me just google up some info on this new VCL thing I heard about and ... oh my god anthropomorphic wolves and foxes having sex!? Nooooooooooo!
It appears to be the regular PHP, but they've created a library for common controls. (Yes, they made a library for making textboxes and radio buttons. -yawn-) At first I thought it was a php plugin written in C or something, but no... It's just plain PHP. What was wrong with making the controls in HTML like always, I dunno.
I'll admit, I've written a function to take an array and make a dropdown box from it, but Delphi's VCL is going a bit far, I think.
"If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
I am a long time Zend user, and I really like ZDE -- especially because it is cross platform (Linux, OSX, and Windows).
:)
Delphi for PHP looks to be very similar (I read the announcement, but have not tested the app yet), but also has a database browser! This is particularly valuable, and truly DOES speed up development.
I will have to blow the dust of my Windows box, and try this out.
I am open source, and Linux baby!
It's largely based on the qooxdoo javascript library.
Check the demos here and here.
Slashdot anagrams to "Sad Sloth"
If webdevs do something Windows they use ASP (ASP.NET). ASP.NET is already RAD-like, the niche is taken.
If they offer tools for PHP and MySQL target servers run Linux, target developers run Linux, and they are missing again.
I'd love to give it a try, but it requires a login for download, and there's no "Forgot your password?" option.
(And yes, I have a whole bunch of other email addresses I could use. That's not the point.)
... because CodeGear offer this trial on their web site:
"Free, fully functional 1 day trial"
Right, 1 day.
Great.
Ok I'll bite, might have some karma to burn. Isn't Delphi Dead? My first task at the job I have now was to port some Windows Delphi code to linux. At first I thought, no sweat I can use Kylix. In the end I came to the conclusion Delphi is dead on any platform and ended up rewriting it in C. I guess it could still have life for legacy applications, but in this rapid multi-flavored world if a language is 100% stuck on 1 platform/OS it's more or less dead (excluding of course assembly which of course is arch specific).
All well and good, till they kill the product like they did with Kylix...then what, yep you are left holding the bag....thanks, but no thanks..
Got Code?
Funny how just yesterday I was digging through my binders in search of my Delphi discs to code up a quick file management util. I'm eagerly waiting for the trial version of Delphi PHP to finish downloading, but if it's anything like Delphi/BCB I'm going to need more kleenex. Say what you will, but when it comes to rapid prototyping it's about as fast as it gets. There's a certain elegance to ObjectPascal despite its simplicity, and it can do just about anything C++ can, with less headaches. I see it as a middle ground between VB and templatized C++, plus the compiler's crazy fast, perfect for the kind of incremental debugging that comes naturally with prototyping.
If they've managed to accomplish this with PHP/Ajax, we'll be seeing a new breed of web apps, coded not by Java dweebs or Ajax hacks, but by seasoned app designers... a little less flair and CSS shenanigans, and more direct interactivity and usability.
-Billco, Fnarg.com
HTML was wrong because if you write the stuff yourself they had nothing to sell.
Worst part, while I'm not sure if you can ever stop using Delphi for PHP and still be able to further develop your app, or become trapped in both the IDE and the Windows platform.
Got Pike?
A good IDE is worth its weight in gold. It doesn't need helper libraries to make it great.
I think you are right about being trapped in it, though... The VCL, if nothing else, would trap you irrevocably. But then, they're treating it more like an IDE for different language, and being tied to a language is true for any language. Just like Ruby on Rails is treated differently than plain Ruby.
"If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
I installed the trial Delphi for PHP and created an app which prints "Hello World" on the screen.
For a reference, this is how this looks in plain PHP (granted no MVC and so on, but for the sake of example..):
<?php echo "Hello World" ?>
What does Delphi do?
Keep in mind I simplified it so you stay with me. There's also a bunch of other stuff happening, application classes and what not.
And again, this is how it's done in plain PHP:
<?php echo "Hello World" ?>
This Delphi stuff is really promising I tell you. Or, rather, it's supposed to look promising when Borland pitches CodeGear for sale again. Don't forget, CodeGear was spun off so that it's income is more clearly defined, and it's a more lucrative sale. Borland doesn't care of CodeGear has a future, it only wants to make it LOOK as if it has a future, and this project is sadly nothing more than this.
I like Delphi a lot. It takes a lot of the GUI developing stuff out of your hands, etc. But I don't see this same development method working for PHP.
Simply because they use the same "application" aproach that Delphi had. But PHP, or at least webapplications, are not really persistent. Every time you need to save and restore your application session, and for good performance you want to keep this as minimal as possible. When everytime the "program" has to do something you need to restore the "application" it put some heavy load on the webserver/app in total. Also, unlike popular believe, PHP is not about presentation, while Delphi is quite a lot about presentation. Positioning elements on your form/webpage is something you do through HTML/CSS.
Delphi for PHP is sort of a competitor to Dreamweaver. And on the programming side I think Delphi for PHP is much better, but the design part if probably worse. Also, no serious PHP programmer uses Dreamweaver to develop PHP applications. I don't think Delphi for PHP will ever be a way to create RIAs. I think they would have a better chance when they made a Delphi for Flash/* (where * is a server side thingy like ASP/PHP/Perl/...). At least Flash features a more Delphi like environment, and Flash could seriously use a better interface for "application" development.
Is this a misprint? Are they kidding?
s ions/Delphi/DelphiforPHP/tabid/250/Default.aspx
http://www.codegear.com/Downloads/TrialandFreeVer
I think this is pretty interesting. I'm running Delphi 7 Enterprise at my office... downgraded from 2005 because it sucked all kinds of ass. I recommend Delphi to anyone who wants an easy RAD that is powerful as well. Delphibasics.co.uk is a good place to get your language basics out of the way.
"To work for libertarianism -- to oppose the growth of government and aid the liberation of the individual -- used to be
That's not true. The IDE Product is commercial, the VCL for PHP library is open source (to be hosted on Sourceforge, should be there any day now). YOu aren't trapped. You can go back to VIM at any time. Warren
You probably already know this then, but eclipse can be used to develop php as well:
PHPeclipse User Manual
Please mod me down as an old fashioned technology-phobic luddite .....
:!! out to a shellscript that generates a template given a table name. Its not rocket science.
.. its just a few javascript functions and a bit of PHP on the receiving end. You should be able to code that in your lunch break.
But I read TFA, and viewed the demo vid, and I cringed.
Maybe Im getting old, but Im perfectly content writing my PHP code in vim, and trusting that my template/rendering classes that I rely on will automatically look after the 'drawing of the screens' part of the application, in an efficient manner.
Im happy just writing code that twiddles attributes, performs calculations, and calls SQL. The only 'visualisation' that happens during coding time happens in my head. If you need to pull in the description of an SQL table at coding time - just
The mental state of mind that you need to be immersed in whilst coding is very different to the state you need to be in when testing, or viewing the result from an aesthetic POV. Coding belongs in a text editor, and anything else is a distraction.
Even Ajax - Im perfectly content coding that longhand. Its only a few pitiful javascript functions after all, and I dont see the need to wrap them in a framework. Lets not go around pretending that because we are using AJAX, that we are super-coders on the cutting edge of technology
OK, so my vim/PHP environment might put me back in the dark prehistoric stone ages, but at least I can sleep well at night knowing that none of my webby code is dependent on the fate of a 3rd party commercial product. After all - thats the main reason I use FOSS in the first place. The whole world wide economy can collapse in a radioactive heap tomorrow, and it wont affect my development at all.
And surely to goodness, isnt vanilla PHP with the standard libraries already way high level enough ? What sort of sheer sloth and laziness leads one to think that they need to front-end PHP with something even higher level ? Are we evolving into a race of Jabba-the-hut's, or what ?
Anyone that commits the blasphemy of 'developing an application' using mostly mouse-clicks honestly needs to be placed into a jar of isopropyl alcohol, and donated to medical science - it is just plain wrong, and always has been.
I tend to take the machine's side of the argument anyway - the less code the machine has to munch through in order to come up with any given result, the happier I am. The end result is just pixels on a screen when you think about it, and a lot of frameworks just add more and more layers of code munching for the machine to produce those same pixels and same behaviour. Silly - just keep it light, simple, scalable and avoid dependencies on proprietary products.
Whats so hard about that ?
Interesting to read all the bwahaha's in reply to the article. It's true that Borland completely screwed the pooch with it's business strategy. It's also true that Borland had a better approach to tools than Microsoft ever did, at least until the 'bidness' types took over.
.net (interpreted bloat), MFC (useful like a box of hammers), or straight WIN32 (is a box of hammers). You've always been at the mercy of the MS market positioning with MS tools. But hey, at least it's a somewhat effective lifetime employment strategy for folks who like to program with hammers.
Laugh all you want - but in the Microsoft world your choices are
It looks like a LOT of the people posting here could use some help.
Delphi = an IDE
Delphi = also a language derived from Object Pascal.
Kylix = delphi for linux (yes the IDE and the language)
Delphi for PHP = a RAD tool/IDE for PHP
So to all the ones saying "OMG LOLZ DELPHI IS DEAD MOVE ALONG" well, this is an IDE.
To all the ones saying "they'll kill it just like they killed kylix" well, this is an IDE
To all the ones saying "insecure/shitty code faster" --> thanks for sharing your shallow analysis, please continue watching american idol
thanks.
this is an IDE ppl, an IDE. It does happen to have the tedious VCL concept, but geez, it's just a tool, don't worry you won't have to learn scary BEGIN/END keywords to replace { and }, it will be fine, I promise it won't hurt.
I think Borland should have written a GUI-over-HTTP browser using Delphi. Instead of an HTML browser, it would use a GUI-oriented protocol/language that had real GUI features instead of the clunky HTML+DOM. The server-side code would then control the GUI using some kind of XML language. That way it wouldn't matter what server-like language you used. (It would target mostly intranets, not public internet apps.)
Borland wouldn't make money off the browser itself, but rather those who buy Delphi to customize the GUI-browser for their own needs. It is sort like a modifiable Flash-forms engine.
The intranet market is clamoring for real GUI's that don't need software explicitly installed on the desktop (at least not for each app).
Table-ized A.I.
Who the hell modded me Flamebait ? .NET, and I live in Israel and am actually familiar with Zend. .NET . No , PHP isn't.
This is an opinion of a person that actually wrote in PHP and
Yes, Java is an alternative to
Only on slashdot you can find Anti-MS kids running WinXP modding comments about technologies they dont understand.
My Starcraft 2 Blog
This thread brings up the usual "Delphi is dead" or "well, that about does it for Delphi" type comments. As I posted before, Delphi developers have been hearing that for almost a decade. The very fact that it's not dead should tell you something.
.NET stuff has been about as unsuccessful, again because the people doing those things already have a way they want to do it. And when these products don't have a big market, they get neglected. And when they are neglected, even those who would have tried to use them are turned off by the crappy quality. So they wither and die, while the read Delphi remains. Even with all this waste effort dragging the company down, Delphi remains.
The thing about Delphi is that it has ALWAYS been a niche product. Ever since MS started really pushing their coding tools and the other code tool creators started dropping, Delphi has been stuck in a box. But the very fact that it HAS still survived should show you that there's a reason. It is a damn good language and solves business problems in ways that can be FAR superior to anything MS has put out. It's just generally a less painful process.
However, pretty much everything else that Borland has done has failed because there is no nice for it. C++ Builder had some success, but the people going that route were already firmly entrenched in MS or open source products. The same is true for their Java IDE. Then they tried getting into linux with Kylix and Qt stuff. Again, no market. Their C# and
Sadly, it appears CodeGear is going to follow in their footsteps. I give the Delphi for PHP thing a year before they stop updating it. Then another year or two before they drop it altogether. Yet again, it's a product without a market.
Thing is, I don't see why I'd want to leave Vim in the first place.
I downloaded the ONE DAY trial (Ahem!), but couldn't get any sample apps to deploy because my web host is only running PHP version 4.4.4.
How much does an IDE weigh and where can I exchange it for some bullion?
I hate printers.
Agreed... of course, software doesn't really weigh anything.
It's not wasting time, I'm educating myself.
First of all: All Delphi bashers please shut up. We know Delphi and the IDE concepts it represents are 15 years old but nevertheless it is a neat tool. Some of the best developers I know still like to use it. And if you don't remember the time when Borland jBuilder and it's other IDEs where like 10 years ahead of the rest then you're not qualified to rant. End of story. Thank you.
:-)
On Delphi for PHP:
I watched the Screencasts (by some indish guy with a heavy accent). The features are cool and developing stuff goes really snappy. I liked the Ajax components shown.
Then again it has downsides:
a) Windows only.
b) No integrated debugger - the other notable Windows-only PHP Tool 'NuSpere PHPEd' has a fully integrated webserver with a preinstalled runtime and callstack debugger + profiler. It's tough to beat that.
What I kind of liked:
I like the integrated Interbase/Firebird stuff - out-of the box views and stuff inside an integrated DB admin UI. Sadly without a grafical ERD interface. I also like the visual form layout tool. Allthough my designer would probably kill me if I'd use it in a project.
For me it boils down to this: While I - amongst other PLs - do PHP for a living and thus have no trouble spending 300$ or more on a productivity tool that does it's job better and faster than EasyEclipse, the stuff they offer just isn't good enough.
I want Zope with intergrated full-blow Ajax (YUI or something) and a web based developement interface with quasi-grafic ERD, View and Object assembly. All in PHP so it runs on the most shoddy webspace available. With the looks of the Joomla Backend, so my eyes don't bleed after 5 minutes. With a Java of Flash client if needed.
The sad thing I have to tell Borland and Nusphere is that all this will probably be finished by the OSS community even before they port their tools to Linux and OS X. We've got Symfony, CakePHP, Prado, Yahoos YUI, and ten bazillion other PHP and Ajax kits, not to mention the hysteric Rails crowd. Plus the Zope and Django people. We've got KDevelop and Eclipse and Netbeans and Anjuta and Erics Python IDE and Whatnot competing over who's got the larges dick and when MySQL AB finally get's their shit together we'll have MySQL Workbench for free which will give MySQL 5 yet another big push forward and scare the living wee-wee out of Oracle and Co. .
The world simply is moving to fast for me to just buy an IDE that forces me back on to the plattform I hate on a hunch. Mix Delphi for PHP and NuSpere PHPEd and add a visual case tool. Then I'll consider spending 300$ and installing Win2k again. Until then I'll stick with EasyEclipse for PHP on OS X. Even though it's a slowpoke at times.
My 2 cents.
We suffer more in our imagination than in reality. - Seneca
Shhhhhh... It sounds better if they don't think about that ;)
"If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
If you are using Delphi to build ActiveX controls out of VCL controls, you get these stupid [Warning] TF32Ax_TLB.pas(2390): Method 'InitiateAction' hides virtual method of base type 'TControl' messages that I never figures off how to suppress. You really should be able to get clean compiles, either by fixing the problem or using the appropriate suppression flag if you want to accept the warned condition because compile cluttered with warnings you ignore can have you overlook something that really is a warning.
By the way, if you are still using Delphi 6, there was some kind of service pack to it a while ago that fixed a memory leak with Variant arrays or some such thing -- one really shouldn't use an out-of-the-box Delphi 6 unless it has been patched for this.
I program PHP on a Windows client (In Dreamweaver) & send it up to Linux servers. As a long-time Delphi programmer this is absolutely what I want installed on my Windows PC.
What are you listening to? (http://megamanic.blogetery.com/)
Absolutely agree with parent.
.Net takes the same path, and has not been booming, except inside all-ms shops.
Lots of people nowadays will be happy to tell you how there are 100 (free) MVC php frameworks and templating systems out there that allow "proper" enterprise web app coding instead of the ugly db-logic-presentation mixup that php developers enjoyed yesteryear.
The fact is that much of that framework craze is pure hype. And the java web development crowd should testify to that: how many frameworks du-jour have seen the ligth to be abandoned a couple of months / years later? JSF, javabeans, portlets, you name it.
All the while quick-n-dirty php conquered the web.
IMHO the main error is trying to abstract too much out of the HTTP(+HTML+CSS) model: OOP guys love to pretend they're coding inside a GUI app, and let the magical framework do the translation for them. Then one day they wake up and the realize that either: for drawing one html page that framework issues 1000 ajax calls - bad for scalability, customer gets real pissed, project canned, or: that shiny new css property that would allow page design to be 100% perfect is not part of the framework, sorry dude, or: no way to update only part of your web page via ajax without completely breaking the framework - it's his job to compose the page, after all, or: the html the framework spits is not firefox compliant, etc...
Keep It Simple folks!
php is dead easy for the web because it follows spot-on the web model. One html page = one php script. GET, POST, COOKIES always accessible within your app. Stick as little data into the session as you can. Let the VM clean up at the end of every single request all junk the programmer allocated. etc...
AFAIK, delphi for delphi had this kind of design-with-a-gui-we-translate-to-html power years ago, and I've never seen a single web app deployed like that.
Plus, people that do not know coding use flash already. Little value added in switching.
Your example is presentation. Its not mixing anything. Doing it the way you show happens to be longer and harder to read than doing it in a sane way, but its not violating any seperation of concerns. You shouldn't be worrying about what some CS grad would think, most of them are just as ignorant as you. Instead you should be worrying about trying to learn as much as you can to improve your own ability to write secure, reliable and maintainable code.
I'll take it a step further. Borland/Inprise/whatever is such a bad company that I'd never knowingly start a serious
.Net would not exist (and consequently, stole Borland's thunder) or the
project that depends upon them or their products in any way.
Never *ever* again.
When Borland (then Inprise, then Borland again, then Codegear(?) ) stopped making sober RADs and decided to take a chance
on expensive toys for code management, they lost in both fronts. The Turbo Series (Pascal, C and Assembler) and Delphi
(the odd versions, 1, 3, 5 and 7) seriously competed against Microsoft products (Microsoft C, Assembler, Visual
Series), even outselling them in a lot of places in the world (Brazil, for instance).
Two things made Borland wreck their scene: 1) losing their creative minds to Microsoft, specially Anders Hejlsberg
[wikipedia.org], creator of nothing less than Turbo Pascal, Delphi and main architect of C#. 2) losing their focus (from
useful RADs to expensive but totally good for nothing "Application Lifecycle Management" (whatever it is).
Had kept the focus and the creative minds, either
Borland tools would be better even than the Microsoft ones on that fronts (Delphi 8 almost got there, initially).
Borland died a sad death, and what we see now is nothing but Post Morten flatulence.
ozgur uksal
http://www.adobe.com/
Codegear are not that bad ! They have changed their name !
That is a step forward. True, the same senior managers are there, but they are sacking CEOs frequently now ( they change them every 3 months now ) so that is improvement.
I expect dramatic improvement ( or bankruptcy. whichever comes first ) in a few years.
And their prices are getting better. They are only a couple of times as expensive as the microsoft products.
And they are improving the stability of their products. True, the documentation still is a menstrual rag, but heck, it will get better too. Just give them a few years.