It's a simple task, let me briefly describe it!
I'm supposed to code a command-line tool that takes a file-name as an argument, the file that I'm gonna read consists of lines, each line supposed to be a command to execute, the command is followed by it's appropriate arguments to apply on, to make it clear:
FILE
sum; 1, 2, 3, 4
Output
10
The command-line tool should satisfy those requirements:
1- Easily maintained, developed (more commands might be added in the future) and user-friendly.
2- Command line arguments might be modified and new could be added.
3- Can live as an open-source project, an organised source-tree.
I'm expecting developers to deal with the source-code and fairly understand it.
I'm a newbie in those stuff, I'm kinda new to design patterns so I don't know much, I wanna follow the best practices in developing this program, I really wanna use design patterns if applicable and make my code better and cleaner, so please advise and guide me to write this tool in the best possible way, I don't wanna write dirty code, I wanna write a high-quality code that does what it's intended to and could be easily developed further.
Please advise and feel free to criticize what I've just said.
One last thing, I'll be using C++!
Thanks!