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.

What is the best way to auto-generate INSERT statements for a SQL Server table?

We are writing a new application, and while testing, we will need a bunch of dummy data. I've added that …

sql-server ssms code-generation
Convert Python program to C/C++ code?

is it possible to convert a Python program to C/C++? I need to implement a couple of algorithms, and …

c++ python c code-generation
Seeking useful Eclipse Java code templates

You can create various Java code templates in Eclipse via Window > Preferences > Java > Editor > Templates e.…

java eclipse templates ide code-generation
Function passed as template argument

I'm looking for the rules involving passing C++ templates functions as arguments. This is supported by C++ as shown by …

c++ templates code-generation functor
How do I generate a constructor from class fields using Visual Studio (and/or ReSharper)?

I've gotten accustomed to many of the Java IDEs (Eclipse, NetBeans, and IntelliJ IDEA) providing you with a command to …

c# visual-studio visual-studio-2010 resharper code-generation
How can I create database tables from XSD files?

I have a set of XSDs from which I generate data access classes, stored procedures and more. What I don't …

.net sql database xsd code-generation
What is the correct way to write HTML using Javascript?

It seems that experienced web developers frown upon using document.write() in JavaScript when writing dynamic HTML. Why is this? …

javascript html dynamic code-generation document.write
How to auto-generate a C# class file from a JSON string

Given the following JSON object, form = { "name": "", "address": { "street": "", "city": "", "province": "", "postalCode": "", "country": "" }, "phoneDay": "", "phoneCell": "", "businessName": "", "website": "", "email": "" } what is …

c# json code-generation
Generate JPA 2 Entities from existing Database

How can I generate JPA2 compliant @Entity from existing Databases?. I found this: Question Still its not clear if JBoss …

java code-generation persistence entity jpa-2.0
Why generate long serialVersionUID instead of a simple 1L?

When class implements Serializable in Eclipse, I have two options: add default serialVersionUID(1L) or generated serialVersionUID(3567653491060394677L). I think …

java serialization code-generation serialversionuid