4 ms·
Small functions, small modules, small codebases. Keep state as contained as possible. Tightly control interfaces and interactions. Know your paradigms. Example:
by sssilver 2y ago
Small functions, small modules, small codebases. Keep state as contained as possible. Tightly control interfaces and interactions. Know your paradigms. Example: in Rust multi threading it loves putting things in an Arc. You have to tell it to use MPSC queues instead.
I love coding with AI. It has made me 100x more productive. I am able to work on my distributed event processing backend in Rust, then switch to my mobile app in Swift, then switch to my embedded device prototype and write a UART driver for a GPS module under ESP32.
I’ve been programming for many years but this level of productivity would have been unimaginable to me without AI.
- ge96 2y agoJust curious have you been working in those disciplines for years though regarding: rust -> swift -> uart driver gps esp32
- sssilver 2y agoNot really, since I was in management for five or so years with not much code writing. Embedded programming -- never in my life. Swift -- briefly, when it just came out years ago, but modern Swift is extremely different. Rust -- sure, I guess that's what I'd been doing before moving to management.
- ge96 2y agoDang that's impressive then. I've been a programmer of different languages for a while and I tried to learn/use rust ehh... but that's cool to hear.
- sssilver 2y agoIt's not the easiest language to learn, and in some respects it's one of the hardest. Luckily, tooling is good. It's one of those things where "trying" to learn it doesn't work. You should commit yourself to it and do it. Don't try too hard to understand all the abstractions and concepts. Just write an incredible amount of code. Your brain, over time, will pick up the patterns and make sense of the abstractions. It will do that while you're resting, not while you're actively trying to internalize. Just put in the "saddle time", and the brain will work its miracle.
- ge96 2y agoyeah it's just a very strict language, I felt like everything I was typing was wrong (red syntax highlight). I get it though have to want it but also use it. For the moment I'm getting by with JS/Python/C++ some Swift.