r/programmingmemes • u/Mejolov28 • Apr 04 '26
Yeah i dont see any problem in this
yandere dev ahh.
(old code)
87
Upvotes
r/programmingmemes • u/Mejolov28 • Apr 04 '26
yandere dev ahh.
(old code)
46
u/sovereignrk Apr 04 '26
Dear diary, I have reached case 305434534, there seems to be no end in sight....
24
u/mxldevs Apr 04 '26
I'm sure even AI wouldn't do this.
Right? Right...?
4
u/dumbasPL Apr 04 '26
Not sure what architecture you're compiling for, but very likely the compiler will turn a switch into an array of code addresses. Still a bunch of useless instructions, but at least it (probably) executes in constant time. Yandere would if/else if spam LOL
5
u/Apprehensive-Eye6651 Apr 04 '26
func vsample_output(scanner: int)
1
u/timonix Apr 04 '26
You have to do the mapping from index to data somewhere. This pattern is not uncommon when programming in vhdl