• 38 Posts
  • 1.41K Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle



  • Generally I think “I agree with *.hexbear.net” is a pretty telling sign for the opinion that’s about to come next

    The reason people say stuff like this though is because while you can try to force it into behaving like windows, you’re going to get a much better experience if you let go of that and embrace the differences

    Tiling window managers, package managers and command line tools are all examples that you just don’t really get properly using windows and they provide a lot of the reasons people want to daily drive linux





  • Check protondb instead of winehq, it’s normally accurate and something like 95% of games are playable now

    Though no games outside of steam, personally I don’t have many games on anything other than steam that I want to play so I don’t know how other launchers fare (though heroic is a thing for epic and gog)

    Notepad++ I couldn’t say because I only really use terminal based stuff now with the aforementioned million shortcuts, but I think kde’s built in one (Kate) does exactly what you want

    Nvidia drivers aren’t that much of a problem anymore, last big issue for me was explicit sync which they fixed a couple months ago (though some distros make it a bit of a pain to install them)

    Rdp not an issue unless the machine you’re rdping into is using strict AD settings that only allow connections from other AD machines, you should use Remmina imo it’s very good

    Xbox one controllers should work fine, I don’t own one but I’ve used controllers that present themselves as Xbox one controllers

    Only controller that hasn’t just worked perfectly straight away is PS5 and that was because of a Bluetooth setting

    As for distro, bazzite is probably a pretty good one to look at, it’s immutable so there’s a limit to the amount you can break it though sometimes it can make more technical things difficult to do

    MPV is a frontend by itsself, just set it as your default in your file browser and it’ll play video files if you open them

    Depending on the game modding can be a challenge. If mod organizer supports it you can usually get it to work fine, anything that supports mods by default will generally be fine and Minecraft is pretty much the exact same modding experience as windows

    While you can do a lot on Linux without the terminal now you shouldn’t be afraid of it as it can often be the quickest and easiest way to do things. It’s one of the big advantages of Linux in general that the terminal experience is so good





  • flashgnash@lemm.eetoProgrammer Humor@lemmy.mlComenting code
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    18 hours ago

    “tells the user the current time” would be an excellent comment for a clock

    I’m not the best at commenting my code, but generally I just try to think of what information I’d want to know if looking at this 10 years from now

    Imo comments are best used sparingly, don’t bother commenting something that anyone with a basic understanding of programming would understand straight away by reading the code

    Functions should generally be commented with what parameters are and what they’re for, plus what they output

    use reqwest::Client;
    
    // create a http client class that all other files can import 
    // so as to only create one instance globally 
    
    pub struct HttpClient {
        client: Client,
    
    }
    impl HttpClient {
            pub fn new() -> Self {
                HttpClient {
                    client: Client::new(),
                }
            }
    
            pub fn client(&self) -> &Client {
                &self.client
    
            }
    
    }
    

    Here’s an example where if I were to stumble onto this file 10 years from now, I might think wtf is this looking at it out of context, the comment explains why it exists and what it’s used for

    (we’ll ignore the fact I totally didn’t just add this comment because I suck at commenting personal projects)








  • Does seem that way

    I’m not sure real people can be compared to fictional in that way, as your friend has infinitely more character because he’s a real person

    If you were to ask your friend what his favourite food is, or what his opinion on pineapple on pizza is, or what he has for a desktop wallpaper he’d have answers for all of those questions or a reason he doesn’t have an answer

    If you were to take one of these hollow characters I’m talking about and ask them that question the answer would just be made up on the spot

    If your friend showed up in a TV show for 5 minutes just as himself in a situation he would realistically be in I can guarantee he’d feel real and natural because he is a real person with a history