Women in Technology

Hear us Roar

  The PHP Scalability Myth
Subject:   Java and PHP
Date:   2003-11-25 09:33:36
From:   anonymous2
I have programmed in both langauages for some time and have my opinions about both. While PHP is great for some things I feel it is completely not for others. One reason behind this is because PHP is basically a procedure based programming language and thus is harder to manage in larger projects with multiple people working on them. And mixing biz logic in the view can lead to all sorts of problems down the road. I know that PHP has objects you can use but have you ever actually tried to create a MVC based application with php objects? Can get pretty messy. On the other hand java is horrible for smaller projects because of the amount of planning and coding it takes to do smaller things. While easier to maintain and in my opinion much cleaner it is very easy to create enterprise applications seperating the biz logic from the presentation. But as I said I think both languages are great in their own grown. But they are totally different beast. Just my two cents.
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Java and PHP
    2003-12-14 23:28:15  anonymous2 [View]

    It's all about design. You can design your PHP app using MVC, just the same as you can do the same in Java. You can separate Business Logic from Presentation Logic, it's just about your design.

    Similarly, you can write small JSP apps just as quickly as you write small PHP apps. Just depends on your design.

    And can anybody give me firm examples as to why "mixing biz logic in the view can lead to all sorts of problems down the road."? We all "know" it's bad design, but why exactly?

    I think we tend to over complicate our designs to suit our academic twists. Do the job using the simplest methods possible, while still maintaining good design and coding practices. We have customers to serve who want software that works today, is cheap and can be changed in the future, not something that doesn't work today, costs the sun and offers no real advantage in terms of future changes.

    Bit off topic, but it's all about design: we shouldn't need a language to force a design on us. That shows lack of craft.