minus-squareEthanol@pawb.socialtoFediverse@lemmy.world•Tesseract dev injects malicious code into browser to illegally DDOS the dbzer0 instancelinkfedilinkEnglisharrow-up9·8 days agoI guess it’s just a pattern to easily get a number between a and b, going (b - a + 1). Or maybe this is just vibecoded lol Seeing (100 - 1 + 1) definitely bothers my brain lmao Looking closer, the whole calculation bothers me now. Why do floor() + 1 instead of just using ceil … arghhhh linkfedilink
I guess it’s just a pattern to easily get a number between
aandb, going(b - a + 1). Or maybe this is just vibecoded lolSeeing
(100 - 1 + 1)definitely bothers my brain lmaoLooking closer, the whole calculation bothers me now. Why do
floor() + 1instead of just usingceil… arghhhh