Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BA
Posts
3
Comments
171
Joined
2 yr. ago
  • 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.

  • Really? I feel the opposite. I thought Linus was very clear in calling out this maintainer’s bs, and I’d think it’s fair if I’m in the receiving end. I did something unprofessional: essentially tried sabotaging others while hiding behind a lie, that I “don’t care” about something while actually hating it.

    Getting called out is not the end of a work relationship. We’re all flawed, and we might not notice our own problems and think we’re doing fine, and such callouts are good for our own development, both as a person and professionally.

    But if you’re thin-skinned and think you’re better than others and so you won’t take criticisms from others, welp, can’t help ya there. I’d suggest therapy though.

  • 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.

  • $60 can buy you a lifetime license for the Affinity Designer 2, which is a fantastic alternative to Adobe’s Illustrator, which some people can’t live without. AFAIK, Serif isn’t backed by a venture capitalist as well. So, are you still happy paying $20 more for a social media app?

    Like, look, I get that we should support devs for what they do, especially if they don’t take venture capitalist money to sell their products for cheap to gain market share. But this seems really overpriced. What are you getting with an $80 app for social media?

  • 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.

  • I don’t think I’ve known of a “designated tourist area” in Japan. I lived there for a month in some town that I doubt there’d be any foreign tourist and nobody harassed me and my friends. We were even helped by the locals and police when one of my friends lost their wallet, and they were super patient about it too.

  • I’ve read (in Japanese, written by Japanese people) that those places will actually welcome you in if speak Japanese and is respectful of the place and other patrons, the latter 2 conditions just like any respectable human should. It could be that they’ve put those up due to xenophobia, but there are also those that just don’t want to deal with people who don’t respect their culture.

  • Which will in turn affect business. Nobody can buy their stuff is nobody has the money for it, unless their plan is just to keep the wealthy people alive, while at the same time, making them poorer

    It might take a while for this to play out though.

  • Fwiw mentioning, the level of fentanyl crossings is not even high, and is simply an enlarged wedge issue for the Trump administration to stave off dissuaders and forcibly push their way pass Congress to do whatever they want.

  • 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.

  • Programming @programming.dev
    Badland9085 @lemm.ee

    Am I crazy in thinking that bash is good enough for production?

    This may make some people pull their hair out, but I’d love to hear some arguments. I’ve had the impression that people really don’t like bash, not from here, but just from people I’ve worked with.

    There was a task at work where we wanted something that’ll run on a regular basis, and doesn’t do anything complex aside from reading from the database and sending the output to some web API. Pretty common these days.

    I can’t think of a simpler scripting language to use than bash. Here are my reasons:

    • Reading from the environment is easy, and so is falling back to some value; just do ${VAR:-fallback}; no need to write another if-statement to check for nullity. Wanna check if a variable’s set to something expected? if [[ <test goes here> ]]; then <handle>; fi
    • Reading from arguments is also straightforward; instead of a import os; os.args[1] in Python, you just do $1.
    • Sending a file via HTTP as part of an application/x-www-form-urlencoded request is super easy with curl. I
    Genshin Impact @lemmy.world
    Badland9085 @lemm.ee

    Hidden meaning behind Dvorak’s song

    note.com 荒瀧が披露した歌の歌詞について|原神漢字研究所

    はじめに  今バージョン4.6のテーマイベント「荒瀧・生命のロックイリデッセンスビッグツアー」にて、荒瀧一斗とパイモンが舞台で「ロック」を披露した。この記事は、その圧倒的歌唱力でかき消されそうになった歌詞の意味について、読解を試みようとするものである。  まずはその歌詞の全文を掲載する。  これだけ見てもよく分からないが、ストーリーに絡んできた「狗子商会」との関係を考えることで道筋が見えてくる。 狗子商会  今回のストーリーで判明した重要な事実として、戦時中に「狗子商会」という組織が活動していた、というものがある。ここでいう戦とは、幕府軍と抵抗軍との争いを指す。 会場の端にあ

    荒瀧が披露した歌の歌詞について|原神漢字研究所

    Hi all,

    I’ll preface this by saying that there are spoilers ahead. If you haven’t did the music event in v4.6, you have been warned.


    I thought something was really off with the lyrics in the song written by Dvorak in the Itto event in v4.6. The lyrics alone don’t seem to make sense, but it somehow includes a lot of animals, and somehow they match up with the list of animals mentioned in the list of treatments by the Puppy Union, left behind by Heizou. And there’s also the fact that Miko mentioned that the lyrics talked about a war, even though on the surface, there is clearly no such mention, at least directly so.

    Turns out I wasn’t the only one who noticed it, at least in the Japanese sphere, cause I couldn’t find any discussions about this in English. The link I shared is someone putting all the information together to infer the whole story behind the lyrics. I’ll be basing this post on that link, and give almost all credits to them for putting that information together. I’m

    Rust @programming.dev
    Badland9085 @lemm.ee

    Open Sourcing Ferrocenee

    I’m not particularly vested in Ferrocene and I won’t be using it for my own purposes (or business for that matter), but it’s cool to see that they’re not only releasing Ferrocene today, but also have a clear message saying they’ll be open sourcing their code for the compiler. Grats to the people at Ferrous Systems.

    For those who don’t know what Ferrocene is…

    Ferrocene is the main Rust compiler - rustc - but quality managed and qualified for use in automotive and industrial environments (currently by ISO 26262 and IEC 61508) by Ferrous Systems. It operates as a downstream to the Rust project, further increasing its testing and quality on specific platforms.