Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. My skill prevents bugs, unlike your fancy compiler, peasant.

My skill prevents bugs, unlike your fancy compiler, peasant.

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
87 Posts 61 Posters 5 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V [email protected]

    We had the Java guys in year 2000, at least Rust seems to be a decent language.

    L This user is from outside of this forum
    L This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #53

    Java was created so that teams of intermediate skill programmers could maintain large, long-lived code bases. And it did its job incredibly well.

    If that is not your use case (or you do not want to admit that you are such a programmer), it may not be your favourite language.

    I always like C# far better. It may be my favourite language overall. It has a bit more headroom and was designed somebody far more skilled. But it was designed to compete directly with Java. So, you know who it was built for.

    V 1 Reply Last reply
    1
    • C [email protected]

      Ammm actually... ☝️🤓
      most Rust evengalists claim that Rust prevents you from writing bugs

      L This user is from outside of this forum
      L This user is from outside of this forum
      [email protected]
      wrote on last edited by [email protected]
      #54

      Some bugs. I have never heard anybody remotely skilled in Rust claim that it prevents bugs in general.

      Python prevents many classes of bugs too (compared to C++). And any statically typed compiler will prevent some bugs that Python allows. Not too controversial I hope. Of course, unlike Rust, Python is unsuitable for many C++ use cases for other reasons.

      I do not use Rust and my self-image is not tied to C++. So I do not have to get upset when people explain the benefits of Rust.

      Rust is not perfect. That is why I do not use it. But it is not some elaborate lie either. It was designed to do certain things, and it does.

      1 Reply Last reply
      3
      • danhab99@programming.devD [email protected]

        "Rust's compiler prevents common bugs" So does skill. No offense to you, but, this trope is getting so tiresome. If you like the language then go ahead and use it. What is it with the rust crowd that they have to come acrosslike people trying to convert your religion at your front door?

        F This user is from outside of this forum
        F This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #55

        What's actually tiresome is how this keeps happening: https://paulgraham.com/avg.html

        Q 1 Reply Last reply
        1
        • I [email protected]

          At this point, I've seen far more people being almost violently anti-rust than I've seen people being weirdly enthusiastic about rust. If Rust people are Jehovah's Witnesses, then a lot of the anti-Rust people are ISIS.

          W This user is from outside of this forum
          W This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #56

          Try suggesting people try out a garbage collected language and see how the crabs come to feast. 😛

          1 Reply Last reply
          0
          • L [email protected]

            Sadly, it is a detachment from reality that is entirely normal, even typical. In all walks of life.

            What I still find surprising, even though normal, is how technical people can push actual facts and evidence right out of their world view.

            Sure, 70% of the bugs in C++ code bases are memory rated according to multiple sources. So let me aggressively and confidently berate this idiot that says the Rust compiler is doing something useful.

            You do not have to use either language to see how idiotic this is. Even if you accept that this guy has “the skill” to make compiler help redundant, he has no point at all unless he thinks that “typical” C++ users have that same level of skill. And, provably and trivially researched—they do not. Being this wrong makes him, as self-evidenced, incompetent by definition.

            All he proves in the end is that he is angry (and I guess not a fan of Rust).

            “Angry and incompetent” is sadly a much more common trope than the ones he tires off.

            C This user is from outside of this forum
            C This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #57

            Oh yes, it's so very human nature. But damn.

            Most coders get the message at least a bit, I think. Other engineers have a reputation for massive egotism, software engineers don't really.

            Q 1 Reply Last reply
            1
            • L [email protected]

              Java was created so that teams of intermediate skill programmers could maintain large, long-lived code bases. And it did its job incredibly well.

              If that is not your use case (or you do not want to admit that you are such a programmer), it may not be your favourite language.

              I always like C# far better. It may be my favourite language overall. It has a bit more headroom and was designed somebody far more skilled. But it was designed to compete directly with Java. So, you know who it was built for.

              V This user is from outside of this forum
              V This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #58

              Seems there still are some around!

              1 Reply Last reply
              0
              • zarkanian@sh.itjust.worksZ [email protected]

                I've never run into a Java evangelist. Every opinion I've ever heard about Java is something like "Yeah, this sucks". I always thought that people put up with it because it's write-once, run-anywhere, but so is, y'know, Python.

                V This user is from outside of this forum
                V This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #59

                There was a saying back in the day, roughly: "java can run on all platforms like anal sex works on all genders".

                Python is slow but fantastic when it comes to interoperability IMO and is just complex enough that you can get the job done. I just hope they'll won't complexify it into oblivion, it's a really neat language. IMO.

                1 Reply Last reply
                0
                • L [email protected]

                  Sadly, it is a detachment from reality that is entirely normal, even typical. In all walks of life.

                  What I still find surprising, even though normal, is how technical people can push actual facts and evidence right out of their world view.

                  Sure, 70% of the bugs in C++ code bases are memory rated according to multiple sources. So let me aggressively and confidently berate this idiot that says the Rust compiler is doing something useful.

                  You do not have to use either language to see how idiotic this is. Even if you accept that this guy has “the skill” to make compiler help redundant, he has no point at all unless he thinks that “typical” C++ users have that same level of skill. And, provably and trivially researched—they do not. Being this wrong makes him, as self-evidenced, incompetent by definition.

                  All he proves in the end is that he is angry (and I guess not a fan of Rust).

                  “Angry and incompetent” is sadly a much more common trope than the ones he tires off.

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #60

                  There's some weird effects with language-specific bug rates.

                  In old Java, most uncaught exceptions are NullpointerExceptions, because most other exceptions used to be checked. Can't not catch a checked exception.

                  So they made Kotlin, where NullpointerExceptions are the only type of checked exceptions. Now there are no unhandled NPEs anymore but now you get tons of other exceptions.

                  1 Reply Last reply
                  2
                  • zarkanian@sh.itjust.worksZ [email protected]

                    I've never run into a Java evangelist. Every opinion I've ever heard about Java is something like "Yeah, this sucks". I always thought that people put up with it because it's write-once, run-anywhere, but so is, y'know, Python.

                    S This user is from outside of this forum
                    S This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #61

                    I love Java

                    1 Reply Last reply
                    1
                    • danhab99@programming.devD [email protected]

                      "Rust's compiler prevents common bugs" So does skill. No offense to you, but, this trope is getting so tiresome. If you like the language then go ahead and use it. What is it with the rust crowd that they have to come acrosslike people trying to convert your religion at your front door?

                      T This user is from outside of this forum
                      T This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #62

                      The "common bugs" that the Rust compiler prevents are those a good programmer should not make in the first place. It's the bugs that even evade a seasoned programmer that poses the problems, and there, Rust won't help either.

                      Remember ADA? A programming language frankesteined by a committee to make programming safer? The programmers using it still produce bugs. And ADA is way more whips and chains than Rust.

                      B L douglasg14b@lemmy.worldD 3 Replies Last reply
                      1
                      • T [email protected]

                        The "common bugs" that the Rust compiler prevents are those a good programmer should not make in the first place. It's the bugs that even evade a seasoned programmer that poses the problems, and there, Rust won't help either.

                        Remember ADA? A programming language frankesteined by a committee to make programming safer? The programmers using it still produce bugs. And ADA is way more whips and chains than Rust.

                        B This user is from outside of this forum
                        B This user is from outside of this forum
                        [email protected]
                        wrote on last edited by [email protected]
                        #63

                        It's the bugs that even evade a seasoned programmer that poses the problems, and there, Rust won't help either

                        What do you mean these are not the ones that rust tries to fix? Even huge projects like the linux kernel get memory bugs. I don't know anything about ADA and nor do I want to "evangelize rust" but what you're saying sounds boggers.

                        Obviously rust cannot prevent all bugs or even most of them. It can only prevent a small subset of bugs, but saying that that "small subset of bugs" wouldn't happen to seasoned programmers is just wrong, especially when you have tons of programmers working on the same big project.

                        I don't mean to say that rust is always the correct choice, but that you're waving off its greatest offering as bicycle training wheels (i.e. something no seasoned programmer would need)

                        T 1 Reply Last reply
                        9
                        • B [email protected]

                          It's the bugs that even evade a seasoned programmer that poses the problems, and there, Rust won't help either

                          What do you mean these are not the ones that rust tries to fix? Even huge projects like the linux kernel get memory bugs. I don't know anything about ADA and nor do I want to "evangelize rust" but what you're saying sounds boggers.

                          Obviously rust cannot prevent all bugs or even most of them. It can only prevent a small subset of bugs, but saying that that "small subset of bugs" wouldn't happen to seasoned programmers is just wrong, especially when you have tons of programmers working on the same big project.

                          I don't mean to say that rust is always the correct choice, but that you're waving off its greatest offering as bicycle training wheels (i.e. something no seasoned programmer would need)

                          T This user is from outside of this forum
                          T This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #64

                          but what you’re saying sounds boggers.

                          Believe me, it isn't. I program about anything for forty+ years now. I probably have forgotten more programming languages than you can list, and if there are constants in programming, then a) while compilers get better at catching bugs, they never got over the basics, and b) a good programmer will alyways be better at preventing and catching bugs than a compiler.

                          Once you have aquired a good mindset about disciplined programming, those buglets a compiler (or even code review systems) can find usually don't happen. Be wary of those bugs that evade the seasoned programmer, though...

                          For the mindset, it is good to read and understand things like the MISRA standard. Stuff like that prevents bugs.

                          B N 2 Replies Last reply
                          0
                          • H [email protected]

                            Unlike you babies I have Personal Responsibility and I write all of my code directly in assembly the way reagan intended. I don't need guard rails and I've never had any issues with it because my Personal Responsibility keeps me safe

                            K This user is from outside of this forum
                            K This user is from outside of this forum
                            [email protected]
                            wrote on last edited by [email protected]
                            #65

                            Magnetised needle and a steady hand or gtfo

                            1 Reply Last reply
                            5
                            • T [email protected]

                              but what you’re saying sounds boggers.

                              Believe me, it isn't. I program about anything for forty+ years now. I probably have forgotten more programming languages than you can list, and if there are constants in programming, then a) while compilers get better at catching bugs, they never got over the basics, and b) a good programmer will alyways be better at preventing and catching bugs than a compiler.

                              Once you have aquired a good mindset about disciplined programming, those buglets a compiler (or even code review systems) can find usually don't happen. Be wary of those bugs that evade the seasoned programmer, though...

                              For the mindset, it is good to read and understand things like the MISRA standard. Stuff like that prevents bugs.

                              B This user is from outside of this forum
                              B This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #66

                              I probably have forgotten more programming languages than you can list, and if there are constants in programming, then a) while compilers get better at catching bugs, they never got over the basics, and b) a good programmer will alyways be better at preventing and catching bugs than a compiler.

                              I agree with this

                              Once you have aquired a good mindset about disciplined programming, those buglets a compiler (or even code review systems) can find usually don't happen.

                              I also agree with this.

                              I would like to put a lot of emphasis in the usually. It doesn't mean that they don't happen, no human being makes no mistakes. Rust simply gives people a little more peace of mind knowing that unless they use unsafe they're probably fine in terms of memory issues.


                              As a side note, there was this once I was making an ecs engine in rust, and kept fighting the compiler on this issue. Specifically, the game engine bevy uses Query in the World to retrieve information about the game state, and I wanted to do the same. For instance, in the following function (or something similar, I honestly don't remember all that well):

                              fn getplayer(player: Query<Player>) {}
                              

                              Would get player from the world and assign it to player (more or less). However rust was adamant in not letting me do this. After some thinking I finally realized why

                              fn getplayer(player: Query<Player>, player_too: Query<Player>) {}
                              

                              Would give two mutable references to the same Player in the same function, which can be very easily mishandled, and thus is not allowed in rust.

                              I don't know about the MISRA standard, but I don't think that using it would have changed the way I coded my inherently flawed approach. This is a small example, one that didn't even matter that much in the grand scheme of things and could be even hard to understand why it's bad without knowing rust, but it is the one that came to mind. I think that if I had more experience I would he able to give you one that actually had security implications.

                              I'm no seasoned programmer, however

                              1 Reply Last reply
                              2
                              • zarkanian@sh.itjust.worksZ [email protected]

                                I've never run into a Java evangelist. Every opinion I've ever heard about Java is something like "Yeah, this sucks". I always thought that people put up with it because it's write-once, run-anywhere, but so is, y'know, Python.

                                Z This user is from outside of this forum
                                Z This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #67

                                Early on, Java was advertized as the next great thing, ending headaches from system development, porting, and "promoting good programming practices through OOP".

                                Then people increasingly got tired of OOP and the speed penalty of both that paradigm and the JVM, not to mention more and more education institutes started to claim Java was too hard for beginners, and that Python would be better.

                                Now we have Rust evangelists promoting the language as the next great thing, ending headaches from memory safety issues, porting (if you target WASM and pack your app into a Chromium instance), and "promoting good programming practices through FP".

                                Time is truly a flat circle...

                                1 Reply Last reply
                                1
                                • D [email protected]

                                  I think a bunch of C programmers hate rust passionately because they always looked down their noses at principled languages for being slow.

                                  Now a principled language is beating them on both speed and safety and it's as if the jocks lost a baseball game to the nerds who studied dynamics of solids and cut a series of little slots in their bats so that every time they hit the ball it went out of the park.

                                  So much hate for the clever win over the brute force.

                                  P This user is from outside of this forum
                                  P This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #68

                                  Rust is a tiny bit slower in benchmarks with similar implementations, since it has a few more runtime checks, but the difference is minor.

                                  D 1 Reply Last reply
                                  0
                                  • T [email protected]

                                    The "common bugs" that the Rust compiler prevents are those a good programmer should not make in the first place. It's the bugs that even evade a seasoned programmer that poses the problems, and there, Rust won't help either.

                                    Remember ADA? A programming language frankesteined by a committee to make programming safer? The programmers using it still produce bugs. And ADA is way more whips and chains than Rust.

                                    L This user is from outside of this forum
                                    L This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #69

                                    I think I found your picture. Is it this one? 🤓

                                    1 Reply Last reply
                                    1
                                    • F [email protected]

                                      What's actually tiresome is how this keeps happening: https://paulgraham.com/avg.html

                                      Q This user is from outside of this forum
                                      Q This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #70

                                      Great read

                                      1 Reply Last reply
                                      1
                                      • C [email protected]

                                        Oh yes, it's so very human nature. But damn.

                                        Most coders get the message at least a bit, I think. Other engineers have a reputation for massive egotism, software engineers don't really.

                                        Q This user is from outside of this forum
                                        Q This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #71

                                        Other engineers have a reputation for massive egotism, software engineers don’t really.

                                        That's a joke right?

                                        C 1 Reply Last reply
                                        0
                                        • S [email protected]

                                          Curious what you are talking about. Multi-threaded sharing of memory for example is also easy with rust, it just doesn't let you wrote and read at the same time, and so on.

                                          Q This user is from outside of this forum
                                          Q This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #72

                                          Classic example: A linked list

                                          S 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups