Code doesn’t have to be a mess
danielsieger.com
Code doesn’t have to be a mess
1–10 of 190 posts
Re: Code doesn’t have to be a mess
#2Re: Code doesn’t have to be a mess
#3Would be curious to know what strategies other people apply in order to keep complexity down over time!
Re: Code doesn’t have to be a mess
#4Would be curious to know what strategies other people apply in order to keep complexity down over time!
Same conceptual state gets represented in multiple variables or derived variables, and these must stay in sync. Very brittle
Re: Code doesn’t have to be a mess
#5Would be curious to know what strategies other people apply in order to keep complexity down over time!
Unit Tests. If you can't write a unit test for it, it's too complicated and it's going to snowball quickly into a giant mess.
Re: Code doesn’t have to be a mess
#6It's not exhaustive but it's a powerful general idea and I always like introducing developers to it for the first time.
Re: Code doesn’t have to be a mess
#7Would be curious to know what strategies other people apply in order to keep complexity down over time!
Unit Tests. If you can't write a unit test for it, it's too complicated and it's going to snowball quickly into a giant mess.
It's a justifiable trade off for me, but I don't pretend that unit testing reduces complexity.
Re: Code doesn’t have to be a mess
#8Re: Code doesn’t have to be a mess
#9Ah the Unix philosophy. `man ssh' gives `ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J destination] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destina…
Re: Code doesn’t have to be a mess
#10Would be curious to know what strategies other people apply in order to keep complexity down over time!
Oh, and have good testing in place to make sure you aren't breaking a required path that your IDE can't detect, obviously. No IDE in the world can detect "Oh, we still had one client on that old obsolete REST call and they are pissed"