Please dont take this seriously guys its just a dumb meme I haven’t written a single line of code in half of these languages

    • Da_Boom@iusearchlinux.fyi
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      Ever wanted to be somewhere inbetween java and JavaScript?

      Yeah, that’s Groovy. Only it’s the wrong groove

    • mindbleach@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      JS is ironic punishment as a programming language. It’s fun to screw around in! And then you have to use it for stuff, and pain ensues.

    • ALostInquirer@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      What makes JavaScript so widely disliked? I know very little of it, and in skimming different stuff I think I’ve seen like a million different frameworks for it, so is that a part of it?

      • smileyhead@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        It was mostly made for simple scripts to embed on a website for animations and handling updates without refreshing whole page. Not to make a full portable client (browser) side app.
        Hating JavaScript is mostly a meme, it’s just a programming language. But its very loose syntax, fact it’s often someone’s first programming language to learn and how most programs written in it nowadays are a hack build on top of a hack on top a hack makes this language easy to laugh at.

  • stevedidwhat_infosec@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I never understood this logic:

    “I know nothing about this subject, I’m gonna post a meme (a funny graphic usually about a specific topic, this one outlining the differences between languages) but I know nothing about the subject and will ask that nobody correct me or try to apply rationale here because I choose to be ignorant and have no interest in expanding my knowledge of the world and people around me, I just want people to tell me I’m funny and give me internet points”

    To each their own ig

    • bleistift2@feddit.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      I never understood this logic

      You’re looking for logic in a joke.

      Do you question why Donald Trump, the pope and a kid are the only passengers on a plane that’s about to crash?

      • stevedidwhat_infosec@infosec.pub
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        You’re misunderstanding my text.

        The joke is funny, telling people not to respond because “it’s just a joke” is cringe.

        We can talk about reality and also joke about stuff.

        • renzev@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          When did I ever tell people not to respond? Where am I being ignorant? I told people to not take the post seriously, because it is a joke post on a community about jokes. By all means, have discussion in the comments, silly or serious. I’ll gladly listen in and maybe learn something. Just don’t try to dissect silly things with serious arguments.

          • stevedidwhat_infosec@infosec.pub
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            It was an over simplification for the sake of dramatic effect in our conversation, not that deep.

            I also was under the wrong impression given this new info, thanks for clarifying. I really wasn’t mad or upset or anything like everyone keeps trying to gaslight me into thinking. Was just pointing out an observation I had…

            Why is everyone wound so tight here in a joke community?

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      I believe the idea is to potentially induce a brief nasal snort possibly accompanied by a slight upward curling of the lips in those casually scrolling by. In other words, it’s a joke, being posted on a joke community.

      • stevedidwhat_infosec@infosec.pub
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        A coding humor community, if you gotta post about it, you should probably expect it.

        We’re adults, we can joke about stuff and also talk about stuff… unless you’re not which would still be okay because I wouldn’t be interested in discussion then

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        To the point that I’m doubting the OP’s non-knowledge.

        He must know at least a lot of C++… But I disagree with the PHP one; it always transforms the problem, never leaves it alone. And transforms it very productively.

    • CarlosCheddar@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      We need a SeniorProgrammerHumor community. Less jokes about quitting vim and programming languages and more about every day funny issues.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        People tried that on Reddit. We got a handful of jokes, but nobody had time to laugh of them or post new ones.

        • thanks_shakey_snake@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          We had planned to get some memeing done but we had an all-hands right before sprint review, then sprint retro, then there was an “optional” product sync that we kinda had to go to, and then the team social, and that was basically our whole day.

          Thought we might meme a bit at lunch, but there was a lunch-and-learn and it’s not like we were going to skip a free lunch.

      • bort@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        We need a SeniorProgrammerHumor community

        to get an invide you must have at least 5 years of verifyable lemmy-experience

      • renzev@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        I was mainly thinking about how so many Rust projects advertise very loudly that they’re written in Rust. Like, they would have -rs in the name, or “in Rust” as part of their one-line description. You rarely see this kind of enthusiasms for the the language in other languages. Not a bad thing by the way! And also there’s the “rewrite it in rust” meme, where people seem to take perfectly functional projects and port them to Rust (again, not a bad thing! Strength in diversity!)

          • CapeWearingAeroplane@sopuli.xyz
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            5 months ago

            For Python I think there’s an actual point though: A lot of Python projects are user friendly wrappers for pre-compiled high-performance code. It makes sense to call something “py<SomeKnownLibrary>” to signal what the library is.

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Eh, your statement is accurate for PHP4 and still relevant up to PHP5.2… We’re on PHP8.3 now and PHP8.0 is now out of security updates. I know it’s trend to hate on PHP but you’ve got to at least update your materials to var-vars… it’s like knocking node for having substr() and substring().

      • bort@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        trend to hate on PHP

        2 years ago I tried to give a drupal project the ci/cd makeover (i.e. containers, test-deployments, reproducable builds, etc)… that’s when my hate was freshly renewed.

        At this point I think it’s ok to let a dead language die and move on to something else (anything else, really)

  • NocturnalMorning@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Python one is accurate. Most of our problems are solved by importing a library and writing the line, librarySolver.importedFunction.SolveMyProblem()

    def main(): Print(‘thanks librarySolver’)

      • ornery_chemist@mander.xyz
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        So many solver solutions that day, either Z3 or Gauss-Jordan lol. I got a little obsessed about doing it without solvers or (god forbid) manually solving the system and eventually found a relatively simple way to find the intersection with just lines and planes:

        1. Translate all hailstones and their velocities to a reference frame in which one stone is stationary at 0,0,0 (origin).
        2. Take another arbitrary hailstone (A) and cross its (rereferenced) velocity and position vectors. This gives the normal vector of a plane containing the origin and the trajectory of A, both of which the thrown stone must intersect. So, the trajectory of the thrown stone lies in that plane somewhere.
        3. Take two more arbitrary hailstones B and C and find the points and times that they intersect the plane. The thrown stone must strike B and C at those points, so those points are coordinates on the line representing the thrown stone.
        4. Use the equation for the thrown stone to find its position at time = 0
        5. Translate that position back to the original reference frame.

        It’s a suboptimal solution in that it uses 4 hailstones instead of the theoretical minimum of 3, but was a lot easier to wrap my head around.

        • SpeakinTelnet@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          That is a great explanation of how you solved it, thanks! I should go back to it and conquer that puzzle properly without a solver. Or at least try.

    • huginn@feddit.it
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      That’s true of basically all problems you deal with in programming. Unless you’re truly bleeding edge you’re working on a solved problem. It’ll be novel enough that you can’t out-of-the-box it but you can definitely use the tools and paths everyone else has put together.

      Part of why I like kotlin as a language. It has so many tools built right in.

    • stevedidwhat_infosec@infosec.pub
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Idk I still like writing my own stuff purely pythonic when I can. Pythons syntax is the most “fun” and “natural” for me so I find it fun. Like doin a sudoku puzzle

        • meteokr@community.adiquaints.moe
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          I agree, whether or not it is good or bad, or readability concerns over nested braces. I fundamentally hate invisible delimiters. If it matters, make it visible. We have so many ascii characters, why not just borrow a few?

        • flashgnash@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          Python whitespace is child’s play compared to yaml, which I have the displeasure of having to interact with on the regular

          • bob_lemon@feddit.de
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            Yaml is honestly just a terrible terrible format that is neither good for humans nor good for machines.

        • stevedidwhat_infosec@infosec.pub
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          This is the best way I’ve ever heard this described lol. You get used to it so fast, it’s really simple. Just indent your code like you’re supposed to 🤷🏻‍♂️

          • mindbleach@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            Does “like you’re supposed to” mean with tabs, or with spaces?

            Because if someone else disagrees you are not going to have fun with their code.

            • Fushuan [he/him]@lemm.ee
              link
              fedilink
              English
              arrow-up
              0
              ·
              5 months ago

              Who TF codes with tabs? All the editors I know input spaces when pressing tab anyway.

              I would not have fun in any language if someone inputted actual tabs and their tab size was different from mine. Chances are my linter would have told me, regardless of language used!

              I have worked with OS projects in C and not even those were tab formatted.

              • mindbleach@sh.itjust.works
                link
                fedilink
                arrow-up
                0
                ·
                edit-2
                5 months ago

                Why the fuck does anyone use spaces when tabs mean everyone uses the same tab size as you? That’s what they’re for!

                • Fushuan [he/him]@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  5 months ago

                  Yeah, okay. Tell that to every code editor’s defaults and every open source projects source code that I have read.

                  Encountering tab indented files is like encountering ANSI encoded files or /r/n newline’d files. It’s not how it should be done. Sorry.

                  Spaces are there to ensure that everyone sees the same, tabs have issues with internal indentation of function declaration and the sort. Yeah it indents like correctly, but then you do need spaces to indent vertically called functions correctly and it always ends up being a cluster fuck. Spaces are a standard for a reason.

          • Da_Boom@iusearchlinux.fyi
            link
            fedilink
            English
            arrow-up
            0
            ·
            5 months ago

            At least untill someone sneaks a tab in your spaced code, and you don’t know how to make your code editor show the difference, or it doesn’t support showing the difference.

            • Fushuan [he/him]@lemm.ee
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              5 months ago

              That sound like a you problem really, detecting this is quite simple because any editor worth their salt will literally lint you an issue saying that tabs and spaces are mixed and the thing literally won’t be interpreted. If your editor can’t show white spaces, chances are you are one google question away from discovering that it actually can do that easily.

              The more I code the less I mind the tool and the more I hate the ones using it wrong.

          • frezik@midwest.social
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            The problem is that Python programmers tend to think the job of readability is done just by indentation. This is wrong, and it shows in all sorts of readability issues. Many of which are in official docs.

            • stevedidwhat_infosec@infosec.pub
              link
              fedilink
              arrow-up
              0
              ·
              edit-2
              5 months ago

              Yeah pythonistas just group bad code into “non-pythonic”

              It’s basically a credo if you aren’t familiar but Python is preeeetty explicit about formatting recommendations and whatnot so there’s really no excuse for poor Python practices/non-pythonic code

              • frezik@midwest.social
                link
                fedilink
                arrow-up
                0
                ·
                5 months ago

                Then what the hell is this shit?

                class argparse.ArgumentParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=argparse.HelpFormatter, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)
                

                This is a mess. None of this ascii vomit is useful or enlightening.

                I got it from the argparse docs, which is a core module. But really, this is just the way Python docs are generated. Every class doc has an ascii vomit like this at the top, and my eyes hurt every time I see it.

            • Fushuan [he/him]@lemm.ee
              link
              fedilink
              English
              arrow-up
              0
              ·
              5 months ago

              Same could be said about people that don’t think that indentation is not important for readability. Both are important, but if you really care about it defining an auto formatter and customising it for whatever consensus the team has is the only way to operate anyway.

              • frezik@midwest.social
                link
                fedilink
                arrow-up
                0
                ·
                5 months ago

                Same could be said about people that don’t think that indentation is not important for readability.

                You should really avoid double negatives. What you actually said was "Same could be said about people that think that indentation is important for readability“, which makes no sense in the context of the rest of your post.

                And I’m not saying this just to be a dick about grammar. I mean, obviously I am, but not just that. If your English isn’t readable, then I don’t trust your Python, either.

                • Fushuan [he/him]@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  5 months ago

                  My bad, I deleted part of the comment to rewrite it and forgot part of the original. And as you probably guessed I meant for it to be a single negative.

                  Good thing this is a casual forum and not a work environment where I would reread my code with care haha. There’s a reason linters exist in code editors, it’s for people like me.

  • nintendiator@feddit.cl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    5 months ago

    C:

    Problemreturn Solution;

    C++:

    Problem

    const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) )
    
  • Swedneck@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    missing the stage of C where it’s all incomprehensible bitfucking with comments like “this works, i do not know why it works, do not touch this”

      • dan@upvote.au
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        CSS isn’t as bad these days if you use Flexbox. Debugging floats and absolute/relative positioning was a nightmare in comparison.

        • MonkderZweite@feddit.ch
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          5 months ago

          On the other hand, it made webpages way less flexible.

          Like yesterday (i have the browser not in fullscreen, for reasons) on my 16" fullhd notebook, webdev couldn’t imagine that someone would use his site in a ~1000px browser window, sidebars left and right, the main content about 20 characters wide squeezed inbetween. So i pressed f12 and deleted the sidebars. But the content was still 20em wide, because of flexbox.

      • PlexSheep@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        That one is not that complicated if you don’t think about the math. It’s basically just if we interpret the float as int and add a magic number we have a good estimation.

        From what I remember at least, it’s been a little while since I implemented it.

        • sheepishly@kbin.social
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          I was more thinking of the comments which are pretty much exactly what you said (“incomprehensible bit hacks” followed by “what the FUCK?”)

        • mindbleach@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          IIRC also relying on how floating-point is basically scientific notation and the most-significant bits are the exponent.

          And most importantly, relying on how a sloppy answer works just fine. The most important skill in game development is cheating.

          • sheepishly@kbin.social
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            The most important skill in game development is cheating.

            Makes me feel better about my own game dev attempts lmao.