Click here to Skip to main content
15,171,260 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send Whatsapp Messages from C# Windows Forms Application Pin
Zeyad Jalil18-Oct-21 3:50
professionalZeyad Jalil18-Oct-21 3:50 
GeneralRe: Send Whatsapp Messages from C# Windows Forms Application Pin
Dave Kreskowiak18-Oct-21 4:54
mveDave Kreskowiak18-Oct-21 4:54 
QuestionSql dependency Pin
Nader Rostamkhani17-Oct-21 3:13
MemberNader Rostamkhani17-Oct-21 3:13 
AnswerRe: Sql dependency Pin
OriginalGriff17-Oct-21 3:44
mveOriginalGriff17-Oct-21 3:44 
QuestionDesigning a shape object class in C# Pin
holdorf17-Oct-21 1:48
Memberholdorf17-Oct-21 1:48 
AnswerRe: Designing a shape object class in C# Pin
BillWoodruff17-Oct-21 10:02
mveBillWoodruff17-Oct-21 10:02 
GeneralRe: Designing a shape object class in C# Pin
Pete O'Hanlon17-Oct-21 22:47
mvaPete O'Hanlon17-Oct-21 22:47 
GeneralRe: Designing a shape object class in C# Pin
BillWoodruff18-Oct-21 1:59
mveBillWoodruff18-Oct-21 1:59 
Hi Pete, i'm delighted to have feedback like this ! I'll study it carefully, and respond in more detail later.

current version calculating equally spaced points points on an ellipse: [^]

Context: currently this is very much in initial development, and, "final polishing" may address your concerns about my use of short aliases instead of longer, more mnemonic, names. For unknown reasons, my memory, at age 78, handles such short aliases without cognitive effort (just don't ask me where i left my house keys) ... and, it saves typing time OMG | :OMG:
Quote:
The Shp properties all feel like they should be in a separate class. Again, it feels to me like these are metadata items, rather than being intrinsic parts of the base interface. I would probably move these out into a separate metadata class and drop the Shp parts of the name.
Excellent points ! As the design progresses, i may "break out" the IShape interface into component interfaces like IIdentity for ShpName, ShpComment, ShpTimeStamp (those i would call "metadata"). Right now, things like SwPoint, CenterF seem essential.

"Shp" as prefix: I often "go Hungarian" simply because when i view an object's contents at run-time when a breakpoint is hit, they appear grouped together in the alpha-ordered inspector dropdown, Same idea with public Properties i want exposed in a design-time PropertyGrid.

'Get methods instead of Property getters: somewhere along the line years ago (influenced by Richter ?), i decided to never do extensive calculations, or call external methods, in Properties (except for OnPropertyChanged). That "feels right," and, i believe that contributes to maintainability in the long run ... perhaps i should reevaluate that "habit/decision" ?
Quote:
The Union and Intersection methods also appear to be wrong, unless you are looking to determine whether this shape intersects with more than one shape - the first parameter of these methods is probably going to be the current instance so why pass it in?
As of now, i have not implemented any "current ..." state/object facility. That is something I really like ever since my little career led me into specializing in PostScript.

My intent is to take two shape instances as input, and return a new shape which is the intersection/union of the two inputs: that syntax doesn't reflect that ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

AnswerRe: Designing a shape object class in C# Pin
Gerry Schmitz17-Oct-21 12:47
mveGerry Schmitz17-Oct-21 12:47 
QuestionLooking for feedback and contributions to database project Pin
Michael Sydney Balloni16-Oct-21 18:27
mvaMichael Sydney Balloni16-Oct-21 18:27 
AnswerRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan16-Oct-21 22:14
mveRichard MacCutchan16-Oct-21 22:14 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff17-Oct-21 0:36
mveBillWoodruff17-Oct-21 0:36 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan17-Oct-21 2:25
mveRichard MacCutchan17-Oct-21 2:25 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff17-Oct-21 5:24
mveBillWoodruff17-Oct-21 5:24 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan17-Oct-21 22:52
mveRichard MacCutchan17-Oct-21 22:52 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 4:56
mveBillWoodruff18-Oct-21 4:56 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 5:35
mveRichard MacCutchan18-Oct-21 5:35 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 6:38
mveBillWoodruff18-Oct-21 6:38 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 6:48
mveRichard MacCutchan18-Oct-21 6:48 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 12:40
mveBillWoodruff18-Oct-21 12:40 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 22:39
mveRichard MacCutchan18-Oct-21 22:39 
AnswerRe: Looking for feedback and contributions to database project Pin
BillWoodruff17-Oct-21 0:25
mveBillWoodruff17-Oct-21 0:25 
GeneralRe: Looking for feedback and contributions to database project Pin
Michael Sydney Balloni24-Oct-21 15:14
mvaMichael Sydney Balloni24-Oct-21 15:14 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff24-Oct-21 23:59
mveBillWoodruff24-Oct-21 23:59 
GeneralRe: Looking for feedback and contributions to database project Pin
Michael Sydney Balloni24-Oct-21 15:57
mvaMichael Sydney Balloni24-Oct-21 15:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.