Click here to Skip to main content
15,896,912 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 19:43
Nand3230-Jul-19 19:43 
Generali don't like object oriented programming Pin
honey the codewitch30-Jul-19 5:23
mvahoney the codewitch30-Jul-19 5:23 
Generali don't like eggs or spiders PinPopular
OriginalGriff30-Jul-19 5:35
mveOriginalGriff30-Jul-19 5:35 
GeneralRe: i don't like eggs or spiders Pin
honey the codewitch30-Jul-19 6:01
mvahoney the codewitch30-Jul-19 6:01 
GeneralRe: i don't like object oriented programming Pin
#realJSOP30-Jul-19 6:05
professional#realJSOP30-Jul-19 6:05 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 6:06
mvahoney the codewitch30-Jul-19 6:06 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 6:28
professionalSlacker00730-Jul-19 6:28 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 6:32
mvahoney the codewitch30-Jul-19 6: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 7:18
professionalSlacker00730-Jul-19 7:18 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:21
mvahoney the codewitch30-Jul-19 7:21 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 7:22
professionalSlacker00730-Jul-19 7:22 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:24
mvahoney the codewitch30-Jul-19 7:24 
GeneralRe: i don't like object oriented programming Pin
  Forogar  30-Jul-19 7:51
professional  Forogar  30-Jul-19 7:51 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:54
mvahoney the codewitch30-Jul-19 7:54 
GeneralRe: i don't like object oriented programming Pin
Fueled By Decaff30-Jul-19 22:09
Fueled By Decaff30-Jul-19 22:09 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 1:24
mvahoney the codewitch31-Jul-19 1:24 
GeneralRe: i don't like object oriented programming Pin
obermd31-Jul-19 4:17
obermd31-Jul-19 4:17 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 4:18
mvahoney the codewitch31-Jul-19 4:18 
GeneralRe: i don't like object oriented programming Pin
Rick Shaub31-Jul-19 7:30
Rick Shaub31-Jul-19 7:30 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch31-Jul-19 7:36
mvahoney the codewitch31-Jul-19 7:36 
GeneralRe: i don't like object oriented programming Pin
Slacker00730-Jul-19 6:29
professionalSlacker00730-Jul-19 6:29 
GeneralRe: i don't like object oriented programming Pin
PIEBALDconsult30-Jul-19 7:40
mvePIEBALDconsult30-Jul-19 7:40 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 7:42
mvahoney the codewitch30-Jul-19 7:42 
GeneralRe: i don't like object oriented programming Pin
PIEBALDconsult30-Jul-19 8:47
mvePIEBALDconsult30-Jul-19 8:47 
GeneralRe: i don't like object oriented programming Pin
honey the codewitch30-Jul-19 9:02
mvahoney the codewitch30-Jul-19 9: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.