MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mxlgzm/very_efficient_and_scalable_code/gvq2sb5/?context=3
r/badcode • u/Conqu3red • Apr 24 '21
110 comments sorted by
View all comments
281
This Code is screaming REFACTOR ME!
135 u/sanglesort Apr 24 '21 edited Apr 25 '21 this could be one function, like just have a tag paramedit: I am sorry for being obvious, I beg for mercy 15 u/BaconKami Apr 25 '21 And then all the functions could call that 'chosetagGeneric' method, and if you want to add a new tag you just add the function that calls it right? (I am joking of course) 5 u/5p4n911 Apr 25 '21 Honestly, I might make some stupid shorthand functions for it in some obscure place just because I am lazy to write those extra ""s 75 u/Sighlence Apr 24 '21 No way 38 u/BeardeDnose Apr 24 '21 It’s almost like that was the reason this was posted here 0 u/[deleted] Apr 24 '21 [deleted] 9 u/[deleted] Apr 25 '21 I still appreciated the acknowledgement.
135
this could be one function, like just have a tag param
edit: I am sorry for being obvious, I beg for mercy
15 u/BaconKami Apr 25 '21 And then all the functions could call that 'chosetagGeneric' method, and if you want to add a new tag you just add the function that calls it right? (I am joking of course) 5 u/5p4n911 Apr 25 '21 Honestly, I might make some stupid shorthand functions for it in some obscure place just because I am lazy to write those extra ""s 75 u/Sighlence Apr 24 '21 No way 38 u/BeardeDnose Apr 24 '21 It’s almost like that was the reason this was posted here 0 u/[deleted] Apr 24 '21 [deleted] 9 u/[deleted] Apr 25 '21 I still appreciated the acknowledgement.
15
And then all the functions could call that 'chosetagGeneric' method, and if you want to add a new tag you just add the function that calls it right? (I am joking of course)
5 u/5p4n911 Apr 25 '21 Honestly, I might make some stupid shorthand functions for it in some obscure place just because I am lazy to write those extra ""s
5
Honestly, I might make some stupid shorthand functions for it in some obscure place just because I am lazy to write those extra ""s
75
No way
38
It’s almost like that was the reason this was posted here
0
[deleted]
9 u/[deleted] Apr 25 '21 I still appreciated the acknowledgement.
9
I still appreciated the acknowledgement.
281
u/BR34D_ Apr 24 '21
This Code is screaming REFACTOR ME!