Whoever posted this is trying too hard to seem funny and intelligent and it's not working.Ok, I agree that it's coding, but why does it give such an uneasy feeing to it? Like it's more than just a coding question?
Because there are some who adamantly insist on separating the {} while others who insist on the opposite.Ok, I agree that it's coding, but why does it give such an uneasy feeing to it? Like it's more than just a coding question?
Yup. I want my code readable, dangit! By me, in five years, when I've completely forgotten why I put that little chunk of x86 assembly in there (oh yeah, it's because it's a lot faster than staying in pure C, although modern compilers are better) or why I did something a particular way.I have been coding in C++ for over 20 years and I was taught the right side. However, its too hard to read and I have been using the left side. When you program and have a large app of 50,000 lines, its easier to read for me. However, that 50,000 line code is a lot bigger than if you program like the right side of the picture, you choose. This example does nothing in any language.
PreferenceOn my current team (.NET shop), we use the right side. It's the only time in my career I've seen this usage in C#. It's rather annoying.
Ultimately it doesn't matter.