Coder Social home page Coder Social logo

Comments (10)

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024 2

@yashshah14093 @lucifer0987 - if you're working on this issue, make sure to update your branch to changes made in #41

from codemon.

lucifer0987 avatar lucifer0987 commented on May 31, 2024

Hey,
I came to know about this project from NJACK winter of code.
I want to work on this issue.
Can you please explain about these files? I understood the remaining things.

test_case.cpp (program to write testcase)
prog
test_case (generate testcases in this file)

Hoping for a reply soon!!

from codemon.

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024

@lucifer0987 - Watch this video by Errichto. Note the part where he writes a program to generate testcases. Therefore, test_case.cpp is the file where user is supposed to write that program.
When we compile C++, we get a.out which has been renamed as prog here. test_case is the file where the testcases generated by the program in test_case.cpp has to be saved.

Note: Start working only after Dec 1 in order to get points.

from codemon.

lucifer0987 avatar lucifer0987 commented on May 31, 2024

ok, got it.
Thanks for quick reply.

Just a suggestion.
Since, testcases that anyone is going to generate differs from task to task. Can't we generate these 3 files for each task separately?
That way, we can write the generated testcases directly into the "input" file of each task.

And, each task will have 5 files.
a.cpp - c++ code
a.in - input given to the code
a.op - output generated by the code
prog (a.out)
test_case.cpp - program for generating testcases

when we run "test_case.cpp", the generated test cases(outputs) are stored in "a.in" directly. From there, we can use the generated test_cases directly.

from codemon.

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024

@lucifer0987 - During a contest, we need not write testcases for each problem. If we create 3 files for each task, we will have a lot of redundant files which will simply eat our storage. Therefore, this solution would not be very helpful for some people.
However, if you can add a command codemon clean, which clears up all the mess(prog, input.txt, testcase files) after a contest, then this might work.

from codemon.

lucifer0987 avatar lucifer0987 commented on May 31, 2024

Yeah sure!!
That would be a good thing.
I will implement codemon clean.
Only the cpp files of the tasks will be remaining.

from codemon.

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024

Only the cpp files of the tasks will be remaining.

There is a catch to this. We can't randomly delete the mess. We can directly delete prog. But for input.txt, we must check whether it contains something, if its empty delete it else give an error message saying "Input file is not empty, do you want to delete ? (Y/N)` and user can decide what to do with it. For the testcase files, we have to "diff" them before deleting, i.e., if the testcase files had no changes in it then it can be deleted else if any kind of changes was done, they must stay.

from codemon.

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024

Can you create a separate issue for codemon clean and express these ideas properly there?

from codemon.

lucifer0987 avatar lucifer0987 commented on May 31, 2024

yeah sure!!
I will make a separate issue for codemon clean. And, meanwhile, work on this issue.

PS. :- can we connect with you anywhere apart from github?

from codemon.

ankushbhardwxj avatar ankushbhardwxj commented on May 31, 2024

can we connect with you anywhere apart from github?

I've created a gitter chatroom for this project. Check README.

from codemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.