• 0 Posts
  • 60 Comments
Joined 2 years ago
cake
Cake day: July 5th, 2023

help-circle
  • For 2, one of the few pieces of Windows software that I haven’t been able to replace in Linux is GetRight. Many HTTP servers support downloads starting at an offset from the beginning of the file, and GetRight uses that to allow download pausing and resumption.

    It was a real life saver back when I had an extremely flaky Internet connection.

    EDIT: Thanks for all the suggestions, I’ll definitely take a look at them. Simply resuming downloads is why I initally started using GetRight, but it also came with a bunch of other useful tools that I came to rely on. While I’ve been able to replicate some of the basic functionality with individual browser plugins or programs, I haven’t seen anything that integrates it all so well, with such a smooth interface. I haven’t looked for a long time, though, so maybe one of your suggestions will be the one!





  • I recently wasted multiple evenings going through this with my partner’s photos on both OneDrive and Google. It was a nightmare, trying to disentangle their systems from the cloud, and delete stuff from the cloud (they were hitting the free quotas, which was causing problems) without also deleting that content locally.

    I ended up doing a full backup from the cloud to an external drive and unplugging it just to be sure, then carefully using the awful web interfaces to delete a bunch of photos and videos from the cloud after deactivating all the auto-backup “options”, which is apparently the only way to do it without also wiping your local media. There doesn’t seem to be any way to do it while using the “service” normally on the device; any attempt to delete from the cloud will also delete your local copy.

    People have called me paranoid for seeking out and removing/deactivating these “services” with extreme prejudice on my own devices, but this experience was even worse than I’d imagined.


  • Assembler, BASIC, Old C code, Cobol…

    …Pascal, Fortran, Prolog, Lisp, Modern C code, PHP, Java, Python, C++, Lua, JavaScript, C#, Rust…

    The list is infinite.

    Show me a language in which it is impossible to write spaghetti code, and I’ll show you someone who can’t recognize spaghetti code when it’s written in one of their favourite languages.


  • In order to make the game small enough to fit on a cassette tape they had to ditch basic and program the entire game, world in assembly.

    Putting aside the fact that the majority of commercial games of the time were written in assembly (or other low-level languages) just as a matter of course, I strongly suspect that programming the game in assembly was an execution speed issue, and not a cassette space issue. Regular audio cassettes easily held enough data to fill an average 8-bit home computer’s memory many times over, whether that data was machine code or BASIC instruction codes.



  • Maybe instead of usernames, the instances could store/trade… salted hashes of the usernames where the salt is the title or unique identifier of the post/comment being voted on?

    I didn’t have time to reply earlier, but I was thinking the same thing, except with the extra step of replacing the username with a unique user identifier randomly generated at signup by the user’s instance and kept secret.

    I wonder if there’s a way to prevent people from even knowing that two different votes came from the same user.



  • I think it depends a lot on a person’s individual knowledge. If you keep studying far enough away from your main area of expertise, there’ll still be some point where you stop and have to blindly accept that something “just works”, but it will no longer feel like that’s what your main field is based upon.

    Imagine a chef. You can be an OK chef just by memorizing facts and getting a “feel” for how recipes work. Many chefs study chemistry to better understand how various cooking/baking processes work. A few might even get into the physics underlying the chemical reactions just to satisfy curiosity. But you don’t need to keep going into subatomic particles to have lost the feeling that cooking is based on mysterious unknowns.

    For my personal interest, I’ve learned about compilers, machine code, microcode and CPU design, down to transistor-based logic. Most of this isn’t directly applicable to modern programming, and my knowledge still ends at a certain point, but programming itself no longer feels like it’s built on a mystery.

    I don’t recommend that every programmer go to this extreme, but we don’t have to feel that our work is based on “magic smoke” if we really don’t want to.

    ADDED: If anyone’s curious, I highly recommend Ben Eater’s YouTube videos about “Building an 8-bit breadboard computer!” It’s a playlist/course that covers pretty much everything starting from an overview of oscillators and logic gates, and ending with a simple but functional computer, including a CPU core built out of discrete components. He uses a lot of ICs, but he usually explains what circuits they contain, in isolation, before he adds them to the CPU. He does a great job of covering the important points, and tying them together well.


  • Redkey@programming.devtoProgrammer Humor@programming.devPain
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    2 months ago

    So this is a list of responses given by AI when you correct it? My guess was “Things you will never hear from a client when you politely point out a logical inconsistency, an incorrect assumption, or a wild over/underestimation in their project plan.” 'Cause in my experience the response you will get, 99% of the time, is “That won’t happen.”





  • What’s the word? I started looking but realized I have better things to do. Before I stopped I did find “nips” and “chow”, both of which have completely unrelated, normal meanings. Hell, I didn’t even know “chow” could mean anything other than food until I read the definition in the dictionary file.

    There are several other racist, sexist, and generally rude words in there too. There is even a slur which has been used against me, and it’s defined as such (one meaning among many), but I say leave them. Well, maybe “cunt” could go without being missed.



  • I don’t think that even C++ is that bad. Like a lot of shows and music acts, I think it’s more the toxic fan base than the thing itself that really sucks. I’ve had the same feeling with a certain kind of JavaScript programmer.

    *Edit for clarity: I’m not saying that the entire C++ community is toxic, just a vocal segment of it, in line with the other examples I gave.

    The added difficulty with this in programming is that it can be much harder simply to ignore them, because you may be forced to work with them, or stuck needing to learn something from them (shudder).


  • Tail recursion in particular is usually just turned back into a loop at the compiler, and typical modern architectures implement a call stack at the hardware level, which allows you to do limited-depth recursion, but breaks like in OP if you try to go too deep.

    Yes, in my experience this is what the term “recursion” means in a programming context; it doesn’t usually refer to a mathematical ideal. That was what tripped me up.



OSZAR »