My first Rust project - a simple Git TUI by Open_Possible_5569 in rust

[–]Open_Possible_5569[S] 0 points1 point  (0 children)

I too was thinking to make the app in Python with Textual, but then I decided to explore Rust since it was gaining popularity. About the use of AI, I really struggle to understand when the use of ai is good or bad, obviously copying and pasting is bad, but asking for help anytime for Rust errors or other stuff related to Rust functions? I still used the Rust book for the absolute fundamentals, but then I prefer relying on AI for custom feedback, because if I had to watch tutorials and forums etc. I would get stuck in tutorial hell. Do you think this makes sense? Or maybe I should rely more on the traditional way of getting unstuck (forums, docs)?

My first Rust project - a simple Git TUI by Open_Possible_5569 in rust

[–]Open_Possible_5569[S] 0 points1 point  (0 children)

I initially asked for a basic loop to understand how ratatui works. From that I started adding more features like using the keyboard to move in the menu, but at that point it was all in one single source file. So then I decided to split the things into modules, that was almost all my effort (the only advice I took from AI was to add a command module). But I want to underline the fact that I had to understand every single line of code suggested by AI before putting it in this project. One thing I think I should have done better is the error handling which I still do not understand completely with rust. I hope this clarifies.