• @settoloki@lemmy.one
        link
        fedilink
        21 year ago

        Couldn’t agree more. Wordpress and the damn loop. Horrid example of how to do something. But it still makes up the majority of the internet…

  • @s12@sopuli.xyz
    link
    fedilink
    221 year ago

    Rails: “No. Don’t worry Ruby.”
    Ruby: “Huh?”
    Rails: *Hugs Ruby
    Rails: “We’re becoming irrelevant.”

    Together forever!

  • @visnae@lemmy.world
    link
    fedilink
    301 year ago

    Hey Ruby debs, lookup Elixir. It’s supposedly similar syntax but run on the Erlang VM instead. Lots of cool companies use it, and a great community. 🤗

    • @Slotos@feddit.nl
      link
      fedilink
      21 year ago

      Don’t learn Elixir to replace Ruby. Learn it to enjoy OTP and BEAM.

      I would love to join a cool company that’s willing to accept a dev that can transition fast. However, most of Elixir job listings I find are gambling or crypto. And I ain’t gonna touch those.

    • ProdigalFrog
      link
      fedilink
      English
      31 year ago

      Crystal lang is also pretty cool looking. It seems to be going for what Nim is doing, making Ruby as fast as C.

    • @bionicjoey@lemmy.ca
      link
      fedilink
      41 year ago

      Elixir is an awesome language. It takes some getting used to as it’s meant to be more functional like Haskell, but it plays really nicely with big parallel workloads and is super clean to write

    • @frezik@midwest.social
      link
      fedilink
      131 year ago

      I’ve written a non-trivial amount of Elixir. It’s nice, but I wouldn’t say it’s like Ruby. It’s more heavily functional, and it wants you to work with data in an immutable way. If you’re coming from a language that doesn’t force immutability, then you’ll be miserable until you get your head around how to work that way.

      I really like it, though. Especially now that it’s getting optional typing.

  • @invertedspear@lemm.ee
    link
    fedilink
    1221 year ago

    Yesterday I would have argued that with the rails framework Ruby is a great way to rapidly develop a scalable application. Today I started having an intermittent failure in one of my API instances and when searching about it the only thing I could find was one obscure blogpost that boiled down to “yeah sometimes Ruby Ave active record just screws up the character set off a string” exact same string, different results. Excuse me Ruby? How the fuck can you sometimes screw up a character set? There should be no sometimes to any thing here.

    • @EnderMB@lemmy.world
      link
      fedilink
      21 year ago

      I spent a few years with Ruby, and my experience is that Ruby and Rails couldn’t be more different in terms of programming approach, philosophy, and nature. I don’t trust Rails fully, but I do trust Ruby.

    • @puppy@lemmy.world
      link
      fedilink
      91 year ago

      Haven’t Spring Boot in Kotlin with jib and cloud integration caught upto this in terms of development speed?

    • @FMT99@lemmy.world
      link
      fedilink
      51 year ago

      I mean I’ve been using ActiveRecord for the last 20 ish years and I’ve never encountered or even heard of this bug. Sounds like you came across an especially obscure one.

    • frozen
      link
      fedilink
      871 year ago

      I like Ruby most of the time, but honestly, I’m not surprised at “sometimes” behavior from the language created by someone who, when asked for the formal definition of something in the language, said he’s “not really a formal kind of guy.”

    • @dan@upvote.au
      link
      fedilink
      10
      edit-2
      1 year ago

      Yeah…

      Facebook hasn’t used PHP for a long time. They use Hack which started as a language similar to PHP, but it’s very different now - it’s strongly-typed and has a bunch of advanced features, like the ability to annotate functions as pure (no side effects), which gets enforced by the type checker.

  • @corsicanguppy@lemmy.ca
    link
    fedilink
    71 year ago

    But Cinc and its sell-out dad Chef are really great uses of ruby, keeping us from YAML hell and the kludgey socket-machine-gun that is Ansible. That piece of shit has more lithium-lick than I’ve ever seen.

    If we can’t have mgmtConfig (ohai go), at least let us keep Cinc, but it needs ruby.

  • Phoenixz
    link
    fedilink
    191 year ago

    Is PHP becoming irrelevant? It still comprises the vast majority of web pages out there. Maybe that has been going down but with he amount of competing languages and systems out there, that is to be expected.

    Either way, it’s an awesome language, happily been using it for decades now

    • @masterspace@lemmy.ca
      link
      fedilink
      English
      11
      edit-2
      1 year ago

      Depends on how you’re judging relevance.

      93% of webpages could be PHP because of Wordpress, but that doesn’t necessarily mean there’s a lot of PHP developers.

      • Phoenixz
        link
        fedilink
        11 year ago

        If that hypothetical 93% is WordPress, there’s still a huge demand for PHP developers to maintain that and the plugins and so

    • @bitcrafter@programming.dev
      link
      fedilink
      English
      151 year ago

      Either way, it’s an awesome language, happily been using it for decades now

      Mind taking a moment to share why you like it? I am not very familiar with it.

      • @bier@feddit.nl
        link
        fedilink
        111 year ago

        I’m not the one you asked, but what I like isn’t really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL. Every time I want to create a small “app” that makes some manual task easier it’s very useful to create something I can access from the internet.

        Python is really useful for stuff like that too, but (in my experience) not as easy and cheap to use as an web app.

        For example I go to dinner with some friends every month and we always forget who’s turn it is to choose and book a restaurant. So I just made this PHP page that shows the current and next 2 months with a name. So we always use that to see who’s turn it is.

        • @bitcrafter@programming.dev
          link
          fedilink
          11 year ago

          I’m not the one you asked, but what I like isn’t really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL.

          Oh, wow, I looked a little into this and hosting really is dirt cheap! That is a benefit that I genuinely was not expecting.

        • Phoenixz
          link
          fedilink
          11 year ago

          Though I like that you use PHP, I don’t think there is such a thing as PHP hosting, or python hosting? Maybe I’m not understanding what you’re saying here?

          • @bier@feddit.nl
            link
            fedilink
            11 year ago

            When you pay a company and they provide you with a domain (you choose) and give you a webserver, some disk space, a database etc.

            I pay about 30 euros a year for 5 websites. They are all very basic (either some php stuff I made, or WordPress). These websites have very few visitors so the hosting specs don’t really matter. All these websites have a specific domain name, some disk space, and a database.

            For this price they offer PHP and MySQL. So it’s not a dedicated server where I’m root and can Install other stuff.

      • Phoenixz
        link
        fedilink
        31 year ago

        Quite early on the eyes, powerful, fast to build and rolk out projects, about. A billion libraries with all the functions you’ll ever need. People both about it because it has some language quirks from way back in the beginning, I see it as stability. I don’t know how node is now but I remember a few years back where every bug fix came accompanied not only by 10 new bugs but also a bunch of interface changes that immediately broke everything. Every. Single. Damn. Time.

        Having said that, it under very active development and has been majorly improved over the years. Dumb design choices are no long available and right now it’s quite easy to work securely with it.

        Beyond the “but these two functions should have similar naming but they don’t!” argument, that with a good editor doesn’t matter anyway, there isn’t really a good argument out there not to use it.

        • Phoenixz
          link
          fedilink
          21 year ago

          Yeah they do, with no real reason, really. Oohh, “some functions use underscore and others don’t!” And? It’s not a problem, really. Every language has baggage from the past and PHP kept it for stability, I’m happy with that.

          • @CanadaPlus@lemmy.sdf.org
            link
            fedilink
            11 year ago

            “some functions use underscore and others don’t!”

            That’s weird, but more of an aesthetics issue than anything. JavaScript will actually decide to behave oddly for no reason; if that’s it it’s still king of the shitbirds.

  • bruhduh
    link
    fedilink
    191 year ago

    Those hentai games and visual novel games still keeping ruby lang relevant tho, rpgmaker game engine is one of examples

    • Fellstone
      link
      fedilink
      English
      51 year ago

      I think the two newest, MV and MZ, have switched to Javascript. Also, Ren’py is the only visual novel engine I can think of, which is based on Python.

  • @arc@lemm.ee
    link
    fedilink
    11
    edit-2
    1 year ago

    I wrote extensively in Ruby but for Rake - using Ruby as a build system. Can’t say I liked the language although it was okay for how we used it. We have 20 sub projects with some very complex build targets and dependency scanning going on and the Rake syntax was okay. Personally I think its biggest shortcoming was the documentation was very poor and stuff like gems felt primitive compared to other package management systems. One thing I liked from the language was blocks could evaluate to a value which I really use a lot in Rust too.

    I think if I were doing an acyclic dependency build system these days I’d use Gradle probably.

    As for Rails I expect failed to catch on because even compared to Python, Ruby is a slow language. And Python isn’t fast by any stretch. Projects that started with Rails hit the performance brick wall and moved to something else.

      • @arc@lemm.ee
        link
        fedilink
        11 year ago

        We had tens of thousands of lines in our rake files to build a bunch of targets, none of which were even Ruby. I think if I needed to build another complex build system that was a directed acyclic graph I think I’d use Gradle, for a several reasons - we had some Java targets so we save on an additional developer runtime, it would run faster & Gradle is more mainstream and easy to get various plugins & documentation for.

    • geogle
      link
      fedilink
      101 year ago

      Physics changes with retirements. FORTRAN should received it’s gold watch and shown the door about 20 years ago now.

    • @pbbananaman@lemmy.world
      link
      fedilink
      41 year ago

      How long ago? ROOT (and other frameworks like GEANT) using C++ has been the standard for over 15 years, but probably longer. I think my advisor was of the last generation that had to write in Fortran.

      • Codex
        link
        fedilink
        31 year ago

        the last generation to write FORTRAN

        runs to look out window

        My God is the sun turning into a red giant?!

        Oh no, whew, that’s a relief! Guess the FORTRAN programmers will be relevant for a little longer too then.

        (As a .NET dev, I wish some languages (or versions of languages) would die but i really think once code has been written it never goes away!)

        • Cosmic Cleric
          link
          fedilink
          11 year ago

          [COBOL has entered the chat.]

          Capitalism will never let a programming language die, if it’s still less expensive than an alternative.