Unofficial Hacker News companion — get notified on comment replies, and more.

Laravel for COBOL (opens external site)

353 points by choult 7 hours ago github.com 115 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (11)

  1. Why would you ever choose PHP these days? It’s never been the most performant, secure, ergonomic, or flexible.
    Replies (5)
    1. Pretty sure they were saying the same thing about COBOL 30 years ago.
    2. Flexible? What do you find not flexible with php? You can extend the language however you want.
      Replies (1)
      1. Even to add security.
    3. Because you have a team that's experienced with it and everything else the company has is also php. The same reason as with everything really
      Replies (1)
      1. or the rails web studio got outbid by a bottom feeding php/laravel studio by a very wide margin and your boss went with it no matter how hard you resisted!
    4. Are you familiar with "Worse is Better"? https://en.wikipedia.org/wiki/Worse_is_better
      Replies (1)
      1. In a young industry with shifting standards, I'd agree, but nobody is hacking together sites on the fly anymore. If time really is the most important factor, then you'd just vibe code it and at that point, why pick Laravel?
        Replies (1)
        1. Your initial comment was asking about PHP, which I think follows the "Worse is Better" model much better. Laravel is an obvious successor to Rails and is a great toolset for rapid development and stands shoulder to shoulder with Rails or any other web development framework.

          But I don't understand what you mean about "young industry". Web dev is constantly evolving and no one has been hacking together sites on the fly in decades. Tools like Rails and Laravel exist because they provide really sensible defaults and great tools for routing, API, and give a decent MVC implementation out of the box. These building blocks help humans and agents to work at a level of abstraction that helps regardless of who's doing the work.

          But Laravel is not really that much different to any other framework other than being dead easy to deploy (thanks, PHP) and probably one of the most popular which makes it an easy target for critique and satire.

    5. Considering PHP is written in C ... it's actually quite performant. It's the frameworks and abstractions that make it quite slow.
      Replies (1)
      1. ... such as Laravel.