Top "Code-generation" questions

Topics related to the generation of code as the output of an application, instead of directly writing code by a programmer.

XML Schema to C++ Classes

I have to write a C++ Application (using the Qt Framework for the GUI) that can edit data stored in …

c++ xml qt xsd code-generation
Dynamically generate classes at runtime in php?

Here's what I want to do: $clsName = substr(md5(rand()),0,10); //generate a random name $cls = new $clsName(); //create a new …

php code-generation proxy-classes dynamic-compilation
Is there away to generate Variables' names dynamically in Java?

Let's say that I need to generate variables to hold some input from the user (I don't know how many …

java dynamic code-generation names
How do I determine if a column is in the primary key of its table? (SQL Server)

I am currently using... select Table_Name, Column_name, data_type, is_Nullable from information_Schema.Columns ...to determine information …

sql-server code-generation primary-key data-access-layer
Can I define properties in partial classes, then mark them with attributes in another partial class?

Is there a way I can have a generated code file like so: public partial class A { public string a {…

c# attributes code-generation partial-classes
Minify / Obfuscate PHP Code

I use Haxe to generate PHP code. (This means you write you code in the Haxe language and get a …

php code-generation obfuscation minify haxe
Java reflection: How do I override or generate methods at runtime?

It is possible in plain Java to override a method of a class programmatically at runtime (or even create a …

java reflection code-generation runtime
Can I automatically generate controller classes from FXML?

As I understand it, when using FXML to describe a Java FX scene, the controller class is written manually and …

javafx code-generation fxml
How to generate basic TypeScript interfaces from Swagger schema?

I'm looking for a way to generate simplistic TypeScript interfaces from a Swagger schema. Most solutions I find are needlessly …

typescript swagger code-generation
Generate Delete Statement From Foreign Key Relationships in SQL 2008?

Is it possible via script/tool to generate a delete statement based on the tables fk relations. i.e. I …

sql code-generation foreign-keys dynamic-sql