What was the best code you ever wrote? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What was the best code you ever wrote?

14th Feb 2017, 5:37 AM
Lunar
Lunar - avatar
8 Antworten
+ 10
my # of days until Christmas code ! (if we're talking about sololearn only) It started by me seeing a calendar code in python get popular, it made me all jelly! so I started looking at the default python library for ideas. I found a base64 module which I liked, but I knew it wouldn't get popular. I think I saw either the time module, or someone using it to show the current time, but either way it reminded me of a gamedev talk about how he kept afloat by making holiday games, since everyone knew the holidays and he didn't need a brand. so I got the idea to make it countdown to the nearest holiday, Christmas! after much struggle of not knowing how to use date time, I got it working! except it turned out, it wasn't! it was counting down incorrectly to the wrong day, which im sure tricked some people. I kept trying to make some temporary fixes to make it accurate, since the code was getting a bit popular. Christmas code was about to get featured, and of course, they didn't feature me. however shortly after Christmas, I ended up on the top of trending, which was cool. it was at that time that some fellow came along and critiqued my code. I didn't understand what he was talking about, but he gave me the motivation to fix it up a bit. he told me it wasn't what he was talking about and said another thing I didn't understand. I still tried to fix it annnd... imo I made the code perfect. no problems. it'll work forever now. but he still complained, and it turned out he thought that the "it is past Christmas" message was supposed to last FOREVER, after Christmas was over, ie only one year. I informed him that the code could run any year, forever, until python3 is no longer supported. he went away. nice guy, he complained about non existent problems and made me fix real ones! and of course, I'm sure all our comments talking about it raised my codes rank in trending.
14th Feb 2017, 6:07 AM
Ahri Fox
Ahri Fox - avatar
+ 10
(2) [for some reason it won't allow me to post all in one post] I like that code because it's my most popular, and was (eventually) made to be good enough to help other sololearners learn how to use date time, after much work where I didn't understand anything. there are codes of mine I like more, but this one seems like the best where I can say it's coded pretty well. coin flip code is better, but I had A LOT of help on it. still, I've made some very innovative codes (for this site). theres a symbol maker code in python that's popular right now. I made that (although less elegantly) WAY before! it was like my third published code! and it didn't get popular, someone else stole away the masses! I fear the same might happen to my madlib code, or even my mmo story since it's the first python code on here to be a choose your own adventure.
14th Feb 2017, 6:10 AM
Ahri Fox
Ahri Fox - avatar
+ 6
I'm currently writing a game
14th Feb 2017, 1:05 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 4
I made a text based game in python.
14th Feb 2017, 11:34 AM
Chase
+ 3
Best code ever? My beatmap getter for osu! It is extremely basic... but it basically uses jQuery/AJAX to retrieve data via an api link to JSON code. When youd input a map ID it would display a little bit of data related to the map. It was awesome! Now I'm trying to get better at AJAX and APIs to make a huge website a dream come true.
14th Feb 2017, 6:18 AM
Scarlet Red
Scarlet Red - avatar
+ 2
While trying out arrays I found some algebra equations can be used to make adjustments to an array. It was great because I never thought algebra would be useful, I'm bashful to say.
14th Feb 2017, 6:12 AM
Brennan
Brennan - avatar
+ 2
i have many palns to do...still planing.. going to write a game... that will be the best code
15th Feb 2017, 3:24 AM
Deepthi Gunasekara
Deepthi Gunasekara - avatar
9th Feb 2024, 6:03 AM
ItsDaniel (He/Him)
ItsDaniel (He/Him) - avatar