7

What is the best piece of Code ever written by you?

Comments
  • 6
    Var you_are = “Awesome”
  • 3
  • 3
  • 2
    String 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
  • 2
    This should be a rant of the week thing.
  • 1
    @c3ypt1c def RotW material
  • 1
    A rather good idea
    const discord = require("discord.js");
  • 0
    @JonnyCodewalker woah! What the hell does this do?
  • 1
    @c3ypt1c For the weekly rant I prefer more in lins of: what is your stupidest line of code xD
  • 0
    In 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...
  • 3
    Best 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!
  • 1
    @sladuled I guess we could do 2 weeks?? xD
Add Comment