Click here to Skip to main content
15,910,009 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: Style and form in generated code Pin
Sander Rossel26-Nov-19 9:39
professionalSander Rossel26-Nov-19 9:39 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 9:40
mvahoney the codewitch26-Nov-19 9:40 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 9:42
mvahoney the codewitch26-Nov-19 9:42 
GeneralRe: Style and form in generated code Pin
Sander Rossel26-Nov-19 10:20
professionalSander Rossel26-Nov-19 10:20 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 10:21
mvahoney the codewitch26-Nov-19 10:21 
GeneralRe: Style and form in generated code Pin
Mycroft Holmes26-Nov-19 11:52
professionalMycroft Holmes26-Nov-19 11:52 
GeneralRe: Style and form in generated code Pin
Marc Clifton26-Nov-19 12:14
mvaMarc Clifton26-Nov-19 12:14 
GeneralRe: Style and form in generated code Pin
Stuart Dootson26-Nov-19 23:49
professionalStuart Dootson26-Nov-19 23:49 
I've had experiences with parser code generated by Antlr (version 2, not the current one) and controller code generated from Simulink diagrams. My main feels from those are:
  1. Comments documenting traceability from the source specification to the generated code are very useful when debugging (which I've had to do in both cases)
  2. Use variable names that reflect the names used in the source specification, for similar reasons as 1.
  3. Personally, I'd prefer not to see gotos, because I find they make code comprehension harder, but that's just my opinion.
And no, I never modify generated code - that's never a sustainable route to take.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 23:52
mvahoney the codewitch26-Nov-19 23:52 
GeneralRe: Style and form in generated code Pin
Stuart Dootson27-Nov-19 0:02
professionalStuart Dootson27-Nov-19 0:02 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 0:06
mvahoney the codewitch27-Nov-19 0:06 
GeneralRe: Style and form in generated code Pin
kalberts27-Nov-19 1:56
kalberts27-Nov-19 1:56 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 2:06
mvahoney the codewitch27-Nov-19 2:06 
GeneralRe: Style and form in generated code Pin
kalberts27-Nov-19 2:48
kalberts27-Nov-19 2:48 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 2:51
mvahoney the codewitch27-Nov-19 2:51 
GeneralRe: Style and form in generated code Pin
Gary Wheeler27-Nov-19 1:58
Gary Wheeler27-Nov-19 1:58 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 2:02
mvahoney the codewitch27-Nov-19 2:02 
GeneralRe: Style and form in generated code Pin
MSBassSinger27-Nov-19 4:47
professionalMSBassSinger27-Nov-19 4:47 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 4:51
mvahoney the codewitch27-Nov-19 4:51 
GeneralRe: Style and form in generated code Pin
Bruce Patin27-Nov-19 6:22
Bruce Patin27-Nov-19 6:22 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 6:24
mvahoney the codewitch27-Nov-19 6:24 
GeneralRe: Style and form in generated code Pin
Member 1181677627-Nov-19 22:05
Member 1181677627-Nov-19 22:05 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 22:08
mvahoney the codewitch27-Nov-19 22:08 
GeneralHow do you deal with impromptu design meetings with conflicting approaches? Pin
Marc Clifton26-Nov-19 3:28
mvaMarc Clifton26-Nov-19 3:28 
GeneralRe: How do you deal with impromptu design meetings with conflicting approaches? Pin
Chris Maunder26-Nov-19 3:45
cofounderChris Maunder26-Nov-19 3: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.