• 26 Posts
  • 277 Comments
Joined 3 years ago
cake
Cake day: April 27th, 2023

help-circle



  • I want a way to clearly express durations in terms of days

    The argument here is that expressing durations in terms of days is a bad idea because “day” does not really convey a very precise duration, as it is not always 24 hours.

    Maybe you won’t be confused by Duration::from_days right now, but maybe a junior dev before they get their coffee, or even the senior dev on code review might miss stuff like that.


  • I mean, it says what it is right there in the second sentence on the page, to be fair:

    Welcome back to another Dioxus release! Dioxus (dye • ox • us) is a framework for building cross-platform apps in Rust. We make it easy to ship full-stack web, desktop, and mobile apps with a single codebase.

    It’s not like the context was very far away 😅


  • Personally very intrigued by Dioxus. I posted this thread the other day about frontend and I can’t help but be drawn by the possibility of not having to learn a JS/TS framework and instead go with a Rust framework. But at the same time, Dioxus is still very much behind on the ecosystem side because it doesn’t have access to all the libraries and tools and support and online help that popular JS/TS frameworks do. So I’m sort of conflicted. Being a frontrunner comes at a cost sometimes 😅

    Only thing I actually don’t care much about with Dioxus is the fullstack premise. I’m not much for the fullstack idea. I think there is value in separating the backend and frontend. I feel like in principle it should be possible for many frontends to exist for a single backend. I feel the fullstack approach makes the backend and frontend too coupled and it would probably be hard to write a different frontend for the backend.









  • With Linux, I can change just about everything. If I want a real-time kernel, I can switch. If I want a different desktop environment, change. If I want more control from my keyboard, Linux has my back.

    As much as I agree with the sentiment of the article, this is a terrible reason and more likely to scare people away from Linux rather than get them to install it.

    If you know what a “real-time kernel” is, you’re probably already using Linux and you are a highly technically literate user. Any “normal person” user is going to look at that and think “Oh, I guess I need to understand technobabble in order to use Linux”. Normal users care about easy, preset defaults, not customization.

    Once again, Linux adoption is kneecapped by its own users, who forget what normal people really care about.


  • If I eventually decide I want to split my one file script into two files will I be able to?

    I honestly would say that’s when it goes from a script to a proper project, and you should treat it like that with a Cargo.toml and everything. I think this is a case where it would push you towards better practices and I don’t think it should support multiple files like that.



  • I don’t know but it could be anything else than an Arc. Obviously you should still be able to take a usual reference to such a thing.

    References are just pointers, they don’t have any counting. This proposal as I understand it is an attempt at making reference-counting more ergonomic.