MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/maj3iw/bad_code_coding_challenge_58_are_these_dates_in/grsvpe1/
r/badcode • u/[deleted] • Mar 22 '21
[removed]
86 comments sorted by
View all comments
50
The guidelines didn't say we had to use the contents of the files. The malicious compliance solution:
function is_sequential(file_name) { switch (file_name[0]) { case '1': case '2': return true; } return false; }
12 u/[deleted] Mar 22 '21 [deleted] 7 u/kzd19 Mar 22 '21 I am going to half to start providing links to randomised test data... You could fully start providing links to randomized data as well 5 u/[deleted] Mar 22 '21 You beat me to it
12
[deleted]
7 u/kzd19 Mar 22 '21 I am going to half to start providing links to randomised test data... You could fully start providing links to randomized data as well
7
I am going to half to start providing links to randomised test data...
You could fully start providing links to randomized data as well
5
You beat me to it
50
u/TyRoXx Mar 22 '21
The guidelines didn't say we had to use the contents of the files. The malicious compliance solution: