Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
drekhi18027yString a = {"yes","no"};
cin>> n ;
cout<<a[n%2];
(Finding Even no here)
Wrote that when I started out, it's still elegant I guess -
@c3ypt1c For the weekly rant I prefer more in lins of: what is your stupidest line of code xD
-
rui7257607yIn Reality it doesn’t matter if your code is too freaking as long as they are readable rather than having the best code and no one can see what is up with it...
-
Root797707yBest as in what?
Also I don't know how to answer this without sounding like I'm bragging ☹ so totally not.
Most optimized?
Super performant line drawing in assembly -- a more performant version of the line drawing algo used in actual top-tier graphics cards at the time. 😊 yay!
Most readable?
I've written some amazingly clear code with comments that reads like a short story. I think this is my favorite kind of "best"
Most useful?
Idk.
Best output?
My Commercial Invoice PDF generator has some really sexy output. Code is kind of terrible though...
Most impressive (to me)?
I wrote intentionally-obfuscated code to screw over someone's game account because they were horrible and disgusting and I hated them. Made it incredibly large and complex (and useful-looking) so nobody else could figure out what it did. It was hard to hold it all in my head long enough to write. Worked perfectly on the first try!
Related Rants
What is the best piece of Code ever written by you?
question
developers
javascript
python
developer
ruby
software development
java