• 0 Posts
  • 20 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle
  • I’m probably replying to a troll, but I will do so anyways for the sake of those who need to read this.

    If we aren’t in any way bothered to see such narrow-minded reactions to a wrong being righted, then humankind is definitely headed for a few horrible decades ahead, filled with unnecessary strife and conflict out of pure indifference to each other’s backgrounds and current understanding of the world. And I’d even imagine it’d be worse than what we’re already seeing this decade. I suggest you go back and rethink what really matters as humans, instead of focusing on just some narrow definition of what a win is.


  • Wow, wtf is wrong with this comment section? People don’t realize how laws made in the past just stay around until someone steps up to change it? Or y’all don’t have the capacity to look at the world through a different mindset, even if you disagree with the mindset? As much as we all hope that people around the world are accepting, it doesn’t just happen, and you can’t just hope people who don’t understand your PoV will just realize something’s wrong waking up one day.

    Either those, or y’all have either grown too cynical or are trying to be cynical just for the sake of it.

    Can’t y’all just celebrate the fact that this is happening in Japan, an infamous nation that usually tries fervently to preserve their tradition and status quo?


  • Many of these meanings seem to be captured in some modern solutions already:

    • We plan to provide a value, but memory for this value hasn’t been allocated yet.
    • The memory has been allocated, but we haven’t attempted to compute/retrieve the proper value yet
    • We are in the process of computing/retrieving the value

    Futures?

    • There was a code-level problem computing/retrieving the value

    Exception? Result monads? (Okay, yea, we try to avoid the m word, but bear with me there)

    • We successfully got the value, and the value is “the abstract concept of nothingness”

    An Option or Maybe monad?

    • or the value is “please use the default”
    • or the value is “please try again”

    An enumeration of return types would seem to solve this problem. I can picture doing this in Rust.


  • I swear, these bad EULA updates that basically force users to “accept the agreement, or we’ll brick your device” needs to fucking stop and be made illegal. The price that’s set for a product, especially a damn physical product, should include the acceptance of an existing EULA, and it should be honoured even when new ones come out and the user chooses to not accept the new agreement. You’ve basically never owned the product if companies can just pull the rug underneath you, and render your hardware useless. And you can’t foresee such changes too; a predatory company can acquire one that you’ve trusted and pull this shit. It’s borderline daylight larceny.


  • 2 things I like about golang is just 1) the ease of getting someone to start work, and 2) goroutines. I have no complains about goroutines cause I’ve barely used it, and when I do it’s been fine. The first point though, I’d say the simplicity of the language is a double-edged sword — it’s easy to learn with little surface to cover, but it forces you to implement a lot of basic machinery you find in other languages by yourself, and so your codebase can get clunky to read really quickly, especially as your project grows.

    Not trying to dissuade you from learning golang tho. I think it’s a good language to learn and use, especially for small simple programs, but it’s not the great language many try to say it is. It’s… fine. There are many reasons why it grinds my gears, but I’m still fine with using it and maintaining it for prod.


  • Badland9085@lemm.eetoProgrammer Humor@lemmy.mlIn case you forgot.
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    9 months ago

    Ehhh, golang’s pretty down there for me too. Sure, you have types, but the way you “implement” an interface is the sussiest thing I’ve seen in most well-known programming languages. Not to mention all the foot guns (pointers for nullables is a common one, and oh, if you forgot that a function returns an error, and you called it for its effects, you’ve just built a possibly very silent bomb) you end up building into your programs. I use in prod, and I get scared.


  • When you have a large population with a strongman government, having little appetite for upheavals is likely impossible. Interacting with the Chinese, I’ve learned that their government is always actively monitoring online spaces to silence dissidents amongst their own people, such that their people are used to codify their languages, and switch whenever a code gets added to the list of words that would trigger the attention of authorities. Some years ago, it was something related to meditation (it was used as a code for their gatherings), and so the Buddhists had to change the word they use to avoid unnecessary trouble with the authorities. These don’t get mentioned very often in Western news sources.




  • A washer beep is like a webhook: if the recipient fails to acknowledge it, it’s gone forever. A notification is like an /events endpoint: the recipient can catch up on events at their own pace, and be reminded of and see events they haven’t processed.

    Reference

    Half-jokes aside though, I think what we want here is a reminder, i.e. a todo with a timed alert. Beeps can be missed and timers can be stopped (e.g. when you’re occupied), so they aren’t the most fool-proof solution here. Reminders will at least sit in the notifications list until dismissed.


  • I intended to give an explanation, but since this community is pretty general, i.e. we have people from basically all walks of life here, many with little to no involvement or understanding of the tech industry, so I decided to leave it out cause it would be too much to explain.

    rolauten@startrek.website has given us a pretty brief explanation, but I think it can be further simplified, though would require a lot more knowledge build up (i.e. more words). If anyone’s interested, I can try to write a fireplace story, though I can’t say I’m the most qualified person to do so, or give an absolutely accurate story.




  • Badland9085@lemm.eetolinuxmemes@lemmy.worldAverage Arch exp
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    11 months ago

    While this echoes some other comments, this meme should go soon. I’ve used Arch for years at this point, and if there’s ever something wrong, it’s generally my fault, and the official announcement and mailing list do a pretty good job telling you what you should do before upgrading your system. Install a tool informant to check for unread news for you for when you try to update, and stop your upgrade transaction if there are news you haven’t read. These announcements are pretty rare. My system’s also been rock solid. I read that they have an official installer now to help ease installation. Things are pretty great with Arch.

    On the other hand, Ubuntu has been a pain in the ass. Putting aside the horrible experience with dist-upgrade, Gnome has been the most painful DE I’ve ever used.

    • Odd resizes of my windows on sleep & wake on a multi-monitor setup.
    • Randomly spawn the password prompt on sleep & wake, with no way to remove the prompt unless I do a pkill gnome-shell and let the DM restart gnome-shell.
    • Software Centre can just randomly fail to fetch package updates. Update installs through software centre can also fail with the most unhelpful messages.
    • Software centre will stop a full update if there’s an app in the list that’s running. Arguably a feature, but not all apps require that. That decision should be left to the discretion of the app maintainer. Users can individually update other apps to circumvent the problem, but that’s a paper cut to me.


  • You are correct. This notion of “size” of sets is called “cardinality”. For two sets to have the same “size” is to have the same cardinality.

    The set of natural numbers (whole, counting numbers, starting from either 0 or 1, depending on which field you’re in) and the integers have the same cardinality. They also have the same cardinality as the rational numbers, numbers that can be written as a fraction of integers. However, none of these have the same cardinality as the reals, and the way to prove that is through Cantor’s well-known Diagonal Argument.

    Another interesting thing that makes integers and rationals different, despite them having the same cardinality, is that the rationals are “dense” in the reals. What “rationals are dense in the reals” means is that if you take any two real numbers, you can always find a rational number between them. This is, however, not true for integers. Pretty fascinating, since this shows that the intuitive notion of “relative size” actually captures the idea of, in this case, distance, aka a metric. Cardinality is thus defined to remove that notion.


  • Information is power. Telecommunication have changed the landscape of business, warfare, and how we live. It allows us to make “better” decisions for what we set out to do. Whoever holds more information, and has the chops to analyze it, controls the board. The closer that information is to individual people, the sharper it is as a weapon.

    Having power too concentrated in one place or a few has led to disastrous consequences in human history. Privacy is simply a way to hold that power back, so that the most sensitive information are kept away from unknown hands.

    Privacy also allows us to be ourselves, in the sense that we have different fronts of ourselves. We have sides we don’t necessarily want to show to our parents, but we show it to our friends or spouse. Not everyone has the best of relationships with everyone around them, and so there are sides we don’t want everyone to know, lest they get used as a weapon against us, either for others to exploit, or hold us ransom. If you’d like an example, imagine having an overly possessive religious parent, and you’re an atheist, but you don’t want to confront your parent because you’d like to avoid trouble. When thought in that way, privacy is a right that humans should have, and it is each person’s right to release what information they have about themselves to whoever they wish.