Блог пользователя IvanJobs

Автор IvanJobs, история, 7 лет назад, По-английски

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

Теги cli, cf, cpp
  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
7 лет назад, # |
Rev. 2   Проголосовать: нравится +4 Проголосовать: не нравится

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 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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.