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/)EP
Posts
85
Comments
4,009
Joined
5 yr. ago

  • Oh yeah, I was merely complaining about the syntax. Coming from other languages, I interpreted that import statement to mean essentially this:

     javascript
        
    import { double, exponent /*...*/ } as operations from "Math";
      
    
      

    ...and as such, it took me a few seconds to understand what's being aliased by as operations.

    As for importing all symbols of a module, I do think it's more harm than good in non-compiled languages. But when it comes to compiled languages, I'd say it depends on the language.

    In Rust, for example, I can easily throw down an inline module with one-way isolation, so that it can transparently access everything in its parent module via use super::*;, while the parent module can't access what's in the module (unless it's been marked pub). That can reduce mental complexity of the code (and is actually used a lot, because unit tests are typically put into such an inline module).
    It's also useful in Rust, because you can re-export symbols in different modules, so you can break up a file without breaking the imports by throwing a pub use my_sub_module::*; into the original module.

    But yeah, on the flipside, I really wouldn't miss it, if it didn't exist in Java. It was rather even annoying, because the popular IDEs have a rule to replace explicit imports with an asterisk as soon as it reached 5 symbols imported from the same module.
    It's not as bad as one might think, because you can't declare top-level functions or variables in Java (everything has to be in a class), but it still sometimes led to those asterisk imports bringing in the wrong class names, so I'd have to manually add the import I wanted underneath them...

  • import * as operations from "Math";

    Wow, I knew import syntax with a separate from statement could be awkward, but that's a new one for me.

    Apparently, the * cannot be used to import all symbols underneath a module (you always have to specify the as moduleName), so I guess, that makes it somewhat less weird for referring to the module itself.

    From what I can tell, there's also no obvious other keyword they could've used:

    • package is only a keyword in strict mode.
    • self is not a keyword.
    • this is kind of awkward.
    • Leaving out the keyword is kind of awkward (import as operations from "Math";).
    • Changing up the whole syntax for this one case is awkward, too (import from "Math" as operations;).

    So, I guess, I'll allow it, but I'm still not happy about it...

  • Needlessly absolute take. Yes, there's going to be parents, who'd rather pay extra than look into what other games they could give their kid, as well as loyal Mario fans, who will pay pretty much any price. But there's obviously also players who do weigh up their options based on price, and who will make different decisions when they have to decide between two titles, when one of them is cheaper. Especially with the additional invest for a new console and the more dire economic situation, I could see many players not buying into the Switch 2 at all.

  • Yeah, for me, the big thing was that I only found out you could test-run Linux without installing after I had made the decision to install it. Of course, having no real clue what I'd get into massively delayed the decision...

  • suddenly found myself in the Realm of Zot.

    Yeah, when I got there the first and only time, I was also surprised how little separates you from Zot once you've made it through the Dungeon and the rune branches. Far too many of my characters have died on the final stretch...

  • We use Leptos at $DAYJOB for a web-UI of medium complexity. Debugging is mainly a matter of println-debugging, to be honest. Well, with log statements. We use tracing-web for logging to the browser console (if you're using log rather than tracing, you can do the same with console_log). And then console_error_panic_hook to make panics visible in the browser console.

    None of this is particularly great. Sometimes you get a stacktrace and no chance to try to debug it, because it happens in compiled WebAssembly. Sometimes you run into reactivity issues, which you just have to try to reproduce and narrow down why it happens.

    You do gain experience over time and can spot issues more quickly or code it correctly upfront. And well, I've never seen a frontend framework, which was immediately intuitive in its reactivity or similar. Humans are just a messy interface.

    Yeah, not sure what else to add. The upgrade to Leptos 0.7 was definitely a challenge, but we managed to push through, although I would not have wanted to do that without some of the experiences I've made with personal projects.
    Feel free to ask questions, if you want to know anything more concrete.

  • For anyone wondering, the Rettungsgasse ("rescue aisle") is something we do on longer stretches of road whenever congestion happens, to allow ambulances to pass through as quickly as possible. Everyone on the right side of the road keeps to the right and everyone on the left keeps to the left, forming a roughly ambulance-sized gap in the middle. On multi-lane roads, it's formed to the right of the left-most lane.

    There's also laws for it. You can get fined, if you hold up the ambulance, because you failed to form the Rettungsgasse, or if you have the audacity to drive down the Rettungsgasse to try to skip a traffic jam.

    It's not really a thing in cities like shown in the video, as we'd typically try to drive into side roads or onto parking spaces or the sidewalk to make room for the ambulance. The laws don't apply there either.

  • Yeah, leaving moral reservations aside, it's especially annoying to me, because it's being pushed with complete disregard whether it actually helps me.

    I've been working in a programming language for the past two years, in which I'm well-trained. Better than the statistical average that LLMs blurt out, at the very least. So, I'll often end up correcting whatever it generates, rather than just typing out the same directly. In particular, I also find it much easier to think while typing, rather than while reviewing code, so I need pauses to think anyways. And I also just find it disrupts my concentration when the autocompletion-style LLMs keep flickering their suggestions at me.

    Similarly, flavor images. So much of management is fucking excited about generative AI, because they can type shit like "wombat hanging off of a line of code" and then it slops out an image, which they can slap into their presentation and pretend it has meaning.
    I don't like those images. The AI-generated ones look terrible to me, but I did not either like them before they were AI-generated. It's just pointless imagery, why are you showing me this?
    Obviously, management can disagree with my stance, many people do, but if they want me to present shit, they need to respect that my presentation style just does not include flavor images, no matter what flavor image generator we pay for.

  • Here in the Europes, I find curbside parking similarly depressing. Like, man, it should be a human right for kids to be able to go outside for playing ball. But you can't do that anywhere around here, because wherever there's kids, you can be sure that someone's parking their precious car nearby.

  • This is why I recommend FOSS apps for base functionality like that. There's plenty folks out there, who've implemented a grocery list app as a hobby project, who don't need to try to make money off it. As such, their app can exist without ads, tracking or needy notifications.

  • Yeah, while writing the comment above, I realized a quip like that could work. Maybe also "We just ran out of strong men, but I'll see what I can do". Didn't have that sleight of mind in those situations so far...

  • For anyone else wondering WTF SAE is:

    Tools and fasteners with sizes measured in inches are sometimes called "SAE bolts" or "SAE wrenches" to differentiate them from their metric counterparts. The Society of Automotive Engineers (SAE) originally developed fasteners standards using U.S. units for the U.S. auto industry; the organization now uses metric units.

    https://en.wikipedia.org/wiki/United_States_customary_units#Other_names_for_U.S._customary_units

  • Well, as the other person said, it was not a failing of LiMux. It was political. Munich had been ruled by one coalition throughout the lifetime of LiMux and after it went to a different coalition, they announced the switch back.
    The manager of Munich's IT department also publicly stated that they were surprised by the decision, because there are no larger technical problems and compatibility is resolved by providing virtualized MS Office, where necessary.
    Coincidentally, Microsoft also moved its German headquarters from just outside of Munich's tax region into Munich around the same time.

  • Well, traditionally, console prices were subsidized by the more expensive game prices. They'd sell the console at a loss to then make that back per game. Them raising both the console price as well as game prices is what makes it awful.

  • Yeah, always weirds me out. Like, if you ask for help normally, I'll be the first to jump up. But if you ask specifically for strong men, you ask me to be a cunt to everyone else in the room, saying I'm stronger than them, which I don't even know.

    And even if I were to think that I'm the strongest, there's still no way to know that I'm actually able to lift whatever heavy object it is. If I cannot lift it, I'll look like a massive poser, when I then come crawling back, asking for help from others.

    I mean, maybe this works better in different cultural contexts, but whenever I've seen it tried, it always resulted in those going along, who did not have to worry to about being confused for strong men. Which is just stupid, too. Let my older colleague throw their back out, even though I would've gladly helped as well.

  • Dungeon Crawl Stone Soup @lemmy.ml

    Killed Duvessa and Dowan with the same axe swing. Game was confused...

    Dungeon Crawl Stone Soup @lemmy.ml

    Sleepwalking Orc Priest

    Dungeon Crawl Stone Soup @lemmy.ml

    0.29 “Shooting Stars”

    Humor @lemmy.ml

    Persian music may be more explosive than I thought...

    Dungeon Crawl Stone Soup @lemmy.ml

    Trunk Updates 14 August 2022 and Tournament Announcement

    Dungeon Crawl Stone Soup @lemmy.ml

    My Spectral Electric Eels still seem to be confused about leaving the water...

    Dungeon Crawl Stone Soup @lemmy.ml

    Trunk Updates 18 July 2022

    Dungeon Crawl Stone Soup @lemmy.ml

    Found this in the source code...

    Dungeon Crawl Stone Soup @lemmy.ml

    Love a good shaft on the stairs...

    Dungeon Crawl Stone Soup @lemmy.ml

    Trunk Updates 19 June 2022

    Unixporn @lemmy.ml

    Plasma 5.25 Can Sync Accent Color with Wallpaper

    Dungeon Crawl Stone Soup @lemmy.ml

    Starting as an Earth Elementalist after Sandblast doesn't need stones anymore...

    GNU+Linux Humor @lemmy.ml

    Task failed successfully.

    Dungeon Crawl Stone Soup @lemmy.ml

    I'll, uh, just leave you two alone in there...

    Dungeon Crawl Stone Soup @lemmy.ml

    Playing as a Formicid, the first two scrolls I identify

    Dungeon Crawl Stone Soup @lemmy.ml

    You hear the rusting of a very distant drain.

    Technology @lemmy.ml

    A blue connector does not USB 3.0 make

    GNU+Linux Humor @lemmy.ml

    When I think VLC is buggy, but it's actually just me being stupid...

    Minetest community @lemmy.ml

    Minetest 5.5.0 released!

    Linux @lemmy.ml

    This week in KDE: most of GNOME shell in the Overview effect