Comments (3)
All fair points. Right now, part of solution code for TopCoder is generated by hardcoded logic inside caide.
- As an immediate solution, I can modify that logic to always add a constructor with
// caide keep
. Will that work for you? - More generally, I have some preliminary implementation that allows more flexible configuration of generated code (based on Mustache templates). So the hardcoded logic will move to user-defined template.
- Doing this automagically, without relying on
// caide keep
comments, is also possible and has been on my TODO forever. But workarounds are easy enough, so I never bothered...
from caide.
- constructor with keep will certainly work for now
- alternative - just keep solve() for now. Or introduce a new tag - "keepdeps". It would not protect the function from removal but will protect all its dependencies. Then this keepdeps can be attached to solve()
from caide.
2. Somehow magically figure out that in topcoder that constructor will be called. While we are at it maybe the same can be done with the main method.
This will be included in the next release.
from caide.
Related Issues (20)
- Caide for docker HOT 1
- Console is waiting for input. HOT 2
- Unable to parse the problem from Codechef. HOT 4
- Cannot parse double-char named problems. HOT 1
- Cannot parse double-char HOT 2
- Support "regex" input type HOT 1
- Display running time per test in the report HOT 3
- Code analysis errors HOT 7
- Link error when the Visual Studio solution has just been created HOT 8
- How to include prewritten code library? HOT 7
- I also had a question, Is there any way to make the questions parse into a certain directory. HOT 1
- Visual Studio not responding when loading the caide solution HOT 2
- Including Prewritten Headers HOT 8
- Hanging Of Visual Studio HOT 9
- Use gcc in command line caide in windows HOT 1
- httpServer doesn't exit on Return key in Windows HOT 4
- LeetCode support HOT 14
- How to modify the automatically generated code template HOT 3
- VsCaide-What is the difference between run tests and debug tests? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caide.