irelephant [he/him]@lemmy.dbzer0.com to Fediverse@lemmy.worldEnglish · 2 days agoFun fact: you can't upload this image on piefed.sociallemmy.dbzer0.comimagemessage-square124fedilinkarrow-up1157arrow-down15file-text
arrow-up1152arrow-down1imageFun fact: you can't upload this image on piefed.sociallemmy.dbzer0.comirelephant [he/him]@lemmy.dbzer0.com to Fediverse@lemmy.worldEnglish · 2 days agomessage-square124fedilinkfile-text
https://codeberg.org/rimu/pyfedi/src/commit/6405e51dab23f43eaea18d0ee4d9e7a773a3fd31/app/community/forms.py#L335 deliberately misleading error message.
minus-squareexpr@programming.devlinkfedilinkEnglisharrow-up10·8 hours agoJust because code is open source doesn’t mean shit code can’t be called out. Shit code is shit code.
minus-squareplyth@feddit.orglinkfedilinkEnglisharrow-up2arrow-down1·3 hours agoBut why is hardcoding shit code for open source code? The code is easier to read because no if or switch statements are needed to distinguish between the options. No configiration menu has to be maintained.
Just because code is open source doesn’t mean shit code can’t be called out. Shit code is shit code.
But why is hardcoding shit code for open source code? The code is easier to read because no if or switch statements are needed to distinguish between the options. No configiration menu has to be maintained.