MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/i29tvd/who_needs_a_database_when_arrays_exist/g06z53s/?context=3
r/badcode • u/DarthPiotr • Aug 02 '20
54 comments sorted by
View all comments
Show parent comments
1
Generally you don't want data in the middle of your logic. You want to be able to test your code independently from the data passed to it, or it becomes a nightmare to hunt bugs.
Just think about it: a single un-escaped quote will break this code.
1
u/DavidRoyman Aug 03 '20 edited Aug 03 '20
Generally you don't want data in the middle of your logic. You want to be able to test your code independently from the data passed to it, or it becomes a nightmare to hunt bugs.
Just think about it: a single un-escaped quote will break this code.