3 ms·
Show me one complicated enough js program and refactoring to rust is better way to guide
by revskill 4y ago
Show me one complicated enough js program and refactoring to rust is better way to guide
- quietbritishjim 4y agoI can't parse that sentence. Are those book titles?
- jstanley 4y agoI think it's "a better way to teach Rust would be to show me a javascript program and then show me the same program rewritten in Rust".
- papichulo2023 4y ago[flagged]
- gdcbe 4y agoHi Revskill, thank you very much for your input, I do appreciate this and I hear you. I would like to clarify that this guide is not meant as a book or a course in itself. It is used by me as a guideline for my students and classes and I share it as open source so hopefully it can also help out others, be it teachers or students. Learning by porting something known from a language of comfort to a language you wish to learn (eg rust) is a great learning style and approach to solidify theoretical knowledge, gain new insights and get practical experience in it. So just to say that I do appreciate that way of learning and in fact when talking to students about projects they can do as part of their learning journey I pretty much always mention the idea of porting something existent as a way to learn. That being said I do not know of any good and complete step by step walkthroughs of such endeavour. If you know of any good books, blogs or videos that provide this feel free to share with me here or as a PR in GitHub and I’ll review to see if it can be added (eg can be great addition to the learn more rust section where I list such ideas). Again thanks for the feedback and I wish you a nice weekend.
- kajaktum 4y agoEvery single one? A complicated enough JS project will have ad-hoc type checking with typeof and null coalesce operator.
- mooooooooooooo 4y agoAn incremental refactor with typescript would make more sense here? I can’t imagine managing lifetimes in a spaghettified JavaScript repo
- kajaktum 4y agoYou can use Arc eveywhere i guess?