Skip to main content

Questions tagged [code-generation]

1 vote
3 answers
238 views

Code generation for multi-platform, multi-language library

I need to design a code generator system that produces serialisation/deserialisation libraries for multiple languages running on multiple platforms. Hard Constraints I need this to capture a pre-...
avigt's user avatar
  • 33
1 vote
3 answers
341 views

Autogenerate DTO classes?

Yesterday I screwed up: One of the classes of my C# contained a property, called "DeliverdQuantity" (yep, there's a spelling mistake indeed). When I saw that, I decided to correct that, ...
Dominique's user avatar
  • 1,846
0 votes
1 answer
86 views

Identify downsides: versioning auto-generated Terraform source code [closed]

HINT: the purpose of this question is to identify downsides for the scenario described. If something is a downside, then it should be quantifiable and it should clearly have a negative impact. ...
pgpb.padilla's user avatar
0 votes
2 answers
458 views

How to keep OpenAPI specification up-to-date and compliant without using code generators?

In our company, there is no standard for how to document APIs. Missing API documentation slows down the development process. Therefore, we want to introduce OpenAPI. We want to use code generators to ...
Harold L. Brown's user avatar
-3 votes
2 answers
389 views

How to use Github Copilot for business software evolution (if possible at all)?

Github Copilot got update yesterday (2023 St. Valentine) https://github.blog/2023-02-14-github-copilot-now-has-a-better-ai-model-and-new-capabilities/ but still no information for its use in the ...
TomR's user avatar
  • 1,009
1 vote
2 answers
496 views

C# Source Generator : which way to go for a simple GitHub Community Project

CONTEXT My project is about implementing the "conventional method for house-energy-efficiency assessment" in France (120 pages). I want to provide a strict yet easy to use API to this method....
Lionel du Peloux's user avatar
7 votes
2 answers
2k views

How to generate java class files with framework boilerplate in a project?

The Java project I am working on currently has a complicated folder structure, and to add a new functionality, one needs to add many .java files in different places in order to let it work in our ...
teamol's user avatar
  • 1
0 votes
1 answer
187 views

Using sed/awk to bulk generate static HTML pages off of a template

Hypothetically, consider a social photo platform - each pic gets its own url, this page contains the image, text about the image, buttons for the user to click, related pics, and some user-specific ...
ahron's user avatar
  • 165
0 votes
2 answers
247 views

How do I distribute a C++ compiler with my application?

I'm developing a commercial closed-source application that will have a user-interface, and the back-end will be generating C++ code that needs to be compiled to produce a final end result. When I ...
Mode77's user avatar
  • 121
1 vote
1 answer
399 views

Common methods of generating code with code

I wish to develop an application that can generate code based on an user input. Long story short: a user gives a formal description of a Resource (can be viewed as a REST resource) and based on this ...
jbolt's user avatar
  • 131
0 votes
0 answers
830 views

Why does Protobuf generate outer classes for Java?

I googled this and found questions like "How to use Protobuf message as java class without a java outer class?" (https://stackoverflow.com/questions/60312156/how-to-use-protobuf-message-as-...
Matt Welke's user avatar
1 vote
3 answers
304 views

Should Source Generators be used for managing optional dependencies

Let me try to clarify my question with an example. Assume a library of some sort which has a built in logging system and it is published as Library.Core. As the maintainer you want to add a wrapper ...
Twenty's user avatar
  • 121
-6 votes
1 answer
194 views

Why is automatically generating automated tests frowned upon?

First, the most obvious grouse someone has against this I can think of is the intricacies of an actual method. It's not enough to merely ensure no errors are thrown. Functions usually contain ...
I Want Answers's user avatar
23 votes
8 answers
5k views

Detect manual changes to an autogenerated C header [closed]

I have a C header that is generated from a CSV file and a Python script. The C header mainly contains a list of #define constants. I want to be able to detect manual changes to this header during ...
9a3eedi's user avatar
  • 2,099
8 votes
3 answers
2k views

code generation - would C be a good compiler backend?

In this and this stack overflow questions, the answers state that C as a compiler backend is a bad idea. But why? C has many compilers that can heavily optimize it. Every platform has a compiler ...
Kied Llaentenn's user avatar

15 30 50 per page
1
2 3 4 5