I love it when a programming language rewards you for refactoring. Like you'll be working with a piece of code and nothing feels right, it's all null checks and kludges, and then you factor out the right method and it all just sings.

Dart does this a lot. The syntax tells you when you're doing it right.

#programming #code #dart

@isaaclyman Rust also gives me that sort of feeling. When something isn't right, it becomes harder than it could be. The more you work with it the easier it gets to catch these situations.