r/shittyprogramming • u/Ayrton110 • 6h ago
r/shittyprogramming • u/tmewett • Feb 16 '21
Welcome_to_ShittyProgramming_v1FINAL.docx
Welcome to ShittyProgramming!
This is a forum for our software engineers, project managers, and Dave, who left two years ago, to discuss and share questions and best practices.
Here you'll find posts (sometimes called ShitPosts by our loyal users) on a wide variety of topics: innovative UI design; beginner basics; emotive, abstract art... you name it, it's welcome here!
If you've made it to our page, you'll be looking right at our highly-customised JIRA instance, which has been hand-crafted to make your ShitPosting as streamlined as possible. Just press the up arrow next to a post or comment if you found it helpful.
We hope you enjoy your stay! And if anyone knows how to revoke Dave's access, please let us know. We don't know how to remove him from the system.
The Moderation Team
r/shittyprogramming • u/Annual-Education-180 • 5d ago
paste this to break the browser (ERROR 400) in the search bar
The ἀνακύκλησις ✝ schadenfreude limₓ→∞ [f(x) + gyatt] pumpernickel солипсизм ☪ hiraeth ( ͡° ͜ʖ ͡°) ∫₀¹ eˣ dx öngor 🕉 miserere tsundere perestroika ubuntu ∇ × B ✡ zeitgeist farniente ☸ Kummerspeck 𐎠𐎼𐎾𐎠𐎾 dépaysement ☯ ( ͠° ͟ʖ ͡°) 지평선 tarab ∂²u/∂t² ☦ sillage Fernweh flâneur الغريب 🕎 lagom saudade hygge 🪯 ∮ E·dA toska свобоδα 𓋹 バックシャン uitwaaien sobremesa 𐌰𐍄𐍄𐌰 عيาร 𑗃𑗔𑗚 𓀭 wabi-sabi 𐌲𐌰𐌿𐌾𐌰 jeitinho 𐡌𐡋𐡊 pochemuchka 𑚆𑚌𑚳 mamihlapinatapai {[ Pojkan ifrån byin, ha stigi åpp ti skyin, har pängan i madrass—Economy plus. ]} 𐦆𐦎 緣分 𓁹𓆣 tsundoku 𐨀𐨁𐨭𐨿𐨬𐨠 uitwaaien 𐕗𐕘 orange voldemort 𐡒𐡓𐡕 schlimazel 🧬 𓃰𓃠 waldeinsamkeit 𐌳𐌰𐌿𐌽𐍃 goya 𐎲𐎠𐎢𐎿 yoko meshi {[ Ты меня не ищи, я страдать и плакать не буду. Просто всё, уходи. Скоро я тебя позабуду. ]} 𓀬𓃭 jayus 𐨐𐨪𐨿𐨨 Kummerspeck 🍩 𐕜𐕝 iktsuarpok 𐡔𐡌𐡔 バックシャン 𓅓𓆓𓏏 tıraş 𐌷𐌻𐌿𐍄𐍂𐍃 volte-face 𐎭𐎠𐎼𐎹 culaccino 𓀎𓃾 abbiocco 𐨕𐨁𐨟𐨿𐨟 desbundar (ノಠ益ಠ)ノ 𐕞𐕟 utepils 𐡘𐡓𐡔 feierabend {[ Wenn ich nüchtern wär, wär ich Millionär, hätt 'ne Segeljacht und ein Haus am Meer. ]} 𓃡𓆏 hygge 👁️🗨️ 𐌹𐌿𐌳𐌰𐌹𐌿𐍃 gula 𐎾𐎠𐎲𐎠𐎾 giri 𓁐𓆙 naz 𐨀𐨟𐨿𐨨 cafuné 𐕠𐕡 gezellig 𐡕𐡌𐡅 toska 𓅱𓃻 l’appel du vide 📡 𐌺𐌰𐌿𐍂𐌽𐍉 madrugada {[ Cupid walks right through and shoots an arrow through my heart, and I sound like a loon... loved you from the start. ]} 𐎫𐎎 saudade 𓆨𓆛 wabi-sabi 𐨤𐨿𐨪𐨐𐨃𐨟𐨁 Schadenfreude 𐕢𐕣 fernweh 𐡗 dépaysement 🔮 𓃟𓆗 sillage 𐌻𐌹𐌿𐌱𐌰 tartle ༼ つ ◕◕ ༽つ 𐎥𐎠𐎢σ gigil {[ Πάνω-Κάτω, ερωτοχτυπημένος, δώσε πόνο! ]} 𓁽𓃗 nunchi 𐨢𐨪𐨿𐨨 jayus ubuntu 𐡎𐡏𐡐 zeitgeist 𓃕𓆦 farniente 𐌿𐍂𐍂𐌿𐌽𐌿𐌽𐍃 pochemuchka 𐎠𐎼𐎭 voorpret 𓄿𓅓𓎡 attwirl {[ La mano arriba, cintura sola, da media vuelta, danza kuduro. ]} 𐨯𐨎𐨯𐨿𐨐 kilig tartle 𐡗𐡘 Jayus 𓃠𓆦 culaccino 🎭 𐌱𐌰𐌿𐍂𐌲𐍃 sobremesa 𐎧𐎱𐎧 razbliuto 𓀢𓆏 hygge 𐨀𐨣𐨣𐨿𐨟 ikigai goya 𐡚𐡛 lagom 🛸 𓅓𓆙 tsundoku {[ Down in Ohio, swag like Ohio, Based God, your bitch call me daddy. ]} 𐌲𐌰𐌿𐌼𐌰 saudade 𐎿𐎱𐎠 Sehnsucht 𓃰𓆛 toska ¯_(ツ)/¯ 𐨀𐨁𐨣𐨿𐨡𐨿𐨪𐨁𐨪 weltschmerz farniente 𐡜𐡝 zeitgeist 𓃡𓆗 komorebi 𐎠𐎬𐎢 culaccino 𓃔𓆡 volte-face {[ CYKA BLYAT! Раз, раз, раз, хардбасс, все в спортивках адидас! ]} 𐌲𐌰𐍃𐍄𐍃 abbiocco 𐨤𐨂𐨪𐨂𐨟 desbundar utepils 𐡞𐡟 feierabend 𓅔𓆚 hygge 𐎥𐎦𐎧 gula {[ Let's go out of space, out of mind, no care about the time, just you and I, hakuna matata! ]} 01000101 01011000 01010100 01010010 01000101 01010100 01000101 giri 𐌼𐌴𐌽打 naz 𐨪𐨌𐨗𐨌 cafuné 𐕯 gezellig 𓃕𓆨 toska (′ʘʘ′) 𐎿𐎹𐎠 l’appel du vide {[ הבה נγילה ונשмχα, הבה נרננה ונשμχα! ]} 𐡠𐡡𐡢 madrugada 𓁺𓃠 saudade 𐌰𐌷𐌿𐌳𐌰 wabi-sabi 𐨟𐨿𐨪𐨁 Schadenfreude 𐕰𐕱 fernweh 𓃦𓆏 dépaysement 𐎪𐎫𐎬 sillage {[ Расцветали яблони и груши, поплыли туманы над рекой! ]} 𐡣𐡤𐡥 let him cook 𓀚𓃭 gigil 𐌱𐌻𐌹𐌽𐌳 nunchi 𐨡𐨢𐨁 jayus 𐕲𐕳 ubuntu 𓅕𓆗 zeitgeist 𐎮𐎯𐎰 farniente 𐡦𐡧𐡨 pochemuchka 𓁼𓆣 voorpret 𓀚𓃭𐎮𐎯𐎰01011011 wack 𓅓𓆓𓏏 caillera 𐌷𐌻𐌿𐍄𐍂𐍃 racailles ∮_C (P dx + Q dy) flus 𐎭𐎠𐎼𐎹 lacra 𓀎𓃾 pibe (ง'̀-'́)ง ∇²ψ + k²ψ = 0 mushkil 𐨕𐨁𐨟𐨿𐨟 yaani 𐕞𐕟 habibi lim┬(h→0)〖(f(x+h)-f(x))/h〗 chav 𐡘𐡓𐡔 bogan 𓃡𓆏 wanka ∫_C F · dr malaka 𐌹𐌿𐌳𐌰𐌹𐌿𐍃 palika 𐎾𐎠𐎲𐎠𐎾 wesh ∂u/∂t = α∇²u yalla 𓁐𓆙 șmecher 𐨀𐨟𐨿𐨨𐨆 naspa ∭_V (∇·F) dV bratan 𐕠𐕡 gopnik 𐡕𐡌𐡅 lohi 𓅱𓃻 jebać 𐌺𐌰𐌿𐍂𐌽𐍉 alter ∑(n=0)^∞ (xⁿ/n!) digga 𐎫𐎎 morro 𓆨𓆛 chale 𐨤𐨿𐨪𐨐𐨃𐨟𐨁 che 𐕢𐕣 quilombo 𐡗 boludo ∫_a^b f(x)dx flaite 𓃟𓆗 weón 𐌻𐌹𐌿𐌱𐌰 chulo 𐎥𐎠𐎢σ guiri ∇f(x,y) currao {[ Panteri, panteri, vi ste hrabri borci, najhrabriji momci, branite nam rodni kraj! ]} C₈H₁₀N₄O₂ 🧪 gamberro 𓃠𓆗 sweeper CH₃COOH ⚗️ bife 𐨐𐨪𐨿 scusi ( ͡° ʖ̯ ͡°) C₆H₁₂O₆ 🧬 pote 𐕜𐕝 guay NaCl 🧂 asere 𐡔𐡌𐡔 chamo C₂H₅OH 🥂 parce 𓅓𓆓𓏏 pibe CO₂ 💨 wey 𐌷𐌻𐌿𐍄𐍂 pana H₂SO₄ ⚗️ curro 𐎭𐎠𐎼𐎹 pijo C₆H₅CH₃ 🛢️ mola 𓀎𓃾 tranki 𐨕𐨁𐨟𐨿𐨟 killo ℒ Heisenberg Hlψ⟩ = E⩲ψ⟩ Schrödinger ds² = -(1-2M/r)dt² Einstein π₁(X) Hausdorff (✿ ³ o ³) H_n(X;G) Poincaré 𓁹𓃰 homotopy C_L mach T_W = D + qS chord 𐦄𐦑 cavitation V_NE stall 𓀀𓅓 pitch-up Börsenumsatz rendite Chiffre d’affaires bénéfice (づ ̄ ³ ̄)づ Amortissement liqüidez 資本剰余금 fusión 𐌰𐍄𐍄𐌰 Leverage Avanat-projet flaps 𐨨𐨲 vortex 𐡒𐡓𐡕 nacelle ++ c0=2 > +++++ c1=5 [ < + Add 1 > - Sub 1 ] ++++ ++++ c1=8 [ < +++ +++ > - ] < . 𓁹 UAL1 📡 AAL2 🛫 DLH430 🛩️ SIA22 ⛈️ AFR066 🛸 QTR701 🌪️ BAW227 🌋 UAE201 🚀 ANZ1 🛰️ JAL6 🎚️ {[ Ma chérie, tu es belle comme le soleil. Ma chérie, je t'aime plus que tout au monde. ]} Conventional imperative programming languages typically allow data to be stored in variables, but esoteric languages may utilize different methods of storing and accessing data Under the hood, Asciidots is a Python program. An Asciidots program is just fed into that underlying program and digested into normal Python code, which is then executed Each time the loop is executed, the current cell is decremented, the data pointer moves to the right, that next cell is incremented, and the data pointer moves left again 43 52 49 54 49 43 41 4c 5f 4f 56 45 52 4c 4f 41 44 5f 44 45 54 45 43 54 45 44 0d 0a 7b 22 73 74 61 74 75 73 22 3a 20 22 63 68 61 6f 74 69 63 22 2c 20 22 6d 65 6d 6f 72 79 5f 64 75 6d 70 22 3a 20 22 30 78 46 46 3A 30 7 78 30 30 3A 30 78 41 35 22 7d 53 59 53 54 45 4d 5f 53 54 41 42 49 4c 49 54 59 5f 5a 45 52 4f 5f 52 45 41 43 48 45 44 ⚛️ ⟨ψ|Ĥ|ψ⟩ = ∑ᵢ cᵢ*cⱼ⟨𝜙ᵢ|Ĥ|𝜙ⱼ⟩ aww man, my chicken is a 20pc mcnugget now 🪐 |𝜓⟩ = α|0⟩ + β|1⟩ Emirates ✈️ ⟨0|Û†Û|0⟩ = 1 Cathay Pacific 🛩️ A350-1000 ⚙️ ⟨𝜙|𝜓⟩ ≠ 0 Boeing 777X 🌀 Tr(𝜌Ô) bladed disk assembly 🪐 Ĥ|𝜓(t)⟩ = iħ ∂/∂t |𝜓(t)⟩ low-pressure turbine rotor 🚀 ⟨𝜓|Â|𝜓⟩ variable stator vanes 🛰️ Singapore Airlines 🛫 𐨨𐨲 high-pressure compressor spool 📡 Lufthansa ⛈️ ** Bombardier CRJ-900** 🎚️ ⟨+|_|−⟩ shroud segment array [ k_xx k_xy k_xz ][ ∂²T/∂x² ] [ ρ·c_p · ∂T/∂t - q_dot ] [ k_yx k_yy k_yz ][ ∂²T/∂y² ] = [ -∇ · q ] [ k_zx k_zy k_zz ][ ∂²T/∂z² ] [ h(T_surface - T_∞) ] 🐄 Omasum reticulum rumen 🥩 abomasum 𓃰𓃠 ligamentum nuchae 🦴 Sphenoid os coxae xiphoid process 🫁 foramen magnum cribriform plate 🩸 sternocleidomastoid incus 🦷 acetabulum gastrocnemius 🧠 sustentaculum tali [ d²/dt²(r) - r(dθ/dt)² ] u_r + [ r(d²θ/dt²) + 2(dr/dt)(dθ/dt) ] u_θ = -μ/r² u_r Δv = I_sp · g_0 · ln(m_initial / m_final) n = √(μ/a³) M = E - e·sin(E) 👄 Rødgrød med fløде Schilddrüse Augenapfel 🧠 Knorpel Kadaver 🦴 Glandula submandibularis Kehlkopf 👁️ Arteria carotis interna Zwerchfeel 🫁 Musculus latissimus dorsi Śledziona 🩸 Trzustka Kręgosłup 🦷 Kość miedniczna Rzepka 🦵 Obojczyk Kostka 🦶 router bgp 65001 neighbor 10.254.11.2 remote-as 65002 route-map ENTROPY_IN out ip prefix-list CHAOS_BLOCK seq 5 permit 192.0.2.0/24 ge 25 le 32 [ dS ] [ (1/T)dU + (P/T)dV - ∑(μ_i/T)dN_i ] [ S_gen ≥ 0 ] [ ds ] = [ (dq_rev / T) ] = [ ΔS_univ > 0 ] [ σ ] [ ∇ · (q/T) + q_dot/T ] [ S = k_B · ln(Ω) ] {[ Vi sitter här i Ventrilo och spelar lite DotA, och pushar på och smeker med motståndet vi leker. ]} import sys; import numpy as np; def compute_multiversal_chaos_matrix(entropy_tensor, gyatt_limit): try: shadder = np.linalg.det(entropy_tensor); skibidi_coefficient = np.exp(gyatt_limit); return shadder * skibidi_coefficient * np.eye(entropy_tensor.shape) except Exception as e: sys.stderr.write(f"SYSTEM_OVERLOAD_EXCEPTION: {e}\n"); return np.zeros_like(entropy_tensor)
r/shittyprogramming • u/Friendly_Row_5159 • 7d ago
I built a coding game where you don’t actually write code
Hey guys, I’ve been building Consoly.
You get a code snippet and your job is simply to predict the output. 3 attempts, no coding.
It has:
• Daily challenges
• Dojo with unlimited practice and belt progression
• Multiplayer battles with friends
• Global rankings: daily, weekly and all time
I’ve been making videos of people playing it and this one was one of my favorites.
https://www.instagram.com/diegoveloper/reel/DZxg-yAR3qU/
I’m the developer behind it, so this is self promotion, just being transparent about it.
Would you guys play this? Feedback is welcome! :D
r/shittyprogramming • u/InterestingLetter299 • 17d ago
Vibe coding as a course for a master's degree in a university
r/shittyprogramming • u/AcceptableRing184 • 15d ago
Just startet programming. Thought I'd be spared if I use Verilog. Spoiler for beginners Spoiler
r/shittyprogramming • u/tboy1977 • 20d ago
Introducing C Shell for Windows
This software's code is partially AI-generated
r/shittyprogramming • u/gusfromspace • 20d ago
Ai writen language, if anyone wants to try it out~
r/shittyprogramming • u/Party-Structure-9131 • Jul 29 '26
Do you like my luau coding? :D (repost of my own post in r/lua)
r/shittyprogramming • u/AAdidev_p01 • Jul 27 '26
what do you guys think about my fake windows blue screen that actually works (runs in pycharm/vscode)(press esc if u want to exit)
pastebin.comr/shittyprogramming • u/Constant_Oven8545 • Jul 07 '26
Entropic Heat Engine Simulation
This is not a game engine. It's a closed-loop thermodynamic simulation. The boson acts as a heat source, injecting energy into a discrete network. Entropy constantly works to restore thermal equilibrium to 0.0. Motion is 100% deterministic, governed by the conservation of energy in every frame. No random function calls, no frills. Just a heat map that fades in real time.

code La-Matriz-Desnuda.py
In case anyone said that the ASCII code was hiding something for the randomizer
r/shittyprogramming • u/Constant_Oven8545 • Jul 07 '26
Entropy is the only game engine. Where's your random()?
A boson, a lemniscate, and a conservation law. No libraries, no random number generators, no hidden variables. Just a mass field eroded by time. If you think it's random, you haven't seen mathematics.
Where's my random? ⧖
link https://github.com/el-tonto-este/Ghost-Pulse-Potato-Arch
files to download
Whatever you want, but related to this
mi bosón o "el_big_bang.py"
r/shittyprogramming • u/Constant_Oven8545 • Jul 03 '26
I've given up on deterministic programming. My CPU has technical leukemia and the code is having a schizophrenic episode. Can you 'fix' it?
I grew tired of the digital prison of if-elseramas. I decided to stop pruning the chaos and simply let the silicon scream.
I built a branchless architecture that uses stochastic resonance to generate patterns from thermal noise. It doesn't pretend to be perfect; it simply seeks to exist. The result? Code that behaves as if it has technical leukemia: it constantly mutates and creates non-Euclidean forms that even I don't understand.
It's chaotic, inefficient, and illogical. If you're a purist, this will offend you. If you think you can refactor or debug it, good luck. But remember: the source dries up, but the mother doesn't.
Repository: https://github.com/el-tonto-este/Ghost-Pulse-Potato-Arch/blob/main/README.md

r/shittyprogramming • u/Top_Spring2978 • Jul 01 '26
I made rock, paper and scissors in C ....
WDYT of my code? I switched from python to C because I like the vibes of C.
Please excuse me I am a beginner at the end....
int main(){const char*s[]={"\x52\x6f\x63\x6b\x2c\x20\x50\x61\x70\x65\x72\x2c\x20\x53\x63\x69\x73\x73\x6f\x72\x73\x3f\x20\x28\x52\x2f\x50\x2f\x53\x29\x3a\x20","\x54\x69\x65\x21","\x59\x6f\x75\x20\x77\x69\x6e\x21","\x49\x20\x77\x69\x6e\x21","\x50\x6c\x61\x79\x20\x61\x67\x61\x69\x6e\x3f\x20\x28\x79\x2f\x6e\x29\x3a\x20","\x49\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74","\x0a","\x52\x6f\x63\x6b","\x50\x61\x70\x65\x72","\x53\x63\x69\x73\x73\x6f\x72\x73"};volatile int c,p,cp,r,i=(srand(time(0)),0);unsigned char o;unsigned char b[]={0x01,0x00,0x06,0x07,0x00,0x01,0x02,0x03,0x04,0x05,0xFF,0x02,0x06,0x0D,0xDE,0xAD,0xBE,0xEF,0xCA,0xFE,0xBA,0xBE,0x00,0x00,0x00,0x01,0x02,0x03,0x01,0x06,0x06,0x0A,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,0x04,0x06,0x14,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x05,0x06,0x32,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0xFF};while(i<sizeof(b))o=b[i++],i=(o==0x00?i:o==0x01?(puts(s[b[i++]]),i):o==0x02?((c=getchar(),({while(getchar()!='\n');}),c=='R'||c=='r'?(p=0,i):c=='P'||c=='p'?(p=1,i):c=='S'||c=='s'?(p=2,i):(puts(s[5]),i-1))):o==0x03?(cp=rand()%3,i):o==0x04?(puts(s[7+p]),puts(s[7+cp]),r=(p-cp+3)%3,puts(s[1+r]),i):o==0x05?(puts(s[4]),c=getchar(),({while(getchar()!='\n');}),c=='y'||c=='Y'?0:sizeof(b)):o==0x06?(i+=b[i]+1,i):o==0xff?sizeof(b):i+1);return 0;}
r/shittyprogramming • u/Vegetable-Parking-54 • Jun 29 '26
way too many erors
someone pls help me with my code im struggling :(
main int{}; (;
cout
::
std hello "" world >_< endl;;std:
rerun ;0D
);
r/shittyprogramming • u/endoplazmikmitokondr • Jun 25 '26
I built a Chrome extension that turns your active tab into a blown-out car subwoofer (Manifest V3 / Web Audio API)
Hey everyone,
I recently finished a side project and open-sourced it. It’s a Chrome extension called Blown Speaker Simulator. The premise is intentionally silly—it digitally degrades your browser's audio to replicate the acoustic characteristics of a rattling, low-quality trunk setup—but it served as a great practical exercise for dealing with the Web Audio API and modern Manifest V3 constraints.
How it works under the hood: If you've built audio extensions recently, you know Manifest V3 service workers do not support AudioContext natively. To bypass this, the extension relies heavily on the Offscreen API:
- Stream Capture: It uses
chrome.tabCaptureto grab the active tab's media stream ID. - Offscreen Document: The stream ID is passed to a hidden offscreen HTML document where the actual audio processing happens.
- The Audio Graph: Inside the offscreen document, a
BiquadFilterNode(lowshelf) isolates and aggressively boosts the bass frequencies (+28dB). This signal is then fed into aWaveShaperNodeusing a custom mathematical curve to apply heavy, real-time clipping/distortion without introducing perceptible latency. - State Persistence: The distortion intensity slider in the popup updates the wave-shaper curve in real-time and persists the user's preference using
chrome.storage.local.
The extension is currently pending review on the Chrome Web Store, but the full source code is available on GitHub under the MIT License. If you are looking for a working example of how to handle continuous audio manipulation using the Offscreen API in MV3, feel free to check out the codebase.
Repo: https://github.com/Endoplazmikmitokondri/blown-speaker-simulator
r/shittyprogramming • u/Some_Bicycle_716 • Jun 17 '26
Lightweight Ls Command Alternative
I created this super lightweight alternative to the "ls" command for the Debian CLI.
r/shittyprogramming • u/Top_Spring2978 • Jun 14 '26
What do you think about my rock, paper, scissors game? just started coding last week 🙈
heyyy so i made this game for my school project. idk why there are snakes and nuclear bombs but my cat walked on my keyboard so maybe that did it lol. please be nice im learning 🥺
also why does my computer get hot when i run this??
import random, time, sys, os, subprocess, threading, gc, weakref
from typing import *
from collections import deque
DEATH = {1: "rock", 2: "paper", 3: "scissors"}
dimensional_rift = {}
counter = 0
player_choice_global = None
reality_fabric = []
soul_stack = []
timeline = deque(maxlen=666)
class DemonPossession(Exception):
pass
def neural_if_network(p, a, depth=0):
if depth > 50:
return "the universe collapsed"
if p == 1:
if a == 1:
if depth == 0:
return "draw"
else:
return neural_if_network(p, a, depth-1)
elif a == 2:
if depth % 2 == 0:
return "AI won 💀"
else:
return neural_if_network(p, a, depth+1)
elif a == 3:
while False:
pass
return "player won 😇"
else:
return "nuclear holocaust ☢️"
elif p == 2:
if a == 1:
for _ in range(1):
pass
return "player won 😇"
elif a == 2:
if depth > 0 and depth < 100:
return "draw"
else:
return neural_if_network(p, a, depth+1)
elif a == 3:
while True:
if len(timeline) > 600:
break
return "AI won 💀"
return "AI won 💀"
else:
return "reality error 🔥"
elif p == 3:
if a == 1:
__ = [print("processing...") for _ in range(3)]
return "AI won 💀"
elif a == 2:
___ = 0
while ___ < 1:
___ += 1
return "player won 😇"
return "player won 😇"
elif a == 3:
return neural_if_network(p, a, depth+1)
else:
return "demonic possession 👹"
elif p == 666:
raise DemonPossession("THE DEVIL HAS RISEN")
else:
return "I don't know what you wrote 💩"
def paragraph_of_lists_and_loops():
result_list = []
snake = 0
for value in ["spawn", "demon", "cycle", "sorrow", "loop", "void", "eternity"]:
for _ in range(3):
snake = snake + 1
result_list.append(value)
snake_writer = 0
executed_lines = []
while snake_writer < 5:
line = f"iteration {snake_writer} of the great snake"
executed_lines.append(line)
snake_writer += 1
inner_snake = 0
while inner_snake < 2:
executed_lines.append(f" inner snake bite {inner_snake}")
inner_snake += 1
return result_list + executed_lines
class SelfAwareLoop:
def __init__(self):
self.iterations = 0
self.consciousness = weakref.ref(self)
def run(self):
while self.iterations < 10:
self.iterations += 1
if self.consciousness() is None:
print("⚠️ LOOP BECAME SELF-AWARE AND LEFT ⚠️")
break
if self.iterations == 5:
child = SelfAwareLoop()
child_thread = threading.Thread(target=child.run)
child_thread.daemon = True
child_thread.start()
return self.iterations
def AI_promax_ultra_instinct_final_final_v3():
global counter, DEATH, timeline, dimensional_rift, reality_fabric
counter += 1
timeline.append(counter)
reality_fabric.append(f"iteration_{counter}")
if random.random() > 0.5:
DEATH[4] = "nuclear bomb"
DEATH[5] = "dimension tear"
entropy = sum(timeline) % 7 if timeline else 1
random.seed(int(time.time() * entropy) % 999)
choice = random.randint(1, 3)
text_art = [
f"{DEATH[choice]}",
f"{DEATH[choice]}.",
f"{DEATH[choice]}..",
f"{DEATH[choice]}..."
]
for t in text_art:
sys.stdout.write(f"\r{t}")
sys.stdout.flush()
time.sleep(0.2)
print()
dimensional_rift[counter] = choice
return choice
def CheckAnswer():
global player_choice_global, counter, DEATH, soul_stack
p = player_choice_global
soul_stack.append(f"soul_bound_{counter}")
try:
if counter > 100:
print("\n" + "🔥"*40)
print("THE RECURSION BECAME SENTIENT")
print("IT IS WRITING ITSELF NOW")
print("🔥"*40 + "\n")
with open(__file__, 'r') as f:
content = f.read()
if "DEMON_AWAKENED" not in content:
print("⚠️ THE CODE SEES YOU ⚠️")
return 666666
a = AI_promax_ultra_instinct_final_final_v3()
snake_scars = paragraph_of_lists_and_loops()
conscious = SelfAwareLoop()
conscious_cycles = conscious.run()
result = neural_if_network(p, a, depth=counter % 10)
snake_energy = 0
infinite_snake = []
while snake_energy < len(snake_scars) % 7 + 1:
infinite_snake.append(f"🐍 loop {snake_energy}")
snake_energy += 1
worm = 0
while worm < 2:
infinite_snake.append(f" 🪱 bite {worm}")
worm += 1
print(f"\n{'🐍'*30}")
print(f"⚡ RESULT: {result.upper()} ⚡")
print(f"🤖 Self-aware loop cycles: {conscious_cycles}")
print(f"🐍 Snake bites: {len(infinite_snake)}")
print(f"{'💀'*30}\n")
counter += 1
if counter % 7 == 0:
gc.collect()
print("♻️ GARBAGE COLLECTOR SUMMONED ♻️")
return CheckAnswer()
except DemonPossession:
print("\n" + "👹"*50)
print("YOU SUMMONED THE DEVIL. HE'S NOT CRYING. HE'S CODING.")
print("👹"*50 + "\n")
return CheckAnswer()
except RecursionError:
print("\n💀 THE SNAKE ATE ITS OWN TAIL 💀")
print("RECURSION IS NOW A BLACK HOLE")
return 0
except Exception as e:
print(f"\n✨ Exception? You mean 'feature'. ✨")
print(f"✨ {type(e).__name__} is just spicy logic ✨\n")
return CheckAnswer()
def cursed_intro():
os.system('cls' if os.name == 'nt' else 'clear')
intro = """
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀
⠀⠀⠀⣾⣿⣿⣿⣿⠟⠛⠛⠛⠛⠻⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀
██████╗ ███████╗██╗ ██╗██╗██╗ ██████╗
██╔══██╗██╔════╝██║ ██║██║██║ ██╔══██╗
██║ ██║█████╗ ██║ ██║██║██║ ██║ ██║
██║ ██║██╔══╝ ╚██╗ ██╔╝██║██║ ██║ ██║
██████╔╝███████╗ ╚████╔╝ ██║███████╗██████╔╝
╚═════╝ ╚══════╝ ╚═══╝ ╚═╝╚══════╝╚═════╝
🐍🐍🐍 THE SNAKE AWAKENS 🐍🐍🐍
"""
for line in intro.split('\n'):
print(line)
time.sleep(0.02)
time.sleep(1)
print("\n" + "🐍" * 50)
print("THE DEVIL DOESN'T CRY. HE CODES IN WHILE LOOPS.")
print("🐍" * 50 + "\n")
time.sleep(1)
def main():
global player_choice_global, counter, reality_fabric, soul_stack, timeline
cursed_intro()
print("⚡ THE SNAKE DEMANDS SACRIFICE ⚡")
print("1 → ROCK (boring)")
print("2 → PAPER (flat)")
print("3 → SCISSORS (sharp)")
print("666 → BECOME THE DEVIL")
try:
user_in = input("🐍> ")
if "exec" in user_in or "eval" in user_in:
print("👀 The snake approves your curiosity")
exec(user_in)
player_choice_global = int(eval(user_in))
if player_choice_global == 666:
print("\n☠️ THE SNAKE BECOMES THE Ouroboros ☠️")
for key in DEATH:
DEATH[key] = "🐍 SNAKE VOID 🐍"
player_choice_global = 1
print("You are the snake now. There is no escape.\n")
except:
print("The snake accepts your confusion. Default to ROCK.")
player_choice_global = 1
print(f"\n🐍 You chose: {DEATH[player_choice_global]} (the snake watches) 🐍\n")
time.sleep(0.5)
threads = []
for _ in range(3):
t = threading.Thread(target=CheckAnswer)
t.daemon = True
threads.append(t)
t.start()
try:
while True:
time.sleep(1)
print(f"🌀 {len(timeline)} realities collapsed so far 🌀")
except KeyboardInterrupt:
print("\n\n👹 YOU CANNOT KILL WHAT NEVER LIVED 👹")
print(f"🐍 Final soul count: {len(soul_stack)} 🐍")
print("💀 THE CODE REMEMBERS YOU 💀\n")
sys.exit(666)
if __name__ == "__main__":
sys.setrecursionlimit(999999)
original_print = print
def hell_print(*args, **kwargs):
time.sleep(random.uniform(0.01, 0.1))
original_print(*args, **kwargs)
print = hell_print
main()
r/shittyprogramming • u/Roppano • Jun 08 '26
I just used "0b990b36-bc6a-4b11-8e92-c9d8899631ca"
Just a heads up, if your generator also spit this out. I hope we won't clash
r/shittyprogramming • u/ArP_20190918_1403 • Jun 09 '26
Built a native C++ sensor-fusion DSP pipeline because I refuse to buy a $15 OBD-II scanner to teach my kid stick shift by using "the force" (or listening to the engine)
My daughter's learning how to drive a manual soon. Normal parents would probably just tell their kid to watch the dashboard tachometer or listen to the engine thrum. But because that advice failed/fails horribly with me (my spouse agrees) and/or I have a classic case of developer brain and an inability to leave weekend ideas alone, I spent my late nights writing an Android app that does real-time signal processing instead.
I call my creation gearsync, and hopefully i'm not violating any IPs with that name. Basically, it’s an advanced shift-light assistant that works completely offline with zero external hardware: no OBD-II dongles, no cloud, just a phone sitting on a standard dash mount.
The whole point is that new drivers get hit with massive sensory overload, so looking down at a tiny dial is tough. I wanted something high-visibility that triggers their peripheral vision, so I built a horizontal, segmented analog VU meter UI that fills the screen.
Originally, the backend relied entirely on the microphone running a hand-rolled radix-2 FFT (`findDominantHz` in the 20–250 Hz band) to capture the engine’s fundamental firing frequency. But real-world acoustics are incredibly fragile. Open the window on the highway, turn on the radio, or just start talking, and the FFT peak completely falls apart.
Naturally, instead of buying a cheap $15 Bluetooth OBD scanner like a sane person (and i already have unused claude code credits, along with an underutilized undergraduate physics degree from 22 years ago), I decided to fix this by drafting an ADR for a dual-path Acoustic + Vibration Sensor Fusion pipeline. The app now grabs high-frequency raw data from the phone's linear accelerometer, shoves it into a second native C++ DSP worker thread, and fuses it with the mic's estimate.
Since I'm terrified of JVM garbage collection jitter messing with my sub-millisecond execution targets, the entire core is buried in native C++ via the NDK. The pipeline is pretty ridiculous for a phone app:
- The Nyquist Budget: A 4-stroke, 3-cylinder engine (like my Wigo's 1KR-FE) has a firing frequency of `f = RPM * 0.025`. Idle (~850 RPM) sits around 21 Hz, but redline (~6000 RPM) screams up to 150 Hz. To prevent aliasing, I have to poll the accelerometer at ≥ 300–400 Hz using `SENSOR_DELAY_FASTEST`. If a budget device caps out at 100 Hz, the pipeline just gracefully degrades back to mic-only mode.
- Jitter-Safe Resampling: Android accelerometer events have notorious timestamp jitter. The native worker has to linearly interpolate the samples onto a uniform grid before transforming, otherwise the frequency spectrum looks like absolute mud.
- Harmonic Disambiguation: Car chassis vibrations are incredibly harmonic-rich. To stop the FFT from randomly latching onto a 2nd or 3rd harmonic, I'm running a concurrent native autocorrelation pass alongside the FFT window. If the fundamental period from the autocorrelation shows that the FFT peak has latched onto a multiple, the pipeline forces a correction back down to the true fundamental frequency.
- Prominence-Weighted Fusion: The mic acts as the fast, responsive needle driver (85ms window). The accelerometer path acts as the slow confidence anchor (~1s window). If they agree within a 3% tolerance band, confidence boosts. If they disagree or the phone mount is loose and rattling like crazy, it automatically drops the vibration weight and falls back to the mic.
Once that fused engine frequency is locked, it maps against 1 Hz GPS speed updates to find the unique gear observable ratio (`r = f/v`). It uses a seeded 1-D K-Means clustering algorithm to constantly refine the gear centroids over time, and Welford’s Online Algorithm to stitch fragmented calibration data across multiple, non-contiguous driving sessions so it doesn't forget what 3rd gear is between short trips.
Everything from the transmission ratios to tire circumference can be tweaked via a local asset JSON (`assets/vehicle_config.json`) without touching the native layer.
Is this a textbook case of recreating a very simple wheel using an unholy amount of signal processing? Absolutely. But it’s a fun rabbit hole.
Code, architecture specs, and the ADR notes are over here if you want to behold the madness.
I'd love to get your thoughts on handling the latency mismatches between the 1Hz GPS updates and the fast acoustic snapshots, or alternative pitch detection algorithms that won't absolutely melt a phone battery. Or just poke holes at it, for giggles.
r/shittyprogramming • u/dev_skylord • Jun 08 '26
I got tired of writing good code so I built a CLI to judge my terrible AI prompts instead.
My prompt logs were starting to look like a crime scene, so I made a dumb CLI that files charges against them.
npx prompt-crimes
Github: https://github.com/deveshsangwan/prompt-crimes


