IvanJobs's blog

By IvanJobs, history, 7 years ago, In English

Hi guys,

Recently I developed a CLI tool for C++ programmers on Codeforces, and also for my own use.

A CLI tool to speed up testing process during contests of Codeforces.

It helps you to manage test cases and do regression test.

Now it is only for C++ programmer using vim under unix-family env.

If you are interested about this CLI tool, please refer to this github repo link: https://github.com/IvanJobs/cf

Tags cli, cf, cpp
  • Vote: I like it
  • +5
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by IvanJobs (previous revision, new revision, compare).

»
7 years ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

Nice tool! I've made something similar, BTW.

But I don't think many people will use such tools because they got used to their own workflows. But your effort isn't useless because you could encourage some people to make such tool for themselves.

Some thoughts about the code:

  • It's not a good practice to store compiled binaries in VCS repositories.
  • Shell scripts for compilation were used when there was no Make. My (and I suppose that many others') optinion is that Makefile would be much better choice.
  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thx, Yep, I developed it mainly for myself as a C++ programmer, hope to inspire many others:) You advice is good. I will remove bin from the repo and think about remove hard coding of g++ compiling script and use CMake or Makefile instead. I also noticed that current comand style with just options is not elegant enough, I will change it to subcommand style too.

»
7 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I hope making it was a valuable learning experience for you. Here you are my suggestions so that you can learn even more from it.

  • If you write program that you want to share with others learn how to describe what it is and what it does in short precise way. Start the README with that description. "Command Line Tool For Codeforces." doesn't provide any useful information. A tool could be anything, even worse the actual tool doesn't do anything Codeforces specific.
  • For command line tools do not return 0 if action failed.
  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Good advice! I have tried to fix these problems.