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

help-circle
  • I had to dig through the website shoving paid services down my throat and found the script builder, is that what you mean? If yes, I can see it generate either a command using chocolatey, or a config file (to feed chocolatey?), which seems to require me to install chocolatey manually first.

    Looks like it doesn’t meet the basic requirement of being a standalone script, and requires you to do extra setup first. I’m also very much not a fan of the website so far, but I can give it a pass since ninite being opinionated in the package choice is a subjective thing.


  • The great thing about ninite is how you can go there ahead of time and generate a single file, and when you’re done installing you just run that file. I suppose one could generate a batch script that installs stuff with some other package manager (you’d need to include install/update for it first, I remember reading about how Winget can come outdated with a broken version), but the issue with that is simply that ninite definitively exists and works reliably, while I don’t know any such service to generate install scripts.





  • some of my games didn’t launch, complaining about missing stuff.

    I don’t know Slackware, but I know on arch there’s the standard steam runtime version, and then there’s the unofficial steam-native-runtime, which uses system packages instead of steam’s own bundled runtime. And if we’re talking native Linux games, which is where the problem is, they tend to not work with steam’s runtime, presumably because they weren’t properly built to target it, and need to be launched with the native runtime (or switch to running the windows version with proton…)



  • If it makes more sense to focus on your specialization while paying somebody who specializes in local food delivery to do the delivery… No, yeah, that kinda sounds right. The actual issues I see here are not valuing the labor of delivery and getting too lazy, and maybe an issue where people are generally too time-pressured to take a break to get the food.


  • One counterpoint - even with a weak speed to capacity ratio it could be very useful to have a lot of storage for incremental backup solutions, where you have a small index to check what needs to be backed up, only need to write new/modified data, and when restoring you only need to read the indexes and the amount you’re actually restoring. This saves time writing the data and lets you keep access to historical versions.

    There’s two caveats here, of course, assuming those are not rewritable. One, you need to be able to quickly seek to the latest index, which can’t reliably be at the start, and two, you need a format that works without rewriting any data, possibly with a footer (like tar or zip, forgot which one), which introduces extra complexity (though I foresee a potential trick where the previous index can leave an unallocated block of data to write the address of the next index, to be written later)




  • I don’t think OOP’s nature makes them necessary, so much so as it enables them and popular programming principles encourage them. I think they’re a good thing, especially if there’s a way around them in case you can’t get the public interface changed and it doesn’t work for you, especially for performance reasons, but that should be done with care.

    Funny story, when modding Unity games using external modloaders you’re writing C# code that references the game’s assemblies. And with modding you often need to access something that the developers made private/protected/internal. Now, you can use reflection for that, but a different trick you can use is to publicize the game’s assemblies for referencing in your code, and add an attribute to your assembly that tells the runtime to just… Let you ignore the access checks. And then you can just access everything as public.


  • If it was a single question, that does sound lame, my other thought was that those “online polling tools” might not be viable because you can’t put internal company communications into them… But if it’s stuff like food choices or something, then that might also not be a problem.

    That said, my point still stands - what you describe does sound like what I’m saying. If you make a sheet with a dedicated field to put the answer into, it should be possible to reliably automate pulling out answers from all the files with excel-level knowledge, and without any additional sites or servers, just spreadsheet editing software and email.




  • I think most of the work is in the fact that there often isn’t an “equivalent call”, and it can be quite a lot of code to make it work. One funny thing is the whole esync-fsync-ntsync issue, where synchronization is done differently on Linux and on windows, and translating it was a big performance hit, and difficult to do accurately. If I understood correctly, esync, fsync and ntsync were a series of kernel patches implementing additional synchronization code in the kernel, with ntsync actually replicating the windows style.


  • I don’t think “update notes or any marketing material” qualifies for making this kind of change non-silent - if the update is pushed through the same channel as regular security updates, and doesn’t explicitly notify the user the behavior of the button has changed, that’s pretty silent.

    Often for those kinds of updates software will show a special introduction screen, tutorial, or outright a prompt asking you to choose between the new and old behavior - but that’s software from people that care about the user having a good experience, and making such changes is a big deal for them.




  • Now it seems every tutorial I see is really just clicking around in a gui. Very little actual typing of code, which is the part I actually find cool and interesting.

    Not sure where you’re seeing “just clicking around in a gui”, but if you like computer games, there’s some fun gameplay you can have while coding. Some of those very much contributed to my experience.

    BitBurner is a free idle incremental programming game, where you write scripts to hack things to make money to begin with, progressing onto both progressively more complex mechanics (how about automating a manufacturing corporation with a script?) and utility scripts to automate things you’ve been doing manually.

    If you like Minecraft, there’s fun to be had with ComputerCraft, scripting things in Lua. With some add-ons (Plethora IIRC) you can access chest inventories via cable and transfer items between them, and set up your own fully automated storage system with recursive autocrafting, as just one example.

    Or how about modding games - if there’s a Unity game you enjoy that doesn’t use IL2CPP, like Risk of Rain 2, it’s very moddable using C# and interacting with Unity APIs, and for advanced stuff modifying the underlying IL that C# compiles to. Quite a lot you can learn, and if you stick to pure code mods to begin with, not that hard to get started - though code mod means nothing like new items, new enemies, new characters, buildings etc. since adding models/textures/sounds tends to be more involved.