|
Your question will only get opinions for an answer. The answer all depends on who you ask.
I hate it because it isn't explicit. It requires you to know how the compiler is going to behave.
|
|
|
|
|
It is only one line of code, broken into multiple lines via the _ character.
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, mLastUpdatedBy As String, mClearanceRequired As Int64, mClearanceIsRequired As Boolean
|
|
|
|
|
So what?
It seems like you're doing this and your looking for absolution from the community. Again, it's a matter of opinion and in a real environment with coding standards, what you've done may be outlawed.
|
|
|
|
|
White space.
It's more important to people.
Also as a programmer if you do not understand how a compiler is going to handle your code, you might consider another profession.
|
|
|
|
|
Yes, it's a matter of knowing how the compiler is going to handle the code, but it's more about maintainability. The format of the code is not to please the compiler. It's there to convey, without a doubt, what you intended. It's better to be explicitly expressive than it is to assume functionality with a lack of expression. Think about what the next guy who has to maintain your code is going to think when he sees it.
Again, you're not looking for opinions. You're shooting down everything everyone says about what you wrote in an attempt to justify it.
|
|
|
|
|
You are not reading every comment.
Maintainability is a good reply.
|
|
|
|
|
Message Closed
modified 18-Aug-15 18:12pm.
|
|
|
|
|
|
More satisfying to post in an "improper" forum. Stuffed Shirt proper?
The fredster
|
|
|
|
|
System.Runtime.Serialization sucks.
|
|
|
|
|
|
Whehe; the compiler accepts it - what trouble are you having with it, and what makes it unacceptable to you?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have yet to find a compiler that has to support and maintain the code it compiles.
|
|
|
|
|
Visual Studio 2013 for windows 8.1 apps
|
|
|
|
|
And what does that have to do with what I said??
|
|
|
|
|
That's the compiler and libraries used for the code.
|
|
|
|
|
Considering I wasn't commenting on that at all, your post makes no sense.
I was merely commenting that the compiler is never responsible for supporting the application, YOU are.
|
|
|
|
|
I see yes the context of how someone takes a sentence is important.
The code is flawless, again the question was about coding practices.
|
|
|
|
|
When I commented on this branch of the thread, it wasn't addressed to you.
|
|
|
|
|
Its valid code.
Coding practices is the topic.
|
|
|
|
|
Colborne_Greg wrote: Coding practices is the topic Coding practices are a form of communication to the next developer to assist them in their understanding of the code. There are no absolutes -- a syntax acceptable to one group might not be acceptable to another group. In general though, use of an oddball syntax in one place in the code is a poor practice.
So, the only realistic answer to your question is "it depends". It depends on whether that's the common syntax used throughout the rest of the code, or an oddball one.
Colborne_Greg wrote: Its valid code I have three words by way of countering this line of thought: Obfuscated C Contest.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
I keep a common structure, thank you for a straight answer.
|
|
|
|
|
I don't see any problem with it, as a matter of fact it actually reminds me of C++ member declaration.
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
|
"It is a vessel of fertilizer, and none may abide its strength."
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|