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/)SO
Posts
0
Comments
117
Joined
2 yr. ago

  • I generally say, "I want to make X" then I slowly work up to it. Currently I'm making a pathfinding algorithm.

    I input a map with my starting point and finishing point and it has to get there. It has to know where to go back to if it goes the wrong way, when it's allowed to stop, etc.

    The next steps will be getting it to only show the finished path, then to work out the fastest path when it has multiple possible paths etc.

  • Why do you need to spend a "considerable amount of time crafting commit messages?" That feeding your code into an LLM and getting it to summarise for you is faster? I don't understand how this could possibly streamline anyone's workflow? What do your commit messages normally look like?

  • Yes but no. Modern PHP lets you put types in function signatures and it will then attempt to convert your inputs to those types at runtime.

    JS/TS and Python don't do this. They have optional type annotations that's treated as syntactic sugar. You can use static checkers against this but if you get an error like "expected string got int" you can still run the code. It won't behave any differently because you have annotations.

  • ez! I work for a company that builds a SaaS end to end product.

    Myself and my coworker were asked to build exports for a single client. They were json exports. To start the client would take weeks/months to get back to us, their spec was very vague and their exports had some really complex logic to sort data. We'd been going back and forth with them for almost a year when they said we should give it to them "as is". They now are the proud owners of 2 complex broken exporters.

  • ^ Couldn't possibly agree with this anymore!

    I think it's a common issue with rust in general that a lot of its big impressive libraries/frameworks are still in 0.x with variable degrees of documentation and ease of use. Axum, Rocket, Dioxus, Leptos, Bevy, Servo, the list goes on. A lot of cool things are being built in Rust but very few of them are mature yet.

  • Maybe I'm dumb because I'm a backend dev, but if we can't offload these tasks to Async tasks and we need to block the main thread, why can't we just put up a loading screen? "Don't turn off the application we are saving" games have been doing this for a decade and you can't convince me that your enterprise application is heavier than a AAA game.

  • There are only two kinds of languages: the ones people complain about and the ones nobody uses. - Bjarne Stroustrup

    I think people criticise every language. I've generally got 5 languages that I use personally and for work: Rust, Go, Python, JS, PHP. I can complain about all 5 of them at the drop of a hat. No one likes everything about any language.

  • By all means correct me if I'm wrong, but looking at the PR this article links to. It looks like all that's happening is that Google's trusted certs are being added to an android security API and are now immutable. Any non Google certs are still going to be saved to ANDROID_ROOT/etc/security/cacerts the same as they currently are.

  • I kind of agree and kind of don't.

    I don't think that C# exists solely because Microsoft thought Java was a good idea. If that was the case C# wouldn't have been chained to windows for as long as it was. I think Microsoft didn't want to see a general purpose programming language which could also run on Mac and Linux. They've clearly changed their mind now but Java is still massive compared to C#.

    I suppose Java did kind of solve the multiple deployment issue and it is pretty funny that the more WASM standards evolve the more they look like the JVM. Ultimately this was a bit before my time so I can't really comment but there's a reason "write once, debug everywhere" is a meme.

    I'm not the biggest fan of Java's tooling, I hate that its package managers are separate from it, python and C# can both do it why can't java! I'm not sure what you mean by versioning policy but if you mean the ordeal surrounding Java versions I really disagree. In this case, I think Java is very lucky it already has wide adoption, I don't think Java would get any real traction if it was released today because of the licensing issues.

  • I think it's a mix of three things.

    1. Java is the only programming language to get popular as a result of marketing. Java was marketed so hard that the company who built it (Sun) went under, but Java did get some really wide adoption.
    2. Java is the backbone of Android. If you want to build apps for Android you're using Java or one of the languages built on top of it (Kotlin, Scala, etc).
    3. It's pretty hard to justify rewriting your codebase to another language. So Java is still around. If you need more proof of this, Most people are still using Java 8 (including android) we are currently at ~java 20.
  • If you don't have a Mac I don't think you can get the MacOS SDK.

    So in that case I'd recommend Rust. I still think most of Rust's tools/frameworks need more time in the oven but Rust is massive and has tools being built for everything. If you want Mobile I'd recommend you take a look at Dioxus or Tauri. There are probably others as well but I don't know them it's been a while since I've looked.

  • IMO the specific language doesn't matter here. Python has JiT compilers, AoT compilers, (proper) coroutine tools, front-end dev tools, everything you could need for dev work, that's why it's so popular, even if none of this is in the standard library.

    On the other hand, if you want to learn JS or Go you could use them as well. Last time I checked Go doesn't really have any front end tools/frameworks though.

    Of the two I think Go is easier to pick up. Also, if Python is your only exposure to programming, you might be surprised to learn that syntactically, Python is the weird one, not the other way around.

  • Encouraging illegal activity is illegal, piracy is illegal. Therefore encouraging piracy is illegal. The end.

    The law is: "take down pirated content as soon as your aware of it and proactively prevent it being shared on your platform and you can't be held liable if it is on your site."

    Lemmy.world's first rule is no illegal stuff including sharing copyright material without permission. I'm so sick of seeing people acting like the sky is falling because lemmy.world isn't directly facilitating piracy.

  • I think you mean to say "no documentation". First of all, what version of iced are you using? I made a simple GUI app in version 0.7 but with the current version of 0.10 it's broken. Unfortunately if you can't solve your problem using the examples repo your probably out of luck until iced is more stable and better documented.