• 6 Posts
  • 883 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle
  • I’m currently prototyping a macro to help reduce boilerplate, as part of a more general library. And I’m doing some wild shit, like defining the fields of a data type from the parameter list of a function.

    But then, yeah, what I’m now stuck on is that my generated code references a data type under one name, but it’s actually got a different name in the public API. All the wild shit was smooth sailing, but a technicality now fucks me over. 🫠



  • Pretty sure that knowing COBOL isn’t the hard part. It has relatively few language concepts.

    This lack of language concepts just makes it difficult to reason about it, so that’s what you’re getting a paycheck for. Well, and possibly also because it might take months to have a new dev figure out your legacy codebase, so it’s cheaper to keep the current dev by paying them competitive prices.


  • Oh man, a few years ago, we had a military dude as conductor in our wind band. And I was always one of his favorites, I’m guessing because I have broad shoulders and a deep voice – prime military recruit material.

    …except that I’m vegan. So, one day he sits next to me during lunch and asks me why I’m vegan. I do the usual dance of avoiding the topic, but he does not want to let it go. So, I tell him that I think killing animals is wrong. He walked out of that conversation like a hurt gazelle.

    Like, fuck me, dude, if you’re gonna do the whole military tough guy spiel, but cannot take a kid disagreeing with you, then maybe you’re not as tough after all.


  • That argument annoys me so much. Each vegetable does cover all amino acids, they just don’t have them in the exact relations that our body needs. But if a vegetable has only 50% of one amino acid compared to the distribution that our body needs, then you can abso-fucking-lutely just eat double of that vegetable. Or as you say mix-and-match.

    A typical Western diet includes far more protein than the body needs for maintaining itself either way.


  • Ah yeah, there’s various technologies that I don’t mention too loudly. For example, all things considered, I’m probably an above-average Python dev, but I never enjoyed writing it, so when I get asked about it, I always answer that I’m not too confident with it.

    Which, in my defense, isn’t even really a lie. My specialty is large-scale projects, which is something where Python with its loose typing just does not give you confidence…




  • I’m saying spray-mop the floor once a week and you’ll take most of the dust out of that room before it settles on harder-to-clean surfaces, which reduces how often you need to clean shelves, plants etc…

    Most dust in a typical household is from shed skin cells, from either humans or pets. And I do imagine that most shed skin cells just fall onto the floor at first and can be collected there.





  • That’s kind of why I never feel great about buying video games. The price is pretty much entirely arbitrary.
    Like yeah, they did an investment, it is fair that they recuperate that. But the actual price they need to ask of each customer entirely depends on how many customers there are.

    And so, they will always start out asking more than what they expect to need to ask of each customer, which just feels like I’m paying too much.
    But even when they do put it on sale, there’s likely going to be sales in the future where they sell it for even less. It’s not like they need to empty out a warehouse or such, where they put up uniquely low prices. So, even when I could get a game on a sale, I’ll feel like I could also just wait longer…




  • Ephera@lemmy.mltocats@lemmy.worldClose
    link
    fedilink
    English
    arrow-up
    27
    ·
    19 days ago

    Is it maybe a burying instinct, like they have with their poop? The carpet might seem more like grass or lose ground, where it is possible to bury it. You don’t really want the puke rotting away on the stone ground of your lion’s den, do ya?



  • I happen to be a software developer, so I hope you’re in for an info dump:

    Webpages are generally designed as documents. You type a URL into your browser, it downloads a webpage document and displays it. This simple concept also allows for hyperlinks and browsing history, which just put another URL into your browser, so that it downloads and displays a different document.

    But it does not work for everything. For example, this meme was brought to you by the web version of Microsoft Teams™, where if you were to switch between pages by downloading entirely separate documents, then you’d get kicked out of calls every time you do so.

    This is why the entirety of MS Teams is using a singular document. It’s a so-called Single-Page Application, SPA (*insert scary music here*).
    When you click on a navigation element, it doesn’t put a new URL into your browser for it to download. Instead, some JavaScript monstrosity starts churning, downloads whatever information it needs and then modifies the displayed document, so that it looks as if you had navigated away.

    To make it extra confusing, it also does typically change the displayed URL, it just doesn’t instruct the browser to download+display the respective document. It does this, because it tries to emulate a normal, document-based webpage, with browser history and where you can link to subpages.

    Well, and this is then why opening in a new tab is often broken. Because there is no link there. It has to emulate the behaviour of a link via JavaScript just as well. If the developers do a bad job at that and never try out shortcuts like middle-click or Ctrl+click, then they may never get implemented.


    Having said all that, there’s also a chance that the devs decided to intentionally hinder opening in a new tab.
    Because MS Teams and other SPAs are JavaScript monstrosities, downloading+displaying the document anew like when opening in a new tab takes an obscene amount of time.
    And having two tabs of it open means that you get two notification sounds for each notification, and users might accidentally join multiple calls.

    But yeah, that I can’t have a call in fullscreen on one monitor and respond to chat messages on another monitor, without jumping through hoops like in the post, that’s just bad either way.


  • Well, in this case I’m merely talking about the webpage not giving access to the right-click menu, as well as to shortcuts like middle-mouse-click and Ctrl+click, which would normally allow you to open parts of it in a new tab.

    If a webpage were to actually check for cookies, to try to detect whether you’ve got two tabs of it open, then yeah, Container Tabs would be a solution for that, since it isolates the cookies.