Click here to Skip to main content
15,907,329 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: There are many gotos, but these ones are mine Pin
den2k8812-May-24 23:08
professionalden2k8812-May-24 23:08 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen13-May-24 0:17
trønderen13-May-24 0:17 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 6:59
giulicard13-May-24 6:59 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 9:21
mvahoney the codewitch13-May-24 9:21 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 10:03
giulicard13-May-24 10:03 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 10:04
mvahoney the codewitch13-May-24 10:04 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 10:07
giulicard13-May-24 10:07 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 5:10
trønderen14-May-24 5:10 
honey the codewitch wrote:
I hate function pointer dispatch code in general.
Do you refuse to use delegates at all, or don't you consider those to be function pointers? (In other words: Are function pointers OK as long as they are called delegates?)

No, when you have generated your code, you do not "at some time have to debug and maintain" the generated code. You debug and maintain your source, not the compilation result. Not even if you can, sort of, read it. Executable binaries can also be disassembled into "readable" code - the readability is no argument for random peek and poke.

You send your code through a generator/compiler, and want to patch up the complied result ("The compiled ones can be augmented in a way that the table driven ones cannot"), or complain about the instructions generated by the compiler - I haven't heard anyone saying any such thing in earnest for a decade or two. Some people still believe that they can do smarter heap management than the standard heap manager, rejecting automated garbage collection and smart pointers, but for the most part, compilers became smarter than human coders in the last millennium.

You will see a lot of function pointer dispatch code in the generated code from a plain C++ compiler. Do you hate that as well? If you accept it from a C++ compiler, why do you have problems accepting it from other compilers?

(The first C++ compiler I used didn't produce binary code - it was a machine independent compiler producing K&R C to be fed into a machine specific compiler. So we had full access to the C code for patching it up before passing it on to cc. We did not. I would not do it with any generated code, whether the compiler is called C++ or Visual FA.)

Religious freedom is the freedom to say that two plus two make five.

GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 6:21
mvahoney the codewitch14-May-24 6:21 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 13:12
trønderen14-May-24 13:12 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 13:14
mvahoney the codewitch14-May-24 13:14 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 14:12
trønderen14-May-24 14:12 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 14:13
mvahoney the codewitch14-May-24 14:13 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 14:25
trønderen14-May-24 14:25 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 14:31
mvahoney the codewitch14-May-24 14:31 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 15:02
trønderen14-May-24 15:02 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 15:03
mvahoney the codewitch14-May-24 15:03 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 17:41
trønderen14-May-24 17:41 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 18:06
mvahoney the codewitch14-May-24 18:06 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 18:09
mvahoney the codewitch14-May-24 18:09 
GeneralRe: There are many gotos, but these ones are mine Pin
jochance13-May-24 10:02
jochance13-May-24 10:02 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 10:28
mvahoney the codewitch13-May-24 10:28 
GeneralRe: There are many gotos, but these ones are mine Pin
klinkenbecker13-May-24 2:23
klinkenbecker13-May-24 2:23 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 3:49
mvahoney the codewitch13-May-24 3:49 
GeneralRe: There are many gotos, but these ones are mine Pin
klinkenbecker13-May-24 4:33
klinkenbecker13-May-24 4:33 

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.