Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
PHP Programming IT

Ask Slashdot: Should I Ditch PHP? 341

Long-time Slashdot reader Qbertino does PHP for a living, but says he's growing "increasingly frustrated with the ignorant and clueless in the vincinity of PHP." Crappy code and baaaaad application setups is one thing, but people refusing to fix them or simply not even understanding the broader implications of bad applications or attempting SEO with gadgets while refusing to fix 3.5 MB-per-pagecall are just minor tidbits in a history of increasingly unnerving run-ins with knuckledragers in the "web agency" camp...

Will I leave the larger part of this backwards stuff behind if I move to another server-side programming language such as Java or Kotlin for professional work in the broader web area? Do I have a chance to do quality work on quality projects using PHP, or are those slim compare to other programming languages? In short, should I ditch PHP?

"I think .NET is a much cleaner language to work in with Microsoft's excellent Visual Studio IDE and debugger," argues Slashdot reader Agret , adding "there are many large projects in my city hiring .NET developers and being a strongly typed language the code quality is generally better than PHP."

But what's been your experience? And would a frustrated developer find more quality projects by ditching PHP?
This discussion has been archived. No new comments can be posted.

Ask Slashdot: Should I Ditch PHP?

Comments Filter:
  • by Anne Thwacks ( 531696 ) on Sunday July 22, 2018 @03:44AM (#56988642)
    If you think .NET is better, then the answer is "yes".

    However, it must depend to some extent on what your constraints are. If you support 32 PHP websites that are online and working (and not running on Intel architecture), migration might be a rather expensive waste of time.

    Have you considered becoming a PHB?

    • Re:Naturlich (Score:5, Insightful)

      by imidan ( 559239 ) on Sunday July 22, 2018 @04:18AM (#56988694)

      I worked in a place where the whole codebase was PHP, partially as a result of the web site being done in Drupal. I'm aware of many problems with PHP, but my approach there was to continue to develop with it because of the existing codebase and institutional expertise.

      A new guy came in who was big on Python, and immediately started implementing server-side Python stuff. I warned that there may be difficulty integrating the Python and PHP services, but the new guy thought I was just an old who wanted to keep doing the old and busted thing because it's all I knew.

      The boss didn't nip it in the bud early enough, and I wound up having to write code to share session information between the PHP and Python services. It was a kludge, but it worked. It would have been seamless if we'd kept working within the same language we'd started in, or if we'd undertaken to port the existing code to Python. Oh, and then the new guy quit and left us with this two-language system that few of the other employees could easily maintain.

      Point is, I agree that there's more to consider than what is the "better" programming language.

      • Re: (Score:2, Insightful)

        by Anonymous Coward

        [...] I wound up having to write code to share session information between the PHP and Python services. It was a kludge, but it worked. It would have been seamless if we'd kept working within the same language we'd started in, or if we'd undertaken to port the existing code to Python.

        The correct way is to make it an interface usable from any language. Then it matters not a whit what language you work in. If you do that enough, you can pretty easily migrate from one language to another, one interface at a time, and it simply won't matter to the rest of the code.

        This in a way is the same lesson as "GOTOs considered harmful", "structured programming", "object-oriented programming", and so on, and so forth. Programming is about abstraction. Interfaces are the abstraction you need here. Witn

        • by Hognoxious ( 631665 ) on Sunday July 22, 2018 @07:04AM (#56989120) Homepage Journal

          that's a pretty rude thing to do, leaving behind a mess for people unqualified to deal with it.

          It's also pretty rude to fire an entire team and replace them with offshore monkeys, but it happens all the time. This is just the reflection of that - his obligation ends at the last paycheck.

          It also means the guy is an arrogant hack and unsuitable for teamwork.

          I can't comment on the specifics from a technical POV because I don't know the details - and neither do you. As for the personal attack, he might have got cancer and decided to use his remaining time travelling for all we know. Even if he was just jumping ship for a better offer, why is that wrong?

        • (Says I, who routinely scripts in C and writes applications in shell.)

          What C interpreter are you using?

  • Don't blame tools for the things that people do with them. You'll find the same problems wherever you go.

    • Don't blame tools for the things that people do with them. You'll find the same problems wherever you go.

      There's a special place in hell for the likes of you, writing Cobol code for the rest of eternity.

      • Re: (Score:3, Interesting)

        I actually enjoyed writing Assembly more than C# and Java. My version of hell involves some idiot making me write factory classes to do basic RegEx comparisons.

        • by tepples ( 727027 )

          My version of hell involves some idiot making me write factory classes to do basic RegEx comparisons.

          What do you think re.compile() is in Python? It's a factory function that takes a regular expression as a string and returns a regular expression object. I fail to see how that's anything like the grave or the second death.

    • Because it's within the concepts of specific languages, which may not actually dictate *what* people can do with them, but which clearly specify *how* they have to do it. Which may very well imply different values for the average quality of code for different languages...

    • Don't blame tools for the things that people do with them. You'll find the same problems wherever you go.

      Agree completely. You saved me the trouble of saying the same thing more rudely....

  • by corychristison ( 951993 ) on Sunday July 22, 2018 @03:50AM (#56988658)

    Doesn't matter what language you use, bad developers are universal.

    The thing is PHP 7.2 is actually pretty good, and 7.3 is looming.

    My advice is start your own projects "the right way" (that's subjective), and start your own firm or agency and win with quality.

    I'll be 100% honest, this is what I did. Working self employed over 4 years now. Business is doing well. Even have a couple of staff now.

    • This is actually one of the things I was thinking / considering.
      Not sure yet if I'll go that path, but your feedback resonates.
      Thanks for your thoughts!

      • Glad you found my comment among the mud-throwing fest any article mentioning PHP seems to receive.

        Each PHP 7.x release has depreciated and removed a significant amount of the stuff these people are complaining about.

        I find it amazing how many "experts" out there that have never actually tried a modern version of PHP dismiss it and resort to mud-flinging.

        Each to their own, I guess.

  • by what about ( 730877 ) on Sunday July 22, 2018 @03:51AM (#56988666) Homepage

    There are a ton of languages that makes it easy to "start" something, they lack
    - strong typing
    - strong debugging support
    - reliable libraries
    - reliable refactoring
    - capability of scaling to large and distributed projects
    A beginner starts using the language and ... it is trapped into it, sunk cost

    New languages are just reinventing the wheel, really, they are the result of people forgetting history.
    The main difference is that a few keystrokes are saved with a resulting code that is impossible to understnd a week after you heve written it.

    A pity that Microsoft bashing of Java (to then make Java clone c#) result in knee jerk reactions on the name.

  • by Njovich ( 553857 ) on Sunday July 22, 2018 @04:13AM (#56988690)

    If you are so frustrated with PHP you should switch, perhaps another language will fit you better, or at least it will be a good experience. Keep in mind that PHP doesn't have a monopoly on bad code, bad configuration or bad performance.After you switch to a different environment such as a corporate .net environment you may find you get different types of problems that you you may not even have realized existed when you used PHP. Either way, still good experience.

  • by maroberts ( 15852 ) on Sunday July 22, 2018 @04:25AM (#56988708) Homepage Journal

    ..it's easy to get stuff done in PHP. There are certainly languages which are 'better' in various respects than PHP, but it is not going to replace the fact that if you want a website done quickly then PHP is your tool of choice.

    Also, it's cheaper to find PHP employees. That doesn't necessarily mean that you find great coders, but looking on the job boards, the level of salaries offered to PHP developers can be half to a third of salaries offered to developers experienced in (say) Node.js/ React. Not only that there a PHP developers on every street corner.

    At the moment I'm amazingly doing PHP at what I call 'financial developer' rates. But these jobs are hard to come by

  • A bad programmer can screw up in any programming environment. Running away from PHP isn't going to help. The real question is: what is this person doing, that involves him with so many poor programmers?

    The differences between PHP and .Net are huge, and should be based on something other than your spleen.

  • Learning Elixir was a very refreshing and pleasing experience. The language, the tooling, the documentation are excellent, developper-friendly. The underlying OTP is powerful for making resilient and distributed applications.. The Phoenix framework is very well-made. Learning functional programming made me a better Python and perl programmer.. I used this online course, I recommend it:
    https://www.udemy.com/the-comp... [udemy.com]
    (price reduced with the coupon)

  • the question is clearly comprehensive enough that the poster knows there's something deeply, deeply wrong with PHP. a more detailed investigation shows that the actual core developers are ignorant of system-level security programming... but it takes time to actually find that out.

    what stood out for me was that the poster clearly sees an extremely high degree of incompetence surrounding PHP. as in: way-above-average. in part this is i feel down to PHP attracting "web-only" developers who have "a bit of HT

    • by Bongo ( 13261 )

      It sounds like the problem you’re highlighting is HOW people are introduced to programming, in early PHP examples, rather that what a language’s expression space permits theoretically.

      It’s like learning to draw. If the first exercises are, draw an imaginary forest, people don’t learn to look. If the first exercise is, draw a portrait, it forces you to change your thinking right from the outset, because it will not work unless you focus on learning how to observe shapes.

      Mixing PHP int

  • ... I'd say have a thorough look into Java, at least if you want to keep platform independence as an option, with the JDK offering forays into other and more modern languages too, like Kotlin, Scala, Groovy or many others, and being the next best thing in terms of performance after natively compiled code.

    With Oracle's latest change in update policy, though, forcing commercial users to upgrade JVMs/JDKs to the next major version – possibly breaking things – every six months, at least if they want

    • by mccalli ( 323026 )
      The future is the OpenJDK. People will abandon the now-commercial one quite quickly.
      • We already have. Oracle can go fuck themselves.

      • So far, so good, and OpenJDK is what I've been using personally since I started migrating all my stuff to Linux last autumn. Until now I have stayed at version 8 for compatibility reasons. For commercial use, Oracle will end support for Java 8 come January 2019. I seem to not have fully understood the differences – will OpenJDK continue to be supported with security updates after that date, which can be used commercially, too?

  • Actually You CAN'T (Score:5, Insightful)

    by Delifisek ( 190943 ) on Sunday July 22, 2018 @05:37AM (#56988892) Homepage

    If you came from PHP without any other language experience (except javascript). You cannot understand how PHP exclusively fit for Web development until you start do something with other language.

    Other languages need for spesific frameworks, configurations, concepts for web projects. PHP was ready to run. When you try to learning other languages web stack you will be frustrated and return to PHP again. Other languages need extra steps to do simple things in web because of their nature.

    Sure php much worse syntax and function names most other languages. However that was language quirks any professional can handle.

    Problem is, php entry level is low and with abundant documents and training videos people easily put something on web and so they think they can handle big projects.

    And without strict guidelines for project management, php can be lethal as a dodge viper on rainy day.

    What you need is, find a battle hardened Project manager which uses Jira and other tools to agile development plus getting know automated testing.

    After 6 months You will be fine with php any given sunday.

    If you insist to change, you should look Google GO. not .NET it was for windows shops for who develop desktop applications. It wasn't just a language, you have to change your development style, development environment working environment etc.

    Google GO was logical next step, It was easy (to comparing other static languages) and it was forced writing disciplined code practices by nature. It fast and you do not need change entire environment. Plus you get military grade arsenal (comparing to php) for complicated projects.

    My 2 cents after 20 years of PHP Web development.

    • Yeah this. Been programming a long time, and like another comment said being able to quickly put some db result into a webpage was a BIG deal.

      And yes, I've gone back and looked at my own PHP code from 15-20 years ago and said "uuugghh....". But the only reason I've not said that sooner is because the code - crappy as it is - still works for what we needed it to do.

      Also not sure what I would replace it with. What else is relatively light, easy to get up and running, is meant for the web, and isn't client s

  • I guess itâ(TM)s a âoetestâ by Microsoft to see reaction of masses. Surely PHP is PoS, but itâ(TM)s an Open Source PoS. Going to a vendor-locked ecosystem is shooting yourself in a foot. So: 1) Ditch? Well, just keep learning. There are proper languages around you know. 2) Submit to MS? Why? Learn C# if you must, but donâ(TM)t limit yourself. I still think itâ(TM)s MS-trolling.
  • by loufoque ( 1400831 ) on Sunday July 22, 2018 @06:22AM (#56988996)

    And you should have done the same.
    It's just full of bad programmers and the only applications people build in PHP are crappy websites.

    Moved to a real programming language with a niche that values skill, and I easily multiplied my salary by 10.

  • I've been coding PHP, Java and more recently JS for a while. I feel like PHP has dropped the ball when it comes to async programming compared to the others. I think that's one of the reasons why facebook forked PHP (hacklang.org) to make it async friendly. ReactPHP is slow compared to node, and the fastest PHP async framework, Swoole by Tencent, is still limited in what it supports. I've been trying vert.x on Java which isn't bad and not minding koa. I feel like they need to do more to support projects like
  • I don't think the problem isn't PHP or not,
    but "Web Sites"...

    If you make websites you deal with people who wants websites,
    And everybody knows how websites are done, right?
    This attitude drives away any "good" developers.

    So you're stuck with the one you can't or won't or just don't care...
    Not all developers in this area , but the majority.

    If you want to write good software you need project and customers who understand what "good" means.
    The language is secondary,

    Your challenge is finding these "good" project

  • And keep selling your PHP competences. If you're better, PHP being a huge market, you'll make a difference and claim a higher salary.
    • Your argument is the exact point that makes this decision difficult. Hence my "Ask Slashdot".
      My salary and working conditions are pretty good considering PHP, so yeah, that's a bit of my dilemma right there.

      Should I build on that or leave is what I'm pondering.

  • "I think .NET is a much cleaner language to work in with Microsoft's excellent Visual Studio IDE and debugger," argues Slashdot reader Agret , adding "there are many large projects in my city hiring .NET developers and being a strongly typed language the code quality is generally better than PHP."

    I wonder what Agret's thoughts on C# are?

  • I was afraid there is no easy answer and I guess we can all agree on that. Truth be told, there is an advantage to being the experience guy in a web agency / PHP shop and I can't really complain about my salary right now either, although I would like it to improve within the next 3-4 years.

    Whatever I do, I'm not going to stick with standard PHP fiddeling. If I stay in the PHP camp, I'll specialize and focus on things that come with it, such as web projects as a whole, performance and high-availability and s

  • by Slicker ( 102588 ) on Sunday July 22, 2018 @07:48AM (#56989242)

    Yes, a great deal of PHP code in the wild seems unruly. However, this is not due to PHP per-se. Choosing a solid framework (such as codeigniter or cakePHP), following its conventions, and practicing good team dynamics makes all the difference. I have been coding since 1984 in a variety of languages and, although PHP's verbosity annoys me (requires too much finger twisting on the keyboard), I have never seen a more generally productive language. You can easily build a lot, fast. The discipline to make maintainable code is worth the effort that you need anyway, even if coding in Python.

    Here are the reasons code becomes unruly:
    (1) undisciplined and/or weakly experienced coders
    (2) not clear design pattern (usually goes with #1)
    (3) well experienced coder's tendency to over-engineer

    The worst of these is #3 and it's very common amongst head-strong developers who are knowledgeable.

  • I left the insane PHP world quite a while ago and wrote a post detailing some of my reasons [borfast.com]. Even though PHP has improved a lot since then, the foundations still suck. For example, the vast majority of people writing PHP are still "web designers" who know nothing about writing proper code. And I just don't get it when people tell me I have to be patient because PHP is improving - why wait that PHP becomes better when you can work with better tools now? I get much better salaries and enjoy the projects I wor
  • A language is just a language. It's the developer who makes code crap or good. It's very easy to start developing with PHP. Because of that, many young and unexperienced developers use PHP. That and only that is the reason why so much PHP code is crap. It has nothing to do with the language itself. With PHP, it's very well possible to write good, solid, fast and secure webapplications. You want proof? Check out the Banshee PHP framework [banshee-php.org].
  • But those people never tried to use another language for web development. Usually people will move away from PHP to Python and Ruby, and I never faced any of them who moved back after truly make a project on those languages. The only friend I have defending PHP is the one who never tried other language/framework for real, always saying "it's not the language".

    Yes, it is. The core is really a mess, features are moved away and returns, the team making the rules has weak technical skills (search for the reas
  • by Opportunist ( 166417 ) on Sunday July 22, 2018 @08:53AM (#56989440)

    Moving to .net won't make you any happier, because strong typing does not make a better code base. Better programmers make better code base. And neither PHP nor .net require you in any way to be a good programmer. Both come with sufficiently plentiful training wheels that both of them attract people who have no idea what they're doing and rely mostly on cargo cult programming.

    But this is how programming is these days. Yes, you still have a few good (and very expensive) people who know what they're doing and who actually understand the implications of using this function (or API call) instead of that one, but for every programmer who does know that, you have at least a dozen who copy/paste most of their code from various online sources after googling the problem du jour. This is an universal problem and not one you can solve by switching the programming language.

    If you want to solve that problem, you have to switch the user base.

  • A good programmer can write good code in any language. That said, an average or bad programmer has the tendency to write really horrible code in PHP. Let's say the nature of the language leads you to bad code, more so than say C# or Python. You have to fight the nature in order to avoid it.

  • by coop247 ( 974899 ) on Sunday July 22, 2018 @09:04AM (#56989492)
    I was strictly a .NET programmer from, jeez, 1.0 up to almost v3. Loved the IDE, code base felt "bigger" than it needed to be for projects. My main issue was that the application on the server just dies a lot. And this wasnt just 1 app, at one company, my experience across multiple companies, multiple setups, it just seemed the the application would crash for no reason and need completely restarted pretty regularly.

    Been on PHP/LAMP for several years now and that bastard never so much as went down once. .NET/IIS might be better now, but that was my experience.
  • by Rufty ( 37223 ) on Sunday July 22, 2018 @09:05AM (#56989496) Homepage

    New coders look at crap PHP and think "I can do that!"
    Experienced coders look at crap PHP and think "That's crap PHP."
    Old coders look at crap PHP and think "Job security."

  • by damaki ( 997243 ) on Sunday July 22, 2018 @09:08AM (#56989504)
    As a developer who did 6 years of Java, 4 years of C# and 5 years of PHP for a living, PHP is not a good language for long term maintainability in a team. So, if you are alone on the project, you know perfectly your way around the language quirks, know how to use composer properly and have no need for scalability, then PHP is probably good enough for you. In any other case, do not use PHP.
    PHP is a bad language for teams with various levels of knowledge of the language, who do not pair-program or when scalability (connection pooling issues mostly, and not only DB connections) matters, of if you want to use microservices inside of a PHP script (there is a circle in PHP hell for that).
    In a nutshell, PHP is a bad language to have legacy code in, and not easily scalable. It is quirky, though not unmanageably quirky with the right tools, but once you ignore warnings, do not use proper code quality tools (sonarqube and such), you are definitely fucked with PHP. And these days, I am maintaining several of those nightmare no-framework, reinvent-the-wheel, warnings everywhere and no composer and custom classloading PHP application.

    By the way, beware of C# in a team. C# is a huge and complex language. Just like C++, you must agree on a subset of a language, for consistency sake. Once you got your subset, you are good to go.
  • Th post the other day about python brought out all the curmudgeons who damned it as a "toy language" not fit for "anything longer than a page". Meanwhile the comments here are people defending PHP as "the right tool depending on the environment" and "its not the language, there are bad developers using every language."

    Slashdot really confuses me sometimes.
    • by sfcat ( 872532 )

      Th post the other day about python brought out all the curmudgeons who damned it as a "toy language" not fit for "anything longer than a page". Meanwhile the comments here are people defending PHP as "the right tool depending on the environment" and "its not the language, there are bad developers using every language." Slashdot really confuses me sometimes.

      Because they are not the same people. These people defending PHP are either PHP programmers or somehow their paychecks are tied to a PHP project of some kind. I've looked at PHP and its a disaster and clearly not suited to making larger or commercial projects. You can with enough skill and effort make that happen but your organization probably doesn't have that level of skill and management to make that happen. So what will happen is cheap, cargo cult programming that drives away good programmers. This

      • by jon3k ( 691256 )

        Because they are not the same people. These people defending PHP are either PHP programmers or somehow their paychecks are tied to a PHP project of some kind.

        While I agree with the premise, the problem was how highly moderated the comments are about php being pretty much ok and blaming poor programmers. I imagine you would have seen the same thing with python, right? Why didn't we see an overwhelming amount of pro-python, highly moderated comments in the other post?

  • I've used both. (Score:4, Informative)

    by The MAZZTer ( 911996 ) <(megazzt) (at) (gmail.com)> on Sunday July 22, 2018 @10:44AM (#56989810) Homepage

    It breaks down to PHP being much less capable than ASP.NET in its capabilities, though I admit it's been a while since I've used PHP, some of these limitations are built into the basic design of PHP so I'm not sure how they could have improved those aspects since then.

    ASP.NET and ASP.NET Core have control of pretty much the entire web server stack (to a point). So you can do things like declare REST APIs and map them to single functions, whereas it is much harder to do that in PHP because first the web server needs to map a request to your PHP script file before you even get control in the first place, so you need to use Apache mod_rewrite or whatever (as opposed to a single line of ASP.NET code embedded with your REST API function.

    I think that's really the biggest thing. PHP code starts and ends at the PHP script file and all code is run in the context of a HTTP request. There's no built-in way to do background processing outside of that, and you are writing a collection of scripts, not a full application. In ASP.NET you are writing an APPLICATION, and you get as much control over requests into your application URLs as you need. You can filter requests, add middleware, and your app doesn't even serve static files from disk unless you tell it to.

    PHP has also had growing pains, starting out with no OOP support but having such things added eventually and having their APIs eventually converted over to use OOP (I stopped using it before this point so I am not sure how good it is). Also some bad security decisions that had to be corrected have led to things like mysql_escape and mysql_real_escape functions. Meanwhile in .NET you just use SQL parameters and you're good from a security standpoint. It has been awhile so I would hope PHP has SQL parameters now. I can't speak to the current state of PHP from a security standpoint but they've had a rocky journey for sure.

    Also as a side note, .NET has EF/EF Core, which is amazing. I fell in love with it. Use any DB you want. Write classes that represent objects. And then EF/EF Core generates DB structures and queries for you; you don't have to deal with any of that. Change the object structure? DBs will be migrated to the new structure. It's pretty much magic. With PHP you're stuck picking a specific database and manually writing queries. If you want objects to represent your records (a database abstraction layer of some sort is a good idea for security reasons) you have to build all that by hand.

    • PHP encourages short bursts of code, a remnant of it's non-OOP past. ASP.NET encourages well-organized code. And the VS IDE is awesome. I can't speak to any of the other alternatives like Java but I would expect it to have many of the same advantages of ASP.NET over PHP. Though the one time I worked with Java in a desktop application I disliked how it insisted I had to catch every exception. Sometimes you want SomeObscureException to crash your app since you can't do anything about it anyway.
    • You know, the one thing I've ever been able to do is tolerate a framework building SQL queries for me. I get that it makes sense if you're using a number of databases, like nosql and the like, so a level of abstraction allows higher code portability, but in general I simply do not trust any framework's ability to generate a SQL query as optimized as the one I can build by hand. Of course this makes for less portable code, but honestly, I'd rather just do whatever variant of #IFDEF any language has and rewri

      • by zifn4b ( 1040588 )
        GraphQL ftw.
      • by sfcat ( 872532 )

        You know, the one thing I've ever been able to do is tolerate a framework building SQL queries for me. I get that it makes sense if you're using a number of databases, like nosql and the like, so a level of abstraction allows higher code portability, but in general I simply do not trust any framework's ability to generate a SQL query as optimized as the one I can build by hand. Of course this makes for less portable code, but honestly, I'd rather just do whatever variant of #IFDEF any language has and rewrite the query for whatever database the application is hooking in to (yes, I know, lots of reinventing of the wheel) than to trust nameless and faceless framework developers. I know at that point that the SQL is secure, rather than having faith that someone out there knows what they're doing. Besides, I do kind of think in SQL, due to 20+ years of writing SQL code, and it actually helps me at the prototyping stage to get a sense of data flow. I usually work from the database up, because that's just how my brain seems to work.

        And you are why SQL injection attacks are still a thing in web dev. And this comes from someone who loves SQL and has written SQL only applications before.

    • by zifn4b ( 1040588 )
      Yay let's pit two languages/frameworks that fell way behind Amazon/Facebook/Google and compare them to each other. .NET Core and Azure came very late to the party. Visual Studio Code even came way late to the party compared to Sublime, Atom, IntelliJ, etc. Even though I'm an MCP and loved .NET when it first came out and was awesome for 10-15 years. Microsoft dropped the ball unfortunately just like they did with Windows Mobile Phone, Windows 8 and IE/Edge.
    • You can do background processing. It just takes a bit of work. That's what cron, flags and triggers were designed for. Admittedly some tools make it more seamless, but really under the hood it's all done the same way. And there are certainly frameworks out there that give you that level of abstraction even in PHP. Mostly it's down to the framework and picking the right IDE. These problems have been solved.

  • by zifn4b ( 1040588 )
    PHP is way behind modern javascript frameworks even Laravel and Symfony are way behind.
  • "Should I swap using a hammer for a screwdriver?"

    The answer is "maybe". Use the language that makes sense for the project.

    PHP lets you write awesome stuff easily, and PHP lets you write hideous stuff easily. I promise you that I can write shitty, buggy, insecure code in any language you want, not just PHP. Or C++. Or Javascript. Or Python.

    It's not the fault of the language- you can say "Me so hungry want eat" in any language.

  • and developers. It doesn't matter what it is the cycle always seems to be the same:
    1) a language or framework is created to solve a current problem.
    2) early adopters show up who in my estimation seem to be on the upper tail of the intelligence distribution.
    3) Said developers start solving the problems the new tech was intended to fix.
    4) articles appear, discussion groups, etc. start touting said tech as a magic bullet
    5) the thundering herd of developers follow it, most of whom are lower skilled than the ea

A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson

Working...