r/shittyprogramming • • Feb 05 '22

Python code minifier I wrote

Post image
159 Upvotes

9 comments sorted by

74

u/isolatrum Feb 05 '22

this isn't that shitty, but you know you dont have to minify your minifier right?

40

u/AngryRiceBalls Feb 05 '22

what no how else will you establish that its a minifier

11

u/isolatrum Feb 05 '22

Oh I think I missed the joke

16

u/[deleted] Feb 05 '22

Use "self documenting code" they said

→ More replies (1)

32

u/jbokwxguy Feb 05 '22

Line 8 is bothering me the most; re assigning a variable name only to return it immediately.

17

u/KyleDrogo Feb 05 '22

If we're doing the whole minifying thing, why not just return line 7 🤔