Click here to Skip to main content
15,867,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send Whatsapp Messages from C# Windows Forms Application Pin
Dave Kreskowiak18-Oct-21 3:54
mveDave Kreskowiak18-Oct-21 3:54 
AnswerRe: Send Whatsapp Messages from C# Windows Forms Application Pin
Bejide Basirat1-Apr-23 16:50
Bejide Basirat1-Apr-23 16:50 
QuestionSql dependency Pin
Nader Rostamkhani17-Oct-21 2:13
Nader Rostamkhani17-Oct-21 2:13 
AnswerRe: Sql dependency Pin
OriginalGriff17-Oct-21 2:44
mveOriginalGriff17-Oct-21 2:44 
QuestionDesigning a shape object class in C# Pin
Stephen Holdorf17-Oct-21 0:48
Stephen Holdorf17-Oct-21 0:48 
AnswerRe: Designing a shape object class in C# Pin
BillWoodruff17-Oct-21 9:02
professionalBillWoodruff17-Oct-21 9:02 
GeneralRe: Designing a shape object class in C# Pin
Pete O'Hanlon17-Oct-21 21:47
subeditorPete O'Hanlon17-Oct-21 21:47 
GeneralRe: Designing a shape object class in C# Pin
BillWoodruff18-Oct-21 0:59
professionalBillWoodruff18-Oct-21 0: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 11:47
mveGerry Schmitz17-Oct-21 11:47 
QuestionLooking for feedback and contributions to database project Pin
Michael Sydney Balloni16-Oct-21 17:27
professionalMichael Sydney Balloni16-Oct-21 17:27 
AnswerRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan16-Oct-21 21:14
mveRichard MacCutchan16-Oct-21 21:14 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff16-Oct-21 23:36
professionalBillWoodruff16-Oct-21 23:36 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan17-Oct-21 1:25
mveRichard MacCutchan17-Oct-21 1:25 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff17-Oct-21 4:24
professionalBillWoodruff17-Oct-21 4:24 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan17-Oct-21 21:52
mveRichard MacCutchan17-Oct-21 21:52 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 3:56
professionalBillWoodruff18-Oct-21 3:56 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 4:35
mveRichard MacCutchan18-Oct-21 4:35 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 5:38
professionalBillWoodruff18-Oct-21 5:38 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 5:48
mveRichard MacCutchan18-Oct-21 5:48 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff18-Oct-21 11:40
professionalBillWoodruff18-Oct-21 11:40 
GeneralRe: Looking for feedback and contributions to database project Pin
Richard MacCutchan18-Oct-21 21:39
mveRichard MacCutchan18-Oct-21 21:39 
AnswerRe: Looking for feedback and contributions to database project Pin
BillWoodruff16-Oct-21 23:25
professionalBillWoodruff16-Oct-21 23:25 
GeneralRe: Looking for feedback and contributions to database project Pin
Michael Sydney Balloni24-Oct-21 14:14
professionalMichael Sydney Balloni24-Oct-21 14:14 
GeneralRe: Looking for feedback and contributions to database project Pin
BillWoodruff24-Oct-21 22:59
professionalBillWoodruff24-Oct-21 22:59 
GeneralRe: Looking for feedback and contributions to database project Pin
Michael Sydney Balloni24-Oct-21 14:57
professionalMichael Sydney Balloni24-Oct-21 14: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.