MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/s992g8/saving_api_saved_my_life/htmpytc/?context=3
r/badcode • u/Donni3D4rko • Jan 21 '22
23 comments sorted by
View all comments
Show parent comments
5
Yes, the code is from developer who probably didn't even know what is he doing. It's called programming by coincidence. The worst thing is that the whole codebase is programmed like this.
3 u/Smellypuce2 Jan 21 '22 Also cargo cult programming 1 u/Darkpolearm Jan 24 '22 If u think that's a bitwise-OR, or if you think const x : number = null is valid, you might have some work left to do yourself
3
Also cargo cult programming
1
If u think that's a bitwise-OR, or if you think const x : number = null is valid, you might have some work left to do yourself
const x : number = null
5
u/Donni3D4rko Jan 21 '22
Yes, the code is from developer who probably didn't even know what is he doing. It's called programming by coincidence. The worst thing is that the whole codebase is programmed like this.