3 ms·
Type annotations do not rust make. And lack of types does not Python make. As someone who has learned to love both languages as tools for the job, I want to wr
by voz_ 3y ago
Type annotations do not rust make. And lack of types does not Python make.
As someone who has learned to love both languages as tools for the job, I want to write Python like Python and rust like rust.
- bbkane 3y agoI want to write correct and maintainable code, and techniques like these make that easier for me. I've found that if it's hard to type hint my code, there's probably a better way to design it.
- ddejohn 3y agoI find that approaching tasks from the type-first perspective can really help illuminate the problem. I can't imagine trying to code without having both types at the forefront of my mind and all of the IDE's helpful type-related features.
- fbdab103 3y agoSimilar to why I like unit-testing. Writing code in a testable way usually straightens out what would have been a thornier first-pass interface. Even if the test never fails, it made me be explicit about my assumptions.
- deepsun 3y agoThere's little value in maintainable code when the task at hand is to quickly run some statistics and drop it right away. Similar to a Bash script, or, to a lesser extent -- R. But the speed of writing is paramount.
- tru1ock 3y agoSoftware development has never been about building correct systems that you see so many here care about. There might be a few contexts where that is the main value being optimized for, but the vast majority of other it is not. I think a lot of smart people are in the wrong industry and it causes them pain. I see so many overworked and stressed out people and it is almost always internal reality causing it. http://www.laputan.org/mud/ http://www.laputan.org/mud/
- ghnws 3y ago> Type annotations do not rust make. And lack of types does not Python make. That is never implied. See the first example in the article.