Braille Code Disaster
// look at this disaster ahahahahaha def brailleChar(n: Int): Char = (0x2800 + ((n&0x1)<<3)+((n&0x2)<<7)+((n&0x4)<<2)+((n&0x8)>>2)+((n&0x10)<<1)+((n&0x20)>>3)+((n&0x40)>>4)+((n&0x80)>>?)).toChar // oh no hahahahaha NO NO OH NO NO NO YEEEEEEEEEEES def printBrailleBytes(a: Byte, b: Byte, c: Byte, d: Byte): Unit = { print(brailleChar((a&0x16)>>2)+((b&0x16)>>2)+((c&0x16)>>2)+((d&0x16)<<2))) print(brailleChar((a&0x48)>>4)+((b&0x48)>>2)+((c&0x48)<<2))) print(brailleChar((a&0x22)>>5)+((b&0x22)>>4)+((c&0x22)<<1))) print(brailleChar((a&0x3)+((b&0x3)<<2)+((c&0x3)<<6))) }
A dark-themed code editor shows a programmer struggling with a convoluted Scala function that converts byte values into Braille characters. The comments celebrate the disaster with exaggerated laughter and panic, making the image a reaction to confusing, overcomplicated, or broken code. EN: A dark-themed code editor shows a programmer struggling with a convoluted Scala function that converts byte values into Braille characters. The comments celebrate the disaster with exaggerated laughter and panic, making the image a reaction to confusing, overcomplicated, or broken code.
- @memetutorial / 18420 2024-06-10
- Type
- image
- Size
- 800×162 · 24.5 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added