Timeline for Project Euler #1 Sum of multiples of 3 and 5
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 15, 2015 at 16:59 | comment | added | type_outcast | It's also worth mentioning that things like Project Euler are always going to lead to a few unusual coding practices that don't translate well to more common real-world projects. In real world projects, for example, it's not often that you'll find 500+ unique subroutines that all belong together. | |
Sep 15, 2015 at 16:57 | comment | added | type_outcast | In this case, YAGNI (you are gonna need it!) if you do more than a few problems. Don't take guidelines as law; develop and use your instincts. Pre-optimization isn't always wrong. I also have no compunctions against large (even very large!) classes/source files as long as they're still cohesive and easily maintained. At some point, you will probably start splitting groups of useful helper routines into their own libraries, however. And, if it gets difficult for you to actually edit the source file, look into editors with folding, or split into manageable chunks. | |
Sep 15, 2015 at 16:49 | comment | added | CodeYogi | Also, I don't know the actual number but don't you think a single class can be too huge after solving 100 or more problems? | |
Sep 15, 2015 at 16:48 | comment | added | CodeYogi | Cool, I will keep that in mind for the coming problems. I was actually using YAGNI approach. | |
Sep 15, 2015 at 16:25 | review | First posts | |||
Sep 15, 2015 at 16:30 | |||||
Sep 15, 2015 at 16:23 | history | answered | type_outcast | CC BY-SA 3.0 |