The code-generation tag has no wiki summary.
3
votes
1answer
113 views
Rosyln versus T4 for code generation [closed]
So I have a lot of knowledge invested in T4. I've wrote a few code generators of varying complexity and generally love it with the caveat of code-generating-code being difficult to unit test(but I ...
6
votes
4answers
412 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
93 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
152 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 ...
1
vote
2answers
118 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
346 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 ...
1
vote
1answer
181 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
93 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 ...
1
vote
2answers
397 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
378 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
705 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 ...
70
votes
22answers
28k 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
442 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
210 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 ...
6
votes
6answers
1k 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 ...
2
votes
4answers
463 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
590 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
2k 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
493 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
459 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
615 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
381 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?
11
votes
4answers
433 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 ...