• 0 Posts
  • 48 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle

  • Neither does the use of an LLM mean you do not understand thoroughly what you submit. He doesn’t give a crap how the code was created, as long as you, the human (I hope), understand what you are submitting and can take accountability for it. You are still responsible for whatever crap comes out of an LLM, the same way that you are responsible for what comes out of the compiler. Doesn’t mean you shouldn’t use compilers or LLMs.



  • There used to be a decent argument for the taboo on sex. Namely that it produces children. And children should not be born to a woman without someone to support her financially. Hence the sudden weddings when a girl got pregnant. This protected the woman, who would otherwise had to raise the children without a father.

    Religion was used as a means to enforce this protection.

    But in the modern world, this idea just doesn’t work anymore. Sex doesn’t need to produce children, children can be raised by one parent, and woman can take care of themselves without help of men. So all layers of the problem have been removed.

    My point: religion used to have a point, but failed to get with the times.







  • I have barely any experience with raw gdb, but debugging is something that allows for a lot of contextual actions. Even just placing a breakpoint is simpler if you can click the line instead of copy-pasting the line number. But also evaluating expresssions while on a breakpoint, or a graph with an overview of all threads. I doubt these are straight-forward commands in gdb, and if they are, you need to figure out the exact parameters (like line number).

    Furthermore, I have tried raw gdb once, and got super confused as to what I was supposed to do or look at. Yet every IDE makes it trivial to use debuggers. Learning the options available to you is much easier in a well designed GUI.


  • GUIs just being front-ends for a CLI tool is a horrible idea. This is why most git GUIs fail so terribly. I have seen too many of those where all the buttons were just replacements for CLI calls. If it is just a front-end for a CLI, then why the heck not just use the CLI?

    A good git GUI has not been designed to just wrap the CLI. Instead, it works with the structure of git (commits, branches, tags, etc), and builds around those from the ground up. Only once the functionality has been designed should the question arise: What CLI commands do we need to implement this?






  • But how does the Rust compiler do that? What does it actually check? Could I write a compiler in C that does this check on a piece of Rust code?

    C is so simplictic, that if I can write a piece of functionality in C, I must understand its inner workings fully. Not just how to use the feature, but how the feature works under the hood.

    It is often pointless to actually implement the feature in C, since the feature already has a good implementation (see the Rust compiler for the memory safety). But understanding these features, and being able to mentally think about what it takes in C to implement them, is still helpfull for gaining an understanding of the feature.



  • I have this experience with a certain type of pedestrian traffic light “button”.

    I quote button, because nothing physically moves when you press it. I’m not sure if it registers pressure or heat, but you don’t even feel anything move when you press it.

    Usually when you press the button, a red text lights up on the button, telling you to wait. This text gives you feedback that the button registered your press, and the traffic light will schedule a green light for you.

    However, sometimes you didn’t press hard enough, and the text doesn’t light up. Simple solution: press harder.

    But there is a scenario where it doesn’t matter how hard you press, the button won’t light up. You keep staring at it, while slamming the damn thing with the fury of a Hulk wealding Mjolnir. Still, nothing lights up. The reason: the light instantly went green, so it never needed to light up the text telling you to wait. And all that time slamming your fist on the button, could have been spend crossing the intersection. Instead you have been standing there, looking like a drunk person having a fistfight with an inanimate object.



  • I remember a javascript library where the was a function that returned, according to the documentation, “a color”. Did it return an object with 3 fields? Were those fields RGB or some other color scheme? Is it a string encoding a color? What format is that string? None of these questions could be answered without just running the code, and analyzing the object you got back.