• 0 Posts
  • 19 Comments
Joined 4 years ago
cake
Cake day: May 31st, 2020

help-circle



  • Ephera@lemmy.mltoScience Memes@mander.xyzBurning Up
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    6
    ·
    10 days ago

    What annoys me about that phrasing, is that “how water feels” is quite relevant to how humans feel.

    The obvious example is that if it’s below 0°C, it starts freezing, which causes slippery sidewalks, snow, dry air, all that stuff.
    But just in general having a feeling how much water will evaporate and later precipitate at certain temperatures, and even stuff like how hot beverages and cooking temperatures are, it’s all still relevant for humans…



  • Ephera@lemmy.mltoScience Memes@mander.xyzMSc Mansplaining
    link
    fedilink
    English
    arrow-up
    56
    arrow-down
    5
    ·
    15 days ago

    It’s mainly funny, because all the women look bored out of their mind. It makes it look like they’re letting Greg blather on, even though none of his points are novel to them. And Greg has such a massive ego that he doesn’t notice no one is listening to him.

    Obviously, yes, Greg probably is just a person without ego talking normally. But him being the only dude in the picture and the only one talking, the mansplaining interpretation is a little too close for comfort, which makes it funny.




  • Ephera@lemmy.mltoScience Memes@mander.xyzRomance
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    I thought, they might be thinking of mayflies, which have lifespans ranging from mere minutes to a handful of days.

    I don’t know, if it’s a thing in other languages, too, but in German, we also happen to call them one-day-flies (“Eintagsfliegen”), which has kind of led to the myth that they live quite precisely only one day.

    But turns out that mayflies do not look like that at all: https://en.wikipedia.org/wiki/Mayfly


  • Ephera@lemmy.mltoScience Memes@mander.xyzThe age of wood
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    Assuming you live in a region with 4 seasons per year, then yeah.

    From what I understand (and according to this), the lighter parts of the rings get created when the tree grows rapidly, which typically happens in spring. And the darker parts get created during slower growth, which typically happens in summer. In autumn and winter, trees tend to not grow.


  • Ephera@lemmy.mltoScience Memes@mander.xyzpringles
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    2
    ·
    1 month ago

    Personally, it always decreased satisfaction that it breaks unpredictably, because I’d get crumbs everywhere. In particular, the shape also hinders putting them far enough into your mouth to catch the crumbs.
    Definitely prefer chips which are just sliced potatoes. Them being a naturally grown structure makes them unpredictable enough for my taste.


  • Ephera@lemmy.mltoScience Memes@mander.xyzpringles
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 month ago

    I can’t really think of a better example, but well, if you stack half-cylinders like these:
    …they can’t be off-center in the direction that they’re rounded, because gravity + their shape pulls them towards the center.

    And well, this saddle shape is rounded in two directions, so it pulls towards the center in both directions.

    It’s also better than a parabolic/lens shape, because while that can’t either move sideways, it doesn’t counteract angular movement, so the stack would still bend and fall.


  • testcontainers is a cool crate. It basically allows you to launch a container to test against in your unit tests.

    My use-case was when integrating Postgres+Diesel for persisting our data.
    I really wanted to make sure that we can save our data into there and load it back out in identical form.
    And yeah, rather than writing some elaborate scripts to do a full-blown integration test, it’s three lines of code with this crate to launch a Postgres container and have it cleaned up after the test.

    Diesel is also quite cool here when you’ve got your migrations embedded, as it will automatically set up your database schema in the blank Postgres.


  • Yep. Where I notice it the most is frontend stuff. We’ve been using a WebAssembly framework, particularly Leptos, where you get to write HTML+CSS+Rust.

    And normally, a colleague and I despise frontend, i.e. JavaScript. Like, it’s kind of cool, because you get a visual result, but the crimes against humanity you have to commit in terms of code readability were very visible to us.

    And yeah, Leptos and Rust are a lot better in that regard, which boosts productivity. Particularly when a backend request fails, you get a Result, which you can pass as one value to the display code and just display either the data or an error. That’s huge, because you make a lot of backend requests.

    One downside in productivity and fun is that there obviously aren’t yet as many component libraries, so if you want a toast notification, you might need to implement that yourself.

    But still, we almost had to seriously ask that colleague to pause dishing out frontend features, because he was enjoying it so much.


  • the port does not have any immediately benefits to end-users or gives us any new special features. However, it improves the future maintainability and bug-fixing capability of the dev team compared to the C++ base.

    I remember them also specifically talking about an issue regarding asynchrony. If I remember correctly, it was that their current job system doesn’t actually execute background jobs in parallel. They even had a massive pull request ready to fix this in C++, but did not feel confident in it not introducing a ton of bugs.

    But the most important reason is fun. Fish is a hobby project. The core team wanted to switch to Rust, because it would be more fun. This also resulted in tons of new contributors suddenly offering help. So many people trying to find “rational” explanations like you’d expect them from a company, when completely different dynamics apply in a volunteer project.




  • I took a very quick look at the code and one thing I noticed, is that you’re using &String.

    For a parameter in a function, you always want to use &str instead, as explained here: https://doc.rust-lang.org/book/ch04-03-slices.html#string-slices-as-parameters

    I believe, it’s also not a thing to return &String (nor to store it in a struct). I don’t have as solid of an explanation for it, it’s just not something I see much in Rust code (and in the chapter above, they do use a &str as return value, too).
    Maybe someone else can weigh in on that.

    The same applies for:

    • &[] rather than &Vec
    • &Path rather than &PathBuf
    • &OsStr rather than &OsString

    I would also recommend using Clippy. I think, you can just run cargo clippy and it’ll work.
    It’s a linter and will tell you lots of code style issues (like using &String as a parameter).
    If you’ve never run it, it might spit out a lot of warnings at first, but working through them can teach you quite some things.


  • Ephera@lemmy.mltoScience Memes@mander.xyzdegree in bamf
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    They’re mentioning the race and gender basically to say “a privileged person”. Having privileges obviously influences your character. And race+gender correlate with privileges.

    So, while there’s no direct causation, and us white males who aren’t chumps don’t need to be offended, it’s often good enough of an explanation why a particular white male might be a chump.