3 ms·
How is laziness programmatically defined or used as a benchmark
by th0ma5 3y ago
How is laziness programmatically defined or used as a benchmark
- makestuff 3y agoPersonally I have seen it saying stuff like: public someComplexLogic() { // Complex logic goes here } or another example when the code is long (ex: asking it to create a vue component) is that it will just add a comment saying the rest of the code goes here. So you could test for it by asking it to create long/complex code and then running the output against unit tests that you created.
- rvnx 3y agoYeah this is a typical issue: - Can you do XXX (something complex) ? - Yes of course, to do XXX, you need to implement XXX, and then you are good, here is how you can do: int main(int argc, char **argv) { /* add your implementation here */ }