Click here to Skip to main content
15,887,083 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Richard Deeming26-Sep-23 23:13
mveRichard Deeming26-Sep-23 23:13 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
haughtonomous3-Oct-23 21:33
haughtonomous3-Oct-23 21:33 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Steve Naidamast27-Sep-23 4:19
professionalSteve Naidamast27-Sep-23 4:19 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 8:51
mvaraddevus27-Sep-23 8:51 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
haughtonomous3-Oct-23 21:40
haughtonomous3-Oct-23 21:40 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
John Chadwell27-Sep-23 4:40
John Chadwell27-Sep-23 4:40 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 8:54
mvaraddevus27-Sep-23 8:54 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Choroid27-Sep-23 5:51
Choroid27-Sep-23 5:51 
Complete Novas HERE
When I look at Wrap All the Primitive Types In Structs
This looks logical to me ?
That said it took me a little time to learn to use {get;set;} example below
so my question is this code structure a good design or as stated just a fancy new way to write your code
If this is considered a programming question sorry just delete the post. I try to follow the rules honest
I did read all the replies

namespace CRUDLibrary
{
    public partial class frmCRUD : Form
    {
        public static string dbName = "Contacts.db";
        private string result;
        public string fn { get; set; }
        public string ln { get; set; }

GeneralRe: The changing landscape of OOP (from class to struct) Pin
Leonardo Pessoa27-Sep-23 8:19
Leonardo Pessoa27-Sep-23 8:19 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 9:02
mvaraddevus27-Sep-23 9:02 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Juan Pablo Reyes Altamirano27-Sep-23 8:31
Juan Pablo Reyes Altamirano27-Sep-23 8:31 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 9:08
mvaraddevus27-Sep-23 9:08 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 9:26
protectorNelek27-Sep-23 9:26 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
ChristianLavigne29-Sep-23 2:33
professionalChristianLavigne29-Sep-23 2:33 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus29-Sep-23 10:15
mvaraddevus29-Sep-23 10:15 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
PIEBALDconsult29-Sep-23 9:33
mvePIEBALDconsult29-Sep-23 9:33 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
honey the codewitch4-Oct-23 4:56
mvahoney the codewitch4-Oct-23 4:56 
RantThe Day I Learned to Deal With the BOM Pin
kmoorevs15-Sep-23 9:21
kmoorevs15-Sep-23 9:21 
GeneralRe: The Day I Learned to Hate the BOM Pin
trønderen15-Sep-23 9:53
trønderen15-Sep-23 9:53 
GeneralRe: The Day I Learned to Hate the BOM Pin
kmoorevs17-Sep-23 12:25
kmoorevs17-Sep-23 12:25 
GeneralRe: The Day I Learned to Hate the BOM Pin
PIEBALDconsult20-Sep-23 12:20
mvePIEBALDconsult20-Sep-23 12:20 
GeneralRe: The Day I Learned to Deal With the BOM Pin
Richard MacCutchan17-Sep-23 22:03
mveRichard MacCutchan17-Sep-23 22:03 
GeneralRe: The Day I Learned to Deal With the BOM Pin
PIEBALDconsult20-Sep-23 12:18
mvePIEBALDconsult20-Sep-23 12:18 
GeneralRe: The Day I Learned to Deal With the BOM Pin
honey the codewitch4-Oct-23 4:59
mvahoney the codewitch4-Oct-23 4:59 
Generaljsfiddle nightmare: Schrodinger's lost code Pin
raddevus4-Aug-23 4:45
mvaraddevus4-Aug-23 4:45 

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.