And I think your reasoning would be wrong. It IS more clear to write if (X==true). Just because you don't like it does not mean it is not more clear, especially to junior programmers. I am the senior lead and I instruct ALL of our programmers under me to write if (X==true). It doesn't cost the compiler anything and it makes it understandable by even the junior most person quickly. It is all about proper maintenance and thinking about the coder behind you instead of just yourself. X is a variable so comparing it like another variable is both consistent and readable.
Member 3687319
Posts
-
Do you not understand booleans? -
Hug a developer!First off you didn't just express a preference. You stated why you thought the C# language was better than VB, which is a far, far cry from simply saying you have a preference. Also, if you are choosing to ignore me, then why did you respond to my post? Confused again? YOU started this by expressing your inane point, AND putting down VB. The best part is that instead of countering my arguments you just said I was wrong without giving a single reason why. That's certainly a way to win a debate. I state facts and you just yell back that I am wrong and that you're not going to talk to me anymore. You have proven my point better than any facts ever could. You have no legitimate reason, you are just an elitist and you like to feel superior. When you’re challenged you back down and slink off to the corner. It IS people like you that are keeping programming from advancing.
-
Hug a developer!See, that's the problem with the C# people. You act like the VB people just don't get it and you wonder why. First, you are arrogant for no reason. Secondly, Visual Basic is more "bloated" as you put it because it is much closer to the English language. That is something as programmers we are supposed to be working for. The eventual goal is to be able to just tell the computer what to do in plain english, whether it is written or spoken. It is people like you that are so stuck in the past that you can't see the future. The whole reason that the C syntax was designed so much more "elegantly" as you put it, is because when it was created decades ago they didn't have the large amounts of storage space that we have now. Well, now we do. It is the C#, Java, and C++ adherents who are keeping programming back. The C, C#, C++, and Java syntax is so STUPID, as to be unbelievable. Computer programs are supposed to make our lives easier, yet they insist on programming with a syntax that was originally created in the early 70's!