• I feel bad because while I don’t reach for react (I usually pick Vue or vanilla), people’s comments about react is really depressing.

    There’s a LOT of shitty react code. And when you see beautiful react implementation, it’s like a work of art.

    Unfortunately, react projects have been given to by bootcamps grads with 6 months of experience and it’s like the blind leading the blind…

    I wonder if it’s like PHP. Lots of people shit on it because they had to futz around in a garbage project written by garbage developers, fully unaware that it can be elegant in the hands of a professional team who cares about code quality.

    • TherouxSonfeirOP
      link
      fedilink
      12 years ago

      PHP is great for building APIs to use with React or Vue. I’m happy I have so much back end experience with both good and bad code.

      My motto: if a Junior dev can’t figure out what I’m doing after two weeks of training, I’ve failed.

  • @Rusty@lemmy.ca
    link
    fedilink
    English
    0
    edit-2
    2 years ago

    To be fair it took me couple of days to learn the basics of react. But I had years of programming experience, including other frontend frameworks like angular, angularjs, knockoutjs etc.

    • @penguin@sh.itjust.works
      link
      fedilink
      -12 years ago

      Eh, lots of stuff can be easy to learn, difficult to master.

      Most languages only take a few minutes to do a “hello world” app.

      When you announce you’re comfortable with something, it probably depends on the scale of the apps you’re used to working on.

      So a junior dev could very well feel they’ve learned something like react after two days of cramming.

  • @jarfil@beehaw.org
    link
    fedilink
    12 years ago

    Bah, 2 whole days? I learned React in 1 day!.. then another, and another, and then I got a book, and a few years later… I learned how to fix whatever ChatGPT spits out in React in 2 days!

  • @RGB3x3@lemmy.world
    link
    fedilink
    12 years ago

    React definition: React (also known as React.js or ReactJS) is a free and open-source front-end JavaScript library for building user interfaces based on components.

    Guys, I’ve learned React in 1 minute!

  • @Steeve@lemmy.ca
    link
    fedilink
    0
    edit-2
    2 years ago

    React is a library, when do you consider a library “learned”? If they already knew JavaScript why couldn’t they “learn” React in two days?

    I’ve been using Python regularly for a decade and I’m continuously using new libraries and learning new things, I can’t think of when I would have considered Python “learned”.

    • TherouxSonfeirOP
      link
      fedilink
      22 years ago

      “Learned” means you can make code for production that other people won’t go “wtf are they doing, this isn’t how react works”

      • @Steeve@lemmy.ca
        link
        fedilink
        1
        edit-2
        2 years ago

        That’s just how we look at eachothers’ code, and even our own code that we forgot we wrote lol.

        • @Zikeji@programming.dev
          link
          fedilink
          English
          12 years ago

          Whenever I have to dredge up an old project to make a change or just to check something, I’m hit with the temptation to rewrite the entire thing. I’m constantly learning, and I subscribe to the notion that there are endless ways to do something and none of them are right. Hell, I’ve brought 3 fairly large Vue projects to term and all of them were done the “right way” at the time, but completely differently. There’s what, 3 different approaches in Typescript for components?

  • @bitsplease@lemmy.ml
    link
    fedilink
    22 years ago

    Tbf, “learned a language” is a hard thing to pin down in any case.

    I’ve been building enterprise software with python for almost a decade now. I still occasionally find stuff in the stdlibs that I didn’t know about, or even sometimes some subtle feature of the language that I never had reason to explore until now.

    If someone asks me if I “learned” python, id say hell yeah - but there’s always still plenty to learn

    That being said, no reasonable definition of learned includes what you could do in 2 days, even as an experienced dev lol

    • jecxjo
      link
      fedilink
      English
      02 years ago

      To be fair, i did cover the Fortran 95 spec in a weekend, but i was motivated to tutor aerospace engineerings as there were far more females there than in Electrical Engineering and Computer Science.

      • @floofloof@lemmy.ca
        link
        fedilink
        English
        02 years ago

        The point is that learning a spec is not learning how to program in the language, just as learning how a violin works is not learning to play the violin. And writing your first few programs is like learning to play Twinkle Twinkle Little Star and The Happy Farmer on the violin. You’ve kind of learned the violin, but you’re not getting into any professional orchestras.

    • TherouxSonfeirOP
      link
      fedilink
      12 years ago

      Exactly. I’m 20 years in and I’m still like “I had no idea this was a feature… cool!”

      • @phorq@lemmy.ml
        link
        fedilink
        22 years ago

        “cool”: that sinking feeling that there’s so much you could go back and optimize, but that you probably will never have the time to…

  • @Notnotmike@beehaw.org
    link
    fedilink
    22 years ago

    Probably the hardest part of React, for me, was getting used to the callbacks. Passing data up to the parent component using a function. It’s a little difficult to get used to if you haven’t encountered it already

    • TherouxSonfeirOP
      link
      fedilink
      12 years ago

      Just shove it in the state! I watched a few react videos over the last TWO WHOLE DAYS, it works!! ;$