The code-generation tag has no wiki summary.
3
votes
3answers
114 views
What would the general design for an XSD to C# class converter look like?
I am looking to create a simple code generator to convert XSD definitions to C# classes. This is partly as a learning exercise, but I would also like to get some practical use out of it eventually.
...
11
votes
3answers
921 views
Writing a Compiler Compiler - Insight on Use and Features
This is part of a series of questions which focuses on the sister project to the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework. The ...
1
vote
4answers
235 views
Unit Test code generation
We have a project that was written over a period of 2 years, but has a poorly designed architecture and not unit tests.
The software works well, but we're at the point where we want to refactor some ...
25
votes
5answers
1k views
Do I check generated code in to source control or not? [duplicate]
I'm developing a .Net application that uses google protocol buffers. Historically the application used the approach, advocated by the protobuf-net team, of decorating the classes with attributes ...
5
votes
4answers
481 views
Why do code generators always use fully-qualified identifiers?
When you look at the code for the Winforms Designer, you see things like this:
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", ... etc.
instead of
using System.Drawing;
...
4
votes
2answers
305 views
Formatting SQL Based on an AST
I am working on my .NET open source project for generating SQL...
Initially, I wrote the project so it spit out exactly one SQL format... ugly. I started using this project in the real world and ...
1
vote
0answers
223 views
Boost Phoenix or Haskell GHC generating C [closed]
I am working on an iOS app that does some number crunching in a variety of areas that would greatly benefit from a functional programming approach, though much of the rest of the application is ...
2
votes
2answers
151 views
Software licensing and code generation
I'm developing a tool that generates code from some various data. The tool itself will be licensed with the MIT license, which strikes a good balance for me in terms of allowing the freedom to use and ...
1
vote
3answers
593 views
Best practices / Design patterns for code generation [closed]
I'm working on a ground up code generator project, but I feel I might be reinventing the wheel.
Does anyone know where I can find some best practices guidelines or design patterns for code ...
3
votes
1answer
502 views
Caching strategies for entities and collections
We currently have an application framework in which we automatically cache both entities and collections of entities at the business layer (using .NET cache). So the method GetWidget(int id) checks ...
1
vote
1answer
113 views
Right approach to convert a word document that contains forms in a web app
I would know if someone can suggest a good approach to convert a word document that contains forms in a web app, specifically in an application built with WaveMaker.(but I'm curious also with a ...
3
votes
2answers
585 views
How to create a code generation tool for Visual Studio
I'm working on a tool that will generate some C# code, which I hope could prove useable to a wider audience. This tool will read an assembly and a text file containing some data and then generate a ...
4
votes
5answers
388 views
Is it a good idea to generate code with the help of your IDE? [duplicate]
Possible Duplicate:
Should newbies use IDE autocomplete (Intellisense)?
Since I moved on to actual IDEs for C++, Java and Python, I noticed they automatically try to complete my code. For ...
0
votes
7answers
805 views
Code Generation and IDE vs writing per Hand
I have been programming for about a year now.
Pretty soon I realized that I need a great Tool for writing code and learned Vim. I was happy with C and Ruby and never liked the idea of an IDE. Which ...
71
votes
22answers
30k views
Automatic programming: write code that writes code [closed]
After reading the book The Pragmatic Programmer, one of the arguments I found most interesting was "write code that writes code".
I tried searching over the net for some more explanations or articles ...
10
votes
2answers
471 views
How easy should a language development framework be to use?
This is part of a series of questions which focuses on a project called the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework.
Another ...
2
votes
2answers
230 views
Are there any good tools to help implement or enforce the proper equals and hashcode patterns for c#?
A very common bug on my development team is forgetting to, or incorrectly overriding equals and hashcode.
While the pattern is simple, there's a lot of boilerplate code that goes into doing this ...
7
votes
6answers
2k views
Automatic source code generation — good idea or potential nightmare?
In response to my question regarding Java source code generation, I received this answer warning me about potential maintenance problems:
mixing auto-generated code always pose a risk of ...
3
votes
4answers
536 views
What are the arguments for/against Code Generation?
I'm in a position where we've got some brittle code that constructs SQL-like queries via text concatenation with parameters for inputs. The data source that it queries is fast and scalable but lacking ...
5
votes
7answers
652 views
Design Code Outside of an IDE?
Does anyone design code outside of an IDE? I think that code design is great and all but the only place I find myself actually design code (besides in my head) is in the IDE itself. I generally ...
7
votes
3answers
3k views
Can MS Visio Class Diagrams be used to generate classes?
I'm fairly new to Visio, and was wondering if there's a way I could auto-generate the code from Visio diagrams.
I was looking to generate either C# classes, SQL statements for building the database ...
5
votes
8answers
513 views
Are today's general purpose languages at the right level of abstraction?
Today Uncle Bob Martin, a genuine hero, showed this video
In this video Bob Martin claims that our programming languages are at the right level for our problems at this time. One of the reasons I get ...
1
vote
11answers
492 views
IDE Generated Code
Many IDEs have the ability to spit out automatically written pieces of code. For example, it might generate a getter/setter pair for you. I wonder whether it isn't an attempt to work around some flaws ...
6
votes
6answers
733 views
What's the best language combo for code generation?
I read through Code Generation in Action but never bothered to make anything of it because Ruby just doesn't fit with my lifestyle at this juncture. The book came out more on the cusp of the C# ...
5
votes
4answers
450 views
Why are parser generators used?
I saw some projects require BISON to generate C++ code. What is the advantage of having BISON/Yacc etc. generate C/C++ code instead of writing it yourself?
12
votes
4answers
539 views
Automatic code generators
One of my colleagues likes to use automatic code generators, which create large amounts of code that is poorly documented and very hard to maintain.
Is the cost of using a code generator worth the ...