71
LuxARTS
7y

There is two types of people:
pretty(){
}
ugly()
{
}

Comments
  • 22
    There are two types od people:
    pretty()
    {
    }
    ugly(){
    }
  • 16
    It's non-binary
    pretty() {
    }
    pretty()
    {
    }
    ugly(){
    }
  • 12
    What about
    ugly(){/*all code in this line*/}
  • 4
    @electrineer don't forget
    prettyUgly()
    {

    . }
  • 3
    pretty ( arg ) {
    return arg;
    }

    I also tend to do shit like

    if (
    statement
    || (
    statement
    && statement
    )
    ) {
    ....
    }
  • 3
    TheGood() {

    }

    TheBad()
    {

    . }

    &&

    TheUgly()
    {

    }
  • 3
    Depends on what my IDE forces me to use.
  • 8
    @Choem I force my IDE to be useful.
  • 0
    What about the prettyugly guys
  • 2
    Leave these mundane matters to your IDEs
  • 1
    why not

    oneLinedMasterRace () {}
  • 4
    Honestly it depends if I'm writing JS or C#
  • 3
    pretties() {
    }
  • 1
    So don't look at any C# project.... They're all filled with ugliness 🤣

    On a side note: Is this going to be our new tabs vs spaces war??
  • 3
    Parentheses: attached
    Args: spaced
    Curlies: attached
    Indent: 2/3/4 spaces
    Ternaries: enclosed
    Related code: grouped
    Guards: up!
  • 2
    🍉 nom nom

    // Don't mind me. Just learning.
  • 3
    Why the braces are one line down???
    What's wrong with you!?!?!?
  • 7
    I always do

    Function (){
    ...
    }

    It looks nice and everyone else hates it.
  • 3
    ugliest() { //}
    }
  • 2
    def good_one(self):
    print("good one")
  • 1
    Me = () => pretty() + ugly();
  • 1
    Just
    void Compromise() //{
    {
    //I am the ultimate genius :v
    }

    Or
    void Compromise() {
    //{
    //Undecided :v
    }
  • 1
    Don't understood that
    @bashleigh
  • 1
    @LicensedCrime this made me chuckle 😂
  • 0
    @hch11 I'm not telling X'D
  • 0
    Well my goal is more the readability, so I prefer the "ugly" one. It's more readable and you have a fast idea of where start you bracket without highlight nor thinking.

    public void myFunction()
    {
    println("Hello");
    }

    And also, I think it's better because spaces equality 😋

    And no, I'm not someone who likes having 150 visibles lines in my screen. I prefer have only 30-40 lines but be able to focus on current part of code easily and separate everything in my mind.
Add Comment