Timeline for A simple encryption program using Python
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 27, 2020 at 14:26 | comment | added | Samwise | Maybe! I feel like they teach you in school to make everything as "flexible" as possible, and for a long time I approached coding that way, but it's not necessarily always the right approach. I decided several years ago to fully embrace the principle of YAGNI and have no regrets. It's always easier to start simple and add complexity when needed than to start complex in the hope you'll have less work to do later. | |
Mar 27, 2020 at 12:38 | comment | added | infinitezero | I think the alphabet version is better since it's more flexible. Once the encryption goes beyond [a-z] your suggestion is harder to update. | |
Mar 26, 2020 at 19:36 | comment | added | Samwise | Efficiency is also important, but most of my changes are about making the code easier to read, which is hugely valuable in the real world. The easier it is to read and understand your code, the easier it is to identify bugs, or to add new features to it. The best way to get better at writing code that's easy to read is to ask for reviews from other people, exactly like you did! | |
Mar 26, 2020 at 18:55 | comment | added | Rajdeep Sindhu | Thanks, so, I basically gotta make my code shorter and more efficient, right? | |
Mar 26, 2020 at 18:55 | vote | accept | Rajdeep Sindhu | ||
Mar 26, 2020 at 18:53 | history | answered | Samwise | CC BY-SA 4.0 |