• 0 Posts
  • 42 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle
  • Trantarius@programming.devtoScience Memes@mander.xyzCFCs
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    Y2K specifically makes no sense though. Any reasonable way of storing a year would use a binary integer of some length (especially when you want to use as little memory as possible). The same goes for manipulations; they are faster, more memory efficient, and easier to implement in binary. With an 8-bit signed integer counting from 1900, the concerning overflows would occur in 2028, not 2000. A base 10 representation would require at least 8 bits to store a two digit number anyway. There is no advantage to a base 10 representation, and there never has been. For Y2K to have been anything more significant than a text formatting issue, a whole lot of programmers would have had to go out of their way to be really, really bad at their jobs. Also, usage of dates beyond 2000 would have increased gradually for decades leading up to it, so the idea it would be any sort of sudden catastrophe is absurd.







  • I used to consider myself republican, and I think I’m still closer to republican than democrat. I prefer small government, which is at least sometimes a republican ideal. I am also against identity politics of any kind, so I am against affirmative action. I am in favor of gun rights, with regulations that allow for appropriate tracking of who has guns where, how they are stored, how they are transported etc. However, regulations that prevent particular people from owning guns or ban any particular weapons should be very conservative. Even felons should regain gun rights after an appropriate period of time. Only ridiculously dangerous weapons, like nukes, should be outright banned. Stuff like full auto weapons should be legal, but restricted to only be stored at a gun range or something. As far as LGBT goes, I don’t think the government should have anything to do with them. Let them do what they want, let people react how they want (as long as it isn’t violent of course, which is already illegal under other laws). I’ve never been really sure about abortion. My gut reaction is to just let people do what they want, but I struggle to logically justify it as anything but murder. Not to mention the impracticality of banning it.

    I wouldn’t really call myself a republican anymore though. This is largely because of the religious aspects. I don’t know if republicans have actually become more authoritarian or if my perception has just changed, but either way they don’t seem to prioritize the same things as me anymore. Things like right to repair, net neutrality, and E2EE are important to me, but they don’t align with that at all. The party also keeps embracing identity politics, just with different identities than their opposition. Religion should be a non-factor from a governmental perspective. It doesn’t need any special protections, just to be ignored.

    If I had to call myself something, I guess I would be a ‘libertarian socialist’, however much of an oxymoron that seems to be. For instance, I like the idea of UBI, largely because it would allow almost all welfare/social programs to be eliminated (including social security). Doing so would reduce government control, because they no longer have an ability to tweak who gets what, since everyone gets the same amount.






  • When you hit the windows key (aka meta-key or super-key) it brings up the app launcher. You get a dock at the bottom with pinned or running apps (like a taskbar), and all of your open windows are presented in a sort of mini-version that lets you switch between them or move them between workspaces. There is a search bar that you can immediately type into to open any app with a .desktop file. There is also a button to bring up the app grid which shows your apps kind of like a mobile device’s home screen.







  • Well letters don’t really have a single canonical shape. There are many acceptable ways of rendering each. While two letters might usually look the same, it is very possible that some shape could be acceptable for one but not the other. So, it makes sense to distinguish between them in binary representation. That allows the interpreting software to determine if it cares about the difference or not.

    Also, the Unicode code tables do mention which characters look (nearly) identical, so it’s definitely possible to make a program interpret something like a Greek question mark the same as a semicolon. I guess it’s just that no one has bothered, since it’s such a rare edge case.



  • I find that much harder to read than a for loop. You are making a helper function to only use it once, which is kind of confusing when it is totally unnecessary. Also, distinguishing between two groups only inside the setter line is weird. Applying the modification to one group, then the other, is more obvious. Considering the alternative isn’t really longer, and only using basic loop syntax, I would just use the loop. If you really want to add the “set dots visibility” explanation into it, just use a comment, that’s what they’re for.

    I literally just now misunderstood your code and had to change my comment to correct for it.