Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, I'd say that if you haven't already planned your application's structure in advance, writing it in Rust would be harder than in e.g. Python. One piece of advice that I can give is to always start with data structures and design stuff around them first. After this it will usually be easier to move forward.


100%, I agree. This was a game changer for me when I was learning to manage state better back when I was learning React. I realized most state management issues emerged as data structures would evolve and get shoehorned into components. Taking a step back and designing the state’s structure appropriately and then the components accordingly tended to yield far better results. Of course the data structure is informed by a rough idea of future components, but it doesn’t need to follow the UI precisely. It’s a good practice




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: