• 0 Posts
  • 8 Comments
Joined 3 years ago
cake
Cake day: June 13th, 2023

help-circle



  • I wish the desktop react native renderers took off. I definitely do prefer the react style of colocating everything + reactive state, and being able to swap different renderers for actually native feel doesn’t really seem like a goal for any maintained projects anymore. on that note, you could write your tui in react with ink or opentui if you want to go that route

    dioxus does have a native renderer (in the not webview sense, it still draws it’s own components, but most of the options do). if you’re looking at rust already, iced seems pretty close to react style, and has a decent number of things written in it already. relm4 is a different style rust framework for gtk that you might like as well.

    again not native appearance, but avalonia funcui can be pretty close to the react feel too if you’re open to f#



  • semicolons? quotes? use a formatter and don’t think about it. I think js world has basically done this already.

    const is simpler. why would I declare an array as let if I’m not reassigning? someone can look at it and know they don’t have to think about reassignment of the reference, just normal mutation. ts has the further readonly to describe the other type of mutation, don’t abuse let to mean that.

    const arrow over named function? gets rid of all the legacy behaviors and apis. no arguments, consistent this, and no hoisting or accidental reassignment. the 2 places you should ever use named fn are generator or if you actually need this