Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

RE: Something I wanted to share with the group.

by gumpu (Friar)
on Aug 18, 2000 at 13:35 UTC ( [id://28451]=note: print w/replies, xml ) Need Help??


in reply to Something I wanted to share with the group.

"Also, what do you guys think of software that generates code for the programmer?"

We use two kind of tools that generate code. One is Rational Rose, which can create C++ code out of class diagrams. You just have to fill in the body of the methods. It can also do the reverse, that is create class diagrams out of existing code.

This allows you to do round-trip engineering. It's quite nice idea as you can manipulate your code and view your system on a higher abstract level. However it's implementation is quite buggy it looks like.

The other form of code generation we use is to automatically install sanitychecks and dangling pointer checks in existing C++ code. This based on the class hierarchy and attributes of a class. This is all done in Perl (and was a lot of fun to implement!).

So code generation is quite useful, it allows you to manipulate programs on a higher level of abstraction. Code generation can be a bit of a pain for the people that have to maintain the code though. Because they want to make changes in the generated code they have to first understand how the code-generating code works.

Have fun, Frans.

  • Comment on RE: Something I wanted to share with the group.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://28451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found