This is the last part of the story. This time we will search for a way to make our annotation work.
"I'm just sitting here watching the wheels go round and round, I really love to watch them roll..." John Lennon
Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts
Wednesday, October 21, 2009
Monday, October 19, 2009
Parsing command-line options - part 3
So we have defined two interfaces - 1) the interface we want to use to access command-line values, - a real-world example of usage, and 2) the annotation we want to apply to the interface #1 to furnish it with option-specific information.
It's time to start writing some code to bind them together.
Thursday, October 15, 2009
Parsing command-line options - part 2
To set off with the further activities I have to capture the list of requirements first. This list will let me grasp the overall scope of work and possibly start with a set of unit-tests.
Parsing command-line options - part 1
I favor metaprogramming. Annotations in Java and Attributes in C# fit this technique very well, making your code concise and simple.
A good excerise where metaprogramming may help is mixed GNU/POSIX-style option processing for command-line utilities. A descriptive explanation for this use-case is given here.
A good excerise where metaprogramming may help is mixed GNU/POSIX-style option processing for command-line utilities. A descriptive explanation for this use-case is given here.
Subscribe to:
Posts (Atom)