Is this an acceptable practice?
-
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
-
I would say it depends. But sure I would not go with this practice as it leads little confusion. Thanks,
How is it confusing? I would rather not write the datamember attribute for each member
-
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
I'm not commenting on whether the code is acceptable, but I am suggesting that posting this question in the Lounge might not be. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
As a general rule, explicit intent is better coding practice than implied intent.
-
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
Please ask in the proper forum.
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am. JimmyRopes -
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
-
<System.Runtime.Serialization.DataMember>
Private mLastUpdated As DateTime, _
mLastUpdatedBy As String, _
mClearanceRequired As Int64, _
mClearanceIsRequired As BooleanVisual basic code; class members for serialization - declaring a group of variables as data members.
-
I have yet to find a compiler that has to support and maintain the code it compiles.
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
I'm not commenting on whether the code is acceptable, but I am suggesting that posting this question in the Lounge might not be. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
For lazing about and discussing anything in a software developer's life that takes your fancy. The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads. What do you think is a valid thing to post about in the code project?
-
Please ask in the proper forum.
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am. JimmyRopesFor lazing about and discussing anything in a software developer's life that takes your fancy. The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads. This tickles my fancy.
-
Its valid code. Coding practices is the topic.
-
Indeed.
-
I have yet to find a compiler that has to support and maintain the code it compiles.
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakVisual Studio 2013 for windows 8.1 apps
-
For lazing about and discussing anything in a software developer's life that takes your fancy. The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads. This tickles my fancy.
Colborne_Greg wrote:
This tickles my fancy.
You conveniently left out:
Quote:
Technical discussions are welcome, but if you need specific help please use the programming forums.
The difficult we do right away... ...the impossible takes slightly longer.
-
Colborne_Greg wrote:
This tickles my fancy.
You conveniently left out:
Quote:
Technical discussions are welcome, but if you need specific help please use the programming forums.
The difficult we do right away... ...the impossible takes slightly longer.
I DO NOT NEED HELP Quit behaving like you know what the fook is going on. THE QUESTION IS - is this an acceptable practice, please learn to read English before getting on my case.
-
Visual Studio 2013 for windows 8.1 apps
And what does that have to do with what I said??
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
I DO NOT NEED HELP Quit behaving like you know what the fook is going on. THE QUESTION IS - is this an acceptable practice, please learn to read English before getting on my case.
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.
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
And what does that have to do with what I said??
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakThat's the compiler and libraries used for the code.
-
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.
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakIt 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 -
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.
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak