• 3 Posts
  • 171 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • It seems like the author thought stack traces are underrated because people don’t like exceptions and don’t always throw. It seems like they don’t understand why people don’t like exceptions, and think that stack traces should be there for every case where the author thinks should be an exception, and ties the desire to avoid exceptions to some strawman use case — a nice looking output — and called it “modern error handling”.

    Error / exception handling is separate from stack traces. You don’t need to have an exception to have a stack trace, and stack traces aren’t just used for exceptions.

    They also seem to not understand why people make do without stack traces in a microservice architecture. That’s simply not true. First off, you can still get stack traces of individual services. And secondly, if you build your services to accept, eg, something like a tracing ID, and print it along your logs, you essentially have a stack traces across services. In a web service, you can track the work done by all your systems for a single request from the client.

    Now, onto why exceptions are somewhat disliked. Let’s just get the simple stuff out of the way: they’re generally bad for performance; they’re invisible to the method caller until they run into the problem, meaning you can’t ever ship updates that you’re confident won’t fall over disgracefully; try-catch hell, etc.

    For a slightly more philosophical answer, why aren’t your exceptions just cases you need to handle? The try-catch pattern essentially builds up a separate channel of logic where your program needs to operate in but is expressed or recorded in very fragmented ways, forcing devs to have to pop open every function to look at why something is thrown, and hope that somewhere down the stack, no new exceptions are being thrown and not handled. The logic behind exceptions becomes second-class citizens that programmers can easily forget, instead of being front and centre. Can’t divide by 0? Tell me instead of setting me on a separate handling path. Why should I try-catch every single method call, or even property access? Don’t wait for the user to hit the call and just tell me that something is supposed to be impossible, or if I should handle the case where it doesn’t hold any values, right as I compile (dynamic languages can’t really do that).



  • Don’t think I saw these mentioned so here ya go:

    • Little Kitty, Big City
    • Any of the Atelier games if you don’t mind anime, though the upcoming one may not be as relaxing in terms of its story.
    • Timberborn, though some might feel stressed about handling droughts. You can turn the difficulty down and it’ll just be a cute diorama where you build a city (or cities) with beavers.

    And this is extra but grab your friends and family and play some couch co-op. It can help get your mind off things and just enjoy being in company of loved ones.

    Aand if you want to eventually find something that will keep you hopeful in the face of despair, in a healthy way, I recommend the first part of Honkai Impact 3rd. It’s long, has lots of depressing moments, enough to make fans call it Depression Impact. The story touches on themes of existential horror, suicide, duty, death of loved ones, humans who have no morals and believe that all rights and wrongs as transient, cosmological threats, etc. Despite all that, I’d actually say that it’s a story about hope, and what can lay the foundations for hope. It’s definitely fan-service-y, and it’s a gacha game, but very much ignorable and playable without investing any money in it. It’s also made by a Chinese company, but maybe that can help with recalibrating perceptions on Chinese people, instead of what we’ve come to know through their government. Of course, if you’re susceptible to gambling addictions, please feel free to ignore this recommendation.



  • Like I mentioned, just because you dislike something, doesn’t mean it’s actually unfavourable, or that other people shouldn’t see it, and that holds true a lot of the times, unless you’ve sort of geared yourself such that what you dislike is also something unfavourable. But even so, you can’t assume that other people would be or do the same.

    And yeah, they’re functionally the same, but the intent is different. The point here is that votes have intentions behind it, and what we’re telling you is that it shouldn’t be a self-centric intent.

    For your last question, I actually don’t really have a good answer for you. I’ve seen many people react in similarly clueless ways in order to rile others up. I’ve also seen too many who can’t look at things pass their own lenses, can’t properly put themselves in someone else’s shoes (despite claiming they do, but what actually happens is that they’ve set up a convenient strawman of the person and put themselves in that instead), and can’t think for the sake of others, and how this shows through how they use social platforms. So I guess I’m being wary.


  • There’s likely no such thing. How you interpret upvotes and downvotes is up to you. But don’t you think that’s a more much more useful measure than “I like this” and “I don’t like this”?

    1. Nobody knows who upvoted or downvoted, at least if you don’t get to see the database or server logs. This means nobody would really know if you in particular liked some post or comment or not. IIRC Lemmy doesn’t even show you what your upvotes and downvotes are. This means you wouldn’t remember what you upvoted or downvoted.
    2. What we like or dislike has nothing to do with what is good for more people. We can dislike something, but it doesn’t mean that that something isn’t good for ourselves, or everyone else.
    3. Votes can sway where a post/comment appears depending on the sorting option.

    Given all that info, you should know that votes matter not for yourself, but for others. Want something to be more visible up top in the Top sorted comments? Upvote. Up in Hot? Upvote. Want them down the list? Downvote.

    So then the final question is, well how should I decide what do I want to be more visible and what do I want less? That’s really up to you and what you think your relationship with other people and your world is. You want chaos and like watching the world burn and have yourself caught in that too? Upvote crazy takes and downvote the sane voices of reason and care. Want to promote a healthier world where people have useful conversations that help each other in their lives? Upvote those good comments that do so.

    Get your mind off the kind of Facebook voting treadmill where it’s your own visible voice and that everything is just about “me, me, and me” and focus on others for once.

    Ofc, if you want to be a troll, have at it and do whatever you want. I’ve wasted my words on you, but I’ve at least left some words for other people.


  • Uneducated 2 cents. afaik the publishers have some kind of “part ownership”, where they can pull it out from the store whenever. The “anti-piracy” feature you get with DRMs is why many publishers actually like them tho. The part ownership thing is just icing on the cake. So no, a good chunk of publishers won’t be furious at all. DRM gives what publishers want and more, at the expense of the consumers in a way that most wouldn’t realize.

    And if anything, I think it makes more sense to think that these publishers are also just granting Amazon some kind of “license” to sell their e-books.

    Amazon would absolutely be destroying their relationship with a publisher though, if they decide to block the selling or access of a book to large group of people who are would-be buyers. But, at the end of the day, publishers want to know how much they’re making from putting their e-books on Amazon, and as long as that revenue is enough to satisfy their needs, they don’t need to care too much about the odd customer who had their book revoked, and they would generally be pretty shielded from any sort of disputes as long as Amazon is making those revoking calls.


  • This was pointed out in another comment but I will basically echo it to just give that call a boost: Point your instructor to well-regarded sources for introversion and extroversion, and let them know that the labelling in their note is not only inaccurate, it falsely attaches a wrongly defined word onto problematic behaviours that have nothing to do with what introversion and extroversion is, which is not good because it propagates a false narrative.

    If your instructor doesn’t seem cooperative and insists on being correct, talk to other instructors that you trust, or even go to those with more authority to tell them about the issue. If you can’t get anyone to actually do something, I suggest you change schools immediately, and call the school out for what they did.

    Maybe it’s just one of those days, but I have no tolerance for this sort of false narrative being spread, even if the original intention is innocuous, and especially in a school. Being forced to act in a certain way that deviates from one’s personality to not be perceived as a problematic person, especially over a badly-informed opinion, can have lasting negative consequences to children and adolescents. I’m tired of seeing introverted friends and family members suffer over the fact that they’re introverts, to the point where they will deny being an introvert and even echo these sorts of statements in order to blend in.




  • DoFo looks for what gets him votes and does the thing. I’ve, thus far, seen no other principles behind this man, maybe except for his obsession with Toronto. Of course he’ll play Captain Canada cause why would you not play that to get people to think they can rely on you? He targeted bike lanes because Ontario is car-centric and most people are forced to be motorists, who are generally inconvenienced by bike lanes in the short term, and it’ll get him the support he wants. He struck down education workers’ rights to strike, because families are inconvenienced, and there are a lot more families than there are education workers. 200 bucks rebate with no regards to the cost of actually sending out that money, just because it’ll most probably get him the support he wants.


  • And lemme guess what we’ll hear in the next couple of weeks or months:

    “I’ve made the best deals with Canada and Mexico. They’ve been rude and uncooperative in helping us secure the borders, but now look, they had to.”

    And then there’d be the the suckers and ass-kissers:

    “Fentanyl’s not a thing anymore in the USA because of Trump.” (says a person who lives in a neighbourhood never affected by fentanyl abuse)

    “President Trump has made our country more secure than ever, preventing illegal immigrants and drugs coming in from Canada and Mexico, while making them pay for it.” (vixen news or something)

    “Illegal immigration was at an all time low under President Trump.” (says a person who’s never looked at the stats)

    Given what was actually realized, Trump did not have to play coy and use tariffs as threats, and it would’ve been a rather easy call to ask for what he wanted. He’s essentially sent US allies on a wild episode to essentially bully them to show off his regained powers.

    Oh, and of course he only “pauses” the damn thing. He could re-use it after all. Classic bully behaviour.





  • You could create an account that blocks off communities for news and technology, and any other communities that have a high likelihood of reporting on current events. Just switch to the account on days where you just don’t want to read such news, for any respectable reason you may have (it’s understandable, it can be draining).

    This should be a no-brainer, but Lemmy doesn’t really filter stuff out by default, unless the admins decide so. So as long as you’ve created an account on a fairly managed instance, and given that the current news cycle, especially in the Western & English-speaking world, you won’t be able to escape Trump and Musk, especially when they’re dominating headlines due to how they are literally affecting the lives of millions, if not billions, of people.



  • It’s the 21st century. Many of us are educated enough and have a strong enough image of what a country is. Any country may try to annex any land, but they’ll almost always face resistance. Even in the event of a full annexation, you can’t stop the people from revolting, essentially making your country look as miserable as possible to everyone. Heck, even the full cleansing of an entire population won’t guarantee you’ll reach long-lasting stability on annexed lands; people will hide, repopulate, teach their descendants about their past and forever torture your nation and its people, however horrifying of a worldview it may sound like.

    I remember reading somewhere that some department in the US gov have a paper on their inability to annex or even control foreign lands and their people. Essentially, it doesn’t matter if the USA has the most powerful military in the history of humanity; it cannot conquer the minds of people today, and will suffer from instability for a very long time.



  • You come from a healthy background is what I’m hearing. And that’s good, and I don’t mean that in a derogatory way. What you have there is absolutely the right mindset to have. These tools are made by humans, who have their own set of problems they want to solve with their tools. It may not be the best tool, but it can work pretty damn well.

    However, it’s also not uncommon to see communities rage and fight over the superiority of their tools, if not just to shun those that they think are inferior. It’s a blatantly childish or tribalistic behaviour, depending on how you look at humanity. And you’ll see this outside of programming too; in the office, in town, on the streets. People engage in this behaviour so that they can show that “I am on your side”, for the side where they think is the right or superior side, based on factors like a perception of group size, a perception of power, a perception of closeness. It appeals to a common human desire to belong to a strong group. It appeals to the human desire to feel safe. And when you start looking at it that way, that’s not too different from how animals behave. It’s important to note that not all humans have the same amount of desire for this sort of tribe, or would give into that desire to engage in such behaviours, but it’s not surprising to see.

    In any case, this article is essentially a callout to the sort of toxic behaviour done for the sake of feeling superior, that exists within the programming community, to a point where some may even say is a major subculture.