Off Topic > Off Topic

Programming Megathread

Pages: << < (88/241) > >>

devildogelite:


--- Quote from: Foxscotch on February 08, 2016, 10:36:38 AM ---if google has a style guide for a language, that's usually the one I use
one exception is python, where I follow PEP 8 insteadshouldn't you use Event.preventDefault() for that? it's a lot more intuitive...

--- End quote ---

I looked at Google's c++ style guide and was disappointed at their ugly bracket style


--- Code: (Google) ---namespace X {
inline namespace Y {
  void foo();
}
}
--- End code ---

is so much worse than


--- Code: (Not Google) ---namespace X
{
inline namespace Y
{
void foo();
}
}

--- End code ---


Foxscotch:

I personally can't stand the second way
to each his own ¯\_(ツ)_/¯

Ravencroft·:

I just use cs instead of brackets.

$trinick:


--- Quote from: Foxscotch on February 08, 2016, 09:33:09 PM ---I personally can't stand the second way
to each his own ¯\_(ツ)_/¯

--- End quote ---

Agree. He kind of picked a bad example, IMO inline braces are significantly prettier.

Ipquarx:

i can't stand either

--- Code: ---namepsace X
{
    inline namespace Y
    {
        void foo();
    }
}
--- End code ---
for the win

Pages: << < (88/241) > >>

Go to full version