Skip Navigation
How to learn Rust?
  • IMO the best way to start in a new language is to rewrite some of your previous projects in that language.

    I generally start out by rewriting a couple simple 1-3 function console apps, basic leet code stuff like; palindrome, fizzbuzz, reverse an array in place, etc, and some simple unit tests for them. Then I go ahead and rewrite some of my previous projects or uni assignments in that language.

    At that point I generally have a good understanding of basics and have an idea of how to approach a new project. When I got to this point in rust I then started on threading, async, why it's easy to return a String and an ordeal to return &str, etc.

  • In Leaked Audio, Amazon Cloud CEO Says AI Will Soon Make Human Programmers a Thing of the Past
  • Something I've always found funny about the "AI will replace programmers soon" is that this means AI's can create AI's and isn't this basically the end of the economy?

    Every office worker is out of a job just like that and labourers only have as long as it takes to sort out the robot bodies then everyone is out of a job.

    You thought the great recession was bad? You ain't seen nothing!

  • uv: Unified Python packaging
  • The performance is just a "nice to have".

    Python package management, especially at scale is infuriating. At work we use python microservices in docker containers and it infuriates me trying to update the one our team is responsible for.

    I always like to rant that python 3rd party package management tools are a mistake. We should've gone for an "as simple as possible" setup instead of all this.

    So I'm sceptical of UV on principle since it's yet another 3rd party package manager but if it can do all of this and not be a nightmare I'll be ok with it.

  • Principal Skinner on Immutable Distros
  • In the case of docker I'm already at the point where I no longer think it's necessary. At my current job our stack is JS, PHP and Python. 3 interpreted languages, we then build on Ubuntu and deploy on Ubuntu. I don't think our project really needs docker, even though it does. We also have wasm/wasi prepping to eat Docker's lunch.

  • Principal Skinner on Immutable Distros
  • I'm not against immutable distro's on principle. I imagine they still have some kinks to iron out, but I haven't looked in on them for a while.

    My opinion on these things is; if it's a superior system, then it'll become the new standard, that's always what happens, and the naysayers are largely irrelevant. Just like computers, smart phones, the internet, etc.

  • Has the AOSP project failed consumers?
  • The AOSP is a huge success and phones are really only the tip of the iceberg, android runs everywhere and is basically responsible for the mainstream adoption of "smart" devices.

    It's a small OS that runs on basically anything and you can stick it on most computers regardless of how strange the hardware setup is.

    Is it perfect? No, as a project android is basically maintained by Google alone and Google obviously doesn't think it's perfect, or fuschia wouldn't exist.

  • The graying open source community needs fresh blood
  • If you look at projects in more popular languages like JS, Rust, Python. There is plenty of new blood in the contributors list. I won't speculate as to why, but it looks like the new generation doesn't like c and c++.

    I think this is also backed up by the Linux kernel and thunderbird projects. Both are old c/c++ codebases and both have stated they are adopting rust in hopes of drawing interest (and contributors) from the rust community.

  • Is this the electron-alternative we've been waiting for?
  • IMO, I'd say Dioxus is more of a portable front end framework. If you're looking for an electron alternative i.e, something to run web applications like they are native apps, I'd recommend Tauri.

    Also, this might be a bit out of date, but I believe Dioxus is using Tauri's stuff under the hood. Although I heard this before the dev went full time on Dioxus, it could've changed, I know they have done a lot of work on it.

  • Why is Go syntax so messy
  • To do quick and simple explanations:

    var test int = 0
    

    assign an int, var = let in rust land

    := 
    

    This is basically an inferred assignment e.g.

    a := "hello world"
    

    The compiler will know this is a string without me explicitly saying

    func (u User) hi() {}
    

    To return to rust land this is a function that implements User. In OOP land we would say that this function belongs to the user class. In Go, just like in rust we don't say if a function returns void so this function is for User objects and doesn't return anything:

    func (u User) hi(s string) string {}
    

    If it took in a string and returned a string it would look like this.

    map[string] int {}
    

    I will give you that this syntax is a bit odd but this is just a hashmap/dictionary where the key is a string and the value is an int

  • Google Messages rolling out 15-minute RCS editing
  • I'm not sure this is a fair comparison, since this is only coming to RCS and not SMS my (completely unsubstantiated) guess would be that this is a message protocol issue.

    On the other hand Signal is an encrypted internet messaging service and editing internet messages has been easy for everyone not named twitter for years.

  • evil-helix: A super fast modal editor with Vim keybindings
  • I feel like helium works as well as helix. When I search Helix I don't get the editor but if I search Helix Editor I will get what I'm looking for.

    When I search Helium editor I don't get any exact matches, but of course SEO is a dark and mystical art so your mileage may vary.

  • “ARE YOU ALL SEEING THIS”
  • I like how at the start of the line it explicitly says "out of memory" but we're just pretending this is some satanic bullshit.

    She obviously read the error to find "kill process" and "sacrifice child" but still ignored the memory error

  • Google Fit dev APIs shutdown set for June 2025
  • I'm not sure this should be added to the "killed by google" list. Reading the article it looks like Google is replacing Google Fit with Health Connect. Now, it's an app that's still in beta, so it probably doesn't have feature parity yet but this looks more like a deprecation instead of a service shutdown to me.

  • 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
    Solemarc @lemmy.world
    Posts 0
    Comments 87