Click here to Skip to main content
14,361,357 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Damnit! Pin
Nand3230-Jul-19 20:43
memberNand3230-Jul-19 20:43 
Generali don't like object oriented programming Pin
honey the codewitch30-Jul-19 6:23
memberhoney the codewitch30-Jul-19 6:23 
Generali don't like eggs or spiders Pin
OriginalGriff30-Jul-19 6:35
protectorOriginalGriff30-Jul-19 6:35 
GeneralRe: i don't like eggs or spiders Pin
honey the codewitch30-Jul-19 7:01
memberhoney the codewitch30-Jul-19 7:01 
GeneralRe: i don't like object oriented programming Pin
#realJSOP30-Jul-19 7:05
mve#realJSOP30-Jul-19 7:05 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:06
memberhoney the codewitch30-Jul-19 7:06 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 7:28
professionalSlacker00730-Jul-19 7:28 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:32
memberhoney the codewitch30-Jul-19 7:32 
one example I'm running into right now is template specialization.

I have a finite state machine engine and it works for any transition input type and any accept symbol type.

However, there are additional features that can happen - significant ones that can only exist when the transition type is char - this specialization is effectively a regular expression engine, which means it can parse from a regular expression, and provide regex matching over string inputs. The other kind of FAs it wouldn't even make sense for that.

So because of this I have two separate classes - one generic FA<tinput> class, and one called CharFA where the TInput=char basically.

It means more code to maintain because a lot of it is duplicated. To unduplicate a lot of which i could, I'd have to add another codefile with an interface, and another with static methods to share common functionality, which again, increases the code size.

So it's not even that I can't do it with C#, it's that what is elegantly handled in C++ is clunky in C# to do the same thing, and requires more code.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 8:18
professionalSlacker00730-Jul-19 8:18 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 8:21
memberhoney the codewitch30-Jul-19 8:21 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 8:22
professionalSlacker00730-Jul-19 8:22 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 8:24
memberhoney the codewitch30-Jul-19 8:24 
GeneralRe: i don't like object oriented programming Pin
  Forogar  30-Jul-19 8:51
professional  Forogar  30-Jul-19 8:51 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 8:54
memberhoney the codewitch30-Jul-19 8:54 
GeneralRe: i don't like object oriented programming Pin
Fueled By Caffeine30-Jul-19 23:09
memberFueled By Caffeine30-Jul-19 23:09 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 2:24
memberhoney the codewitch31-Jul-19 2:24 
GeneralRe: i don't like object oriented programming Pin
obermd31-Jul-19 5:17
memberobermd31-Jul-19 5:17 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 5:18
memberhoney the codewitch31-Jul-19 5:18 
GeneralRe: i don't like object oriented programming Pin
Rick Shaub31-Jul-19 8:30
memberRick Shaub31-Jul-19 8:30 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 8:36
memberhoney the codewitch31-Jul-19 8:36 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 7:29
professionalSlacker00730-Jul-19 7:29 
GeneralRe: i don't like object oriented programming Pin
PIEBALDconsult30-Jul-19 8:40
protectorPIEBALDconsult30-Jul-19 8:40 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 8:42
memberhoney the codewitch30-Jul-19 8:42 
GeneralRe: i don't like object oriented programming Pin
PIEBALDconsult30-Jul-19 9:47
protectorPIEBALDconsult30-Jul-19 9:47 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 10:02
memberhoney the codewitch30-Jul-19 10:02 

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.