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

help-circle
  • Codex@lemmy.worldtoFuck Cars@lemmy.world[meme] THE CHIMERA
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    4 hours ago

    Ok but it does seem like people drive way worse now than just a few years ago. I have theories though.

    Theory 1: Existential dread. People are so beat down by climate, endless war, failing economy, and more that they’ve gone completely insane.

    Theory 2: Long covid brain.



  • Codex@lemmy.worldtoMemes@lemmy.mlSting
    link
    fedilink
    arrow-up
    19
    ·
    edit-2
    2 days ago

    In Alejandro Jodorowsky’s concept for a Dune film from the early 1970s, each house has their costumes and architecture designed by a contemporary artist. Giger was the designer for the Harkonnen, and several of his ideas persisted beyond the failed film.

    The Harkonnen Castle

    A Harkonnen chair

    I assumed Villeneuve was calling back to those designs.







  • Codex@lemmy.worldtoAsklemmy@lemmy.mlTouch Typing
    link
    fedilink
    arrow-up
    5
    ·
    13 days ago

    Try a typing game, there’s lots of them now in several genres. I learned to touch type in secondary school, doing the old fashioned thing of taping a sheet of paper over the keyboard (and typing under it) so you can’t see the keys. That works but I believe in the educational power of games, and it’ll be more fun.

    Otherwise, just practice. If you use lemmy on mobile, try switching to desktop to type more. Start writing letters to people or short stories or anything that just encourages you to type more.



  • Oh you have no idea how deep my paranoia on this goes! We’ve been implementing Dynamics 365 at my office, MS made software that manages your entire business from the accounting ledgers on out. Copilot AI is everywhere in it, trying to encourage you to teach it how to do things.

    MS wants to offer the next generation of knowledge worker. No more accountants, no more senior managers of inventories and all those many miscellaneous titles it takes to run a company. Certainly no more technical support. AI is going to do it all. MS wants to tell every business how to do business.



  • I went on a tear at one point trying to really understand, rigorously (I’m a computer and maths person by trade and training), what dialectics are and how, specifically, the material dialectic (the foundation of Marxist thought!) should work.

    I was a bit dissapointed to understand that they can’t really be “rigorous” in that fashion and that they’re really more of a philosophical and rhetorical tool. I do still get a lot of use from them, and in discussions with other people the framework of the dialectic (“Ok, what if we took these two ideas and put them on opposite ends of a spectrum, how does that look?”) is very useful for explaining and expounding upon ideas.





  • I agree with the other suggestions so far, to wit:

    1.dyn is fine, when you need it. People will give you a lot of guff about performance but vtable lookup on a dyn is no less performant than the same thing in C++ (in higher level languages almost every call is dynamically dispatched and those are used for plenty of serious, performant work).

    1. Use enums more.

    2. Use traits and generic functions

    And I would add a couple of other thoughts.

    For some DI type work, you can use cargo’s Features to define custom build flags. You can then put variants on the same code (usually implementing a trait) in different modules and use conditional compilation on the Features to swap out which code is used. This is like a compile-time strategy pattern. I use it for testing, but also to swap out databases (using a local in-memory to test and a real one in prod) and to swap out graphical backends on my roguelike (compiles to OpenGL on windows but Metal on my Mac).

    You’ll probably want to learn Rust’s macro system sooner than later as well. Sometimes a macro is better than a function when you need to generically operate over several types (function argument overloading, in other languages) or work on something in a general but well-structured way (tree walking for example).