From 91c2476c28238776f7e7ba7ffdae277b85f552a3 Mon Sep 17 00:00:00 2001 From: Thinh Le Date: Fri, 21 Mar 2025 18:42:40 +0700 Subject: [PATCH] =?UTF-8?q?chore:=20initial=20commit=20-=20the=20ugliest?= =?UTF-8?q?=20code=20i've=20ever=20written=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dropping this absolute disaster of a code file to break the paralysis. No more overthinking, no more perfectionism—just write, make it work, and refine later. Starting this repo with the most unreadable, unformatted, and ugly code possible. The goal? Trick my brain into not caring about style—just build. This mess exists to remind me that progress > perfection. Ship first, clean up later. --- ugly_code_file.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ugly_code_file.py diff --git a/ugly_code_file.py b/ugly_code_file.py new file mode 100644 index 0000000..279438a --- /dev/null +++ b/ugly_code_file.py @@ -0,0 +1,26 @@ +import sys,os,random,time +def f(x):return x*2 if x%2==0 else x+1 +class C: + def __init__(self,v):self.v=v + def p(self):print("Value:",self.v) +def m(l):return [f(x) for x in l] +x=[random.randint(1,100) for _ in range(10)] +print("Original:",x) +print("Processed:",m(x)) +for i in range(len(x)): + if i%2==0: + x[i]*=2 + elif i%3==0: + x[i]+=3 + else: + x[i]-=1 +c=C(sum(x)) +c.p() +try: + for i in range(5):print(i,x[i],f(x[i])) +except:pass +with open("temp.txt","w") as f:f.write("Hello, world!") +while True: + time.sleep(0.1) + if random.random()>0.9:break +print("Done!")