Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Delphi For PHP Released

Posted by kdawson on Wed Mar 28, 2007 06:42 AM
from the accelerator dept.
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."
+ -
story

Related Stories

[+] Firebird 2.0 Final Released 158 comments
Samyem Tuladhar writes "After 2 years in development, the Firebird Project today officially releases the much-anticipated version 2.0 of its open source Firebird relational database software during the opening session of the fourth international Firebird Conference in Prague, Czech Republic."
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Disambiguation (Score:5, Informative)

    by Zouden (232738) on Wednesday March 28 2007, @06:57AM (#18513527)
    If you're as confused as I was, it's because the name Delphi can apply to the language Object Pascal [wikipedia.org], as well as for the IDE [wikipedia.org] 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.
    • Oh I was confused back in the day. I was using borland pascal, pascal for windows, in addition to c++. They send me a marketing flyer for delphi hyped up as a new and unique language and offering me an upgrade of one of my current products, no mention whatsoever that it was pascal on it. I threw it away cause I had no idea it was pascal...later I figured it out (Their sales told me no new pascal would be offered but they had a new delphi product that replaced it)...by then I had moved on to c++ as the on
      • 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.
        • Re: (Score:3, Informative)

          It's largely based on the qooxdoo javascript library.

          Check the demos here [qooxdoo.org] and here [qooxdoo.org].

          • Re: (Score:3, Informative)

            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.
  • by vivaoporto (1064484) on Wednesday March 28 2007, @07:04AM (#18513581) Homepage
    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 .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.
    • I agree your first point,but if you cant hang on to your top people then serves you right. What really killed Borland though was their pricing structure with their no updates, everything is fixed in the next release which you pay nearly full whack for and IBM releasing Eclipse which was intended to destroy Borlands main revenue source in the emerging J2EE market at the time.
    • by pdawson (89236) on Wednesday March 28 2007, @07:40AM (#18513843)
      They sorta realized this. CodeGear is all the development apps (Delphi, C++, C#, Java, etc.) spun out to a new company. Borland is still around, and they're keeping the code management crap for themselves.
    • Had kept the focus and the creative minds, either .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).

            Which is why Microsoft did what they did. They have always done this to their competition, just add it to the long list.

        rd
    • by osgeek (239988) on Wednesday March 28 2007, @09:59AM (#18515569) Homepage
      I'll take it a step further. Borland/Inprise/whatever is such a fucked up piece of shit company that I'd never knowingly start a serious project that depends upon them or their products in any way.

      My team has suffered from blistering crotch fires of agony trying to cope with C++ Builder's (5 & 6) linker woes. Rather than spending our valuable development time on important-for-our-customers product development issues, the very existence of our company became reliant upon working around our inability to even link our growing application.

      It was a horrible mess, and one that Borland was useless in helping us to resolve because they were off working on new products that never saw the light of day.

      Never *ever* again.
      • Re: (Score:3, Insightful)

        ...blistering crotch fires of agony...

        Thank you, that's one to file away in the "useful phrases" department. I like it.
  • Oh, great (Score:3, Insightful)

    by Corporate Troll (537873) on Wednesday March 28 2007, @07:10AM (#18513625) Homepage Journal

    Writing insecure web applications in less time. Thanks Borland! ;-)

    • What the heck?

      So, your last knowledge of php was about version 3.0 ? And then you just skipped it and you still get the right to make these comments?
      The alternatives to php are not any more secure than the current version, sorry about that.
  • by Yuioup (452151) on Wednesday March 28 2007, @07:10AM (#18513629)
    Another desperate attempt by Borland/Codegear to appease their dwindling developer community.

    Delphi is dead. Nothing to see here. Move along.

    Y
    • Re: (Score:3, Informative)

      no, no, it's resting.

      now serious: delphi is still the best tool for developing win32 apps and it is still widely used in europe.
  • 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.
    • Actually I think you'd be surprised how much PHP development is done within Windows and later pushed to a Linux server. In fact, where I work (federal government), PHP development and deployment is done exclusively on Windows. So I don't think this product is off-base. Besides, I'm thinking the Windows crowd is more inclined to purchase an IDE than the Linux folks.
  • by suv4x4 (956391) on Wednesday March 28 2007, @08:19AM (#18514203)
    ... because CodeGear offer this trial on their web site:

    "Free, fully functional 1 day trial"

    Right, 1 day.
    Great.
    • As one of the CodeGear people explained, it was intended to be part of some kind of 1-day on-line seminar. The seminar had to be cancelled, but they decided to make the demo available. They realize that a single day is "sub-optimal".
      • Re: (Score:3, Informative)

        As one of the CodeGear people explained, it was intended to be part of some kind of 1-day on-line seminar. The seminar had to be cancelled, but they decided to make the demo available. They realize that a single day is "sub-optimal".

        PR is hard. Basically if the CEO's About page needs a photo but lacks one, which do you think is the better option, PR-wise:

        1. Use the only photo of the CEO available, where he has his pants down.

        2. Wait a bit and make/provide a better photo.

        Unless they plan to assign a CodeGear
    • This is why microsoft/vmware provide free virtual machine software.

      I use Microsoft VPC with a Win2k image. Install SVN and connect to a repository on the network, set up a startup script to set the time system date to Jan 1st then save and backup the VHD. Adjust the settings file to disable time syncing. When you want to evaluate software, copy (or inherit from) the image. Turn on 'undo disks' and you have the option to discard all changes made during the run.

      I call the image 'Groundhog day'.
      • This is why microsoft/vmware provide free virtual machine software.

        That's like me ranting "BluRay's DRM sucks" and you telling me "this is why hackers provide hacks".

        It doesn't make Sony/Toshiba any better for feeding us rogue DRM. Of course I installed it on VMWare, otherwise...

  • 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..
  • Your app on Delphi (Score:3, Interesting)

    by suv4x4 (956391) on Wednesday March 28 2007, @09:05AM (#18514801)
    This is your app on Delphi (TM):

    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..):

    &lt?php echo "Hello World" ?>

    What does Delphi do?

    1. Loads several thousand lines VCL code
    2. Loads all the menu, form, container and "external" controls, although they're not used (thousands of lines of code)
    3. The Hello World is a label (no simpler way) which has around 50 properties (color, bg color and what not) defined in an XML file. I left all at defaults, but never mind. The file is loaded, parsed.
    4. The Label class inherits from CustomLabel, which inherits from Components which inherits from other stuff I didn't even bother check, it goes through all properties, and figures out after a lot of thinking that it should print the words "Hello World".


    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:

    &lt?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.
    • Re: (Score:3, Insightful)

      Well, this is what happens when you use an authoring package of any kind. It's a pretty much unavoidable consequence of using a tool to do a job for which it was not designed. That's the difference between a calligrapher and an idiot with a stencil.

      It's obvious when a web page was made using Dreamweaver, because you'll get things like <font> tags around spaces and sometimes nested <font> tags rather than declaring the colour, size and typeface in one {or, preferably, doing it properly with
  • 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
  • mod me 'luddite' (Score:5, Insightful)

    by steveoc (2661) on Wednesday March 28 2007, @09:47AM (#18515399)
    Please mod me down as an old fashioned technology-phobic luddite .....

    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 :!! out to a shellscript that generates a template given a table name. Its not rocket science.

    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 .. 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.

    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 ?
    • They're referring to dynamically updating forms, such as when you have two combo boxes, select something in one, and the options change in another, or when you enter a search filter, and the table of found records updates without reloading the entire page.
    • by Gramie2 (411713) on Wednesday March 28 2007, @07:25AM (#18513717)
      I guess I could have been clearer. Controls on the page can be linked to datasets on the server. The mechanism is AJAX from the browser to the server; then the server deals with the database; and a return to the browser. But all you have to do is define a dataset, and set properties on the control (list box, table, etc.) to point to the dataset.
    • Re: (Score:3, Insightful)

      by Anonymous Coward
      >> Web apps need to be written in proper code, with MVC, and templates, not as code embedded in individual pages.

      What, you mean like every developer worth their wage in PHP has been doing for the last x years?

      Do try and keep up...
    • 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.
    • Your way of thinking is outdated. There are many frameworks that facilitate proper MVC, templating, and a separation of duties. Check out CodeIgniter [codeigniter.com], CakePHP [cakephp.org], and symfony [symfony-project.com], three of the most popular frameworks for PHP. Development techniques and approaches in PHP have changed significantly in the last few years.
      • Re: (Score:3, Insightful)

        What I like about PHP is that it's flexible enough to do either kind of programming. Being an ASP.Net programmer, I sometimes wish it were just easier to mix the code and presentation when making a quick page. On large projects, it's good not to mix the two, but sometimes throwing together a simple page is easier if you can mix code and presentation.
      • Also check out Prado [xisc.com] for a component-oriented framework along the lines of JSF or ASP.NET (its design seems to be inspired more by the latter). I deeply loathe PHP, but Prado does look very nice.
    • by tolan-b (230077) on Wednesday March 28 2007, @07:20AM (#18513683)
      The embedding code in HTML part of PHP is fairly legacy really for anyone doing anything more complex than basic scripts. Any decent larger PHP app will only use that method as part of a templating/view layer (as long as there's no business logic involved it's a useful templating tool), if at all.

      Our CMS is MVC (command and controller j2ee pattern specifically), using PHP's embedding in the views only, is fully OO and has an O/RM layer for datastore access. This kind of set-up is increasingly common in PHP now. Just look at the number of application and database frameworks available for it.

      Of course there are always going to be kids knocking out horrible scripts, but that doesn't mean there aren't people doing things properly too.
    • by sherriw (794536) on Wednesday March 28 2007, @07:21AM (#18513687)
      "Web apps need to be written in proper code, with MVC, and templates, not as code embedded in individual pages."

      No kidding? Have you ever seen a quality application written in PHP- it can do all these things and more. I've written many quality PHP applications that use a modified MVC architecture and has all the PHP code separate from the output templates. On top of that it uses OO where it makes sense to do so, it's fast and secure.

      It helps to know what you're talking about before you spout off. Just because lots of people build rickety shacks out of stone, doesn't mean you can't build a solid castle out of it too.

      It's this kind of generalization that pisses me off. It's not the language, it's your crappy skills.
      • Re: (Score:3, Insightful)

        Anyone can make a language or framework insecure. PHP just makes it easier than most.

        Are you subscribed to the Secunia security mailing list? A good 1/3 - 1/2 of them are flaws in PHP applications with widespread installation bases. That says something about the language, whether it is the language itself or the prominent users of the language, but I suspect it is a combination of both.
        • Re: (Score:3, Insightful)

          Are you subscribed to the Secunia security mailing list? A good 1/3 - 1/2 of them are flaws in PHP applications with widespread installation bases. That says something about the language

          That it's easy enough to learn that complete idiots can write crappy code in it? A bad programmer will write bad code in any language that you put in front of them. PHP just happens to be one of the few languages that's simple enough that the aforementioned idiots can write code that works (for varying definitions of "works

      • by suv4x4 (956391) on Wednesday March 28 2007, @08:14AM (#18514143)
        No kidding? Have you ever seen a quality application written in PHP- it can do all these things and more. I've written many quality PHP applications that use a modified MVC architecture and has all the PHP code separate from the output templates.On top of that it uses OO where it makes sense to do so, it's fast and secure.

        As a PHP developer, I agree with everything you said, except "fast", unless:

        1. we ignore the speed of all the other platforms out there (python, perl, .net, java).

        2. your requirements of "fast" are modest.

        Truth is with more complex architectures and lots of OOP, PHP is really slow, even bytecode caching helps only so much.

        PHP shines speed-wise exactly with the kind of "html-and-php-code" soup most pro developers despise. When Yahoo claim they use PHP, they in fact use it as a templating language in exactly this kind of "soup", their actual backend is C and Java.

        This is why I'm really surprised at what CodeGear is trying to pull off here. As a developer of an in-house component based template engine myself, I know how painfully slow PHP becomes when you try to abstract some of your logic away in classes and so on. Various "PHP OOP" efforts like Zend's own framework or EZ Components prove my point as well.

        Delphi's visual approach with VLC is just a huge bunch of abstraction. I can only imagine the kind of speed these PHP apps will have.. In fact you can pretty much say this effort is doomed from the very moment "PHP" got involved.
      • No kidding? Have you ever seen a quality application written in PHP- it can do all these things and more. I've written many quality PHP applications that use a modified MVC architecture and has all the PHP code separate from the output templates. On top of that it uses OO where it makes sense to do so, it's fast and secure.

        The point is that there is nothing specific to PHP that facilitates this approach, and a lot (such as its template syntax) which distracts from it. If you're going the OO/MVC route, why

    • Re: (Score:2, Insightful)

      If this year was 2000 then I would agree with you. PHP has quite a few MVC frameworks that have been around for some time and are fairly extensively used in enterprise environments. If you know any developers embedding their PHP in the HTML in large apps please ask them to stop.

      Here is a small example of a few MVCs out there.
      CakePHP - http://www.cakephp.org/ [cakephp.org]
      Symfony - http://www.symfony-project.com/ [symfony-project.com]
      Zend Framework - http://framework.zend.com/ [zend.com]
      • Re: (Score:3, Interesting)

        by Anonymous Coward
        With all due respect , .NET is a great platform for enterprise-level development.

        Hardly. .NET doesn't run worth shit on my company's Solaris and HP-UX systems. Yes, we're talking about real enterprise systems here. Some Intel box running Windows 2003 Server and .NET does not constitute actual enterprise development. Real enterprise work is done on UNIX systems like Solaris, HP-UX, and AiX.

        .NET and Java just can't offer the execution speed necessary for really large-scale enterprise apps. That's why we stil
        • Re: (Score:2, Insightful)

          but the problems with speed are down to the coding faults people make because they have not a clue how java really works (not a clue about .net - never worked with it). OC you may say that because java folk is an uneducated lot then it is irrelevant whether java code can be fast or not - dead weight of java coder will kill the speed anyway. //
    • Re: (Score:2, Funny)

      I'm sorry... Delphi for PHP? Am I the only person who read that and thought "ftw"?


      No, I was in fact thinking the exact reverse.

      Although it's still strange, this thinking in terms of TLA's.
    • Hmm, you know, I am making a decent living using delphi. Is delphi dead? Pretty much, but since windows does occupy a vast majority of pc's out there (fact, not fiction), I will have to disagree with your concept that any language that is not multi-platform as dead. Maybe one day when linux becomes more user friendly, and people stop screaming "look at the source" as a replacement for documentation and simple to use interfaces, maybe your statement might be true. There are far too many idiots in the wor
    • Re:Delphi Dead? (Score:4, Insightful)

      by Ronin Developer (67677) on Wednesday March 28 2007, @09:30AM (#18515121)
      Is Delphi Dead?

      First, you have to define what you mean by Delphi. I code using Delphi 5 & 7 (i.e. Delphi's flavor IDE and Object Pascal) every day. With the number of controls available and the knowledge of being able to create my own visual and non-visual controls, this tool allows the company I work for to remain well ahead of our competitors by at least a year ( they copy our features ).

      However, Delphi is no longer just the language - it is now a family of IDEs for many different programming languages that have adopted the same advanced IDE and concepts of the original Delphi product.

      Is Delphi dead? Well, try to find competent Delphi developers and you'd be suprised. It's probably easier to find older Delphi developers who know the environment very well than to find younger developers versed in it. If you need a Delphi developer, be prepared to pay them well as they are a rare commidity indeed. And, like any developer for any tool/language, their quality and skills vary.

      Has Borland/CodeGear blown it? Perhaps. The definitely pissed me off when they raised the price of their tools well out reach of the small developer. They did that when Phillip Kahn built that palace in Scottsdale. Then, they moved to this application lifestyle BS and, essentially, abandoned their core customers. WTF were they thinking? Then, they blew it with Kylix - they didn't fully develop it and keep the costs down to make it easy to adopt. Then, they dropped it like a hot potato. I haven't upgraded my products since then - I certainly wouldn't be able to afford them (the Enterprise and Architect versions) on my own.

      Is $249 or $299 too much to pay for Delphi for PHP? Maybe. They will have to show the community that it's worth spending the big bugs over some other IDEs (free and commercial). Will I play with Delphi for PHP? Probably - if they make a trial version that isn't limited (like the Turbo Explorer products are) and actually be able to create my own components and such. And, it sure as hell better be able to talk to Firebird, MySQL and Oracle and not just Interbase - Yes, I like Firebird.

      So, is Delphi dead? Let's say that I am retraining myself for C++, C# and probably Java development in the event that I need to change jobs. But, I will continue to use Delphi as it enables me to put food on the table and pay the bills. And, I like it.

      RD