Java Program
-
I'm looking at making a fairly simple program for a small task. pointers in the right direction at what bits of code would be needed would be apperciated.
Basically, what the program has to do is load a file (it's just a text file but it has a different extension than .txt) it will have lots of code and I need to to find matching lines based on a template (with wild chars) and return those in a good format.
So the two patterns are (where XX = Whildcard)
/ch/XX/config "NAME" Parameters
EX of a real line would be: /ch/01/config "KickDrum" 3 RD 1
The second pattern is: /aux/XX/config/ "NAME" Parameters
and a real example is: /auxin/01/config "PC Left" 62 GN 33So what I want it to do is have a main window that the user can select to either no channel numbers or to prepend the channel number in a few different formats ex: 1. or 1.) or 1) or 1 or CH1 etc.
Then the programs needs to open the text file selected loop through and find all the matching lines of code.
Sort them based on the channel number (/ch/xx/ where xx is the channel number) in ascending order, and then remove all else from the line expect the name that is in between the parentheses in the line. then prepend the channel option the user selected with a space in between the prepend channel label and the channel name and print/ouput that to a text file for the user to save.
How feasible is it to make something like this? I don't think it should be too hard but I'm not exactly sure what I'm looking for to do it.
-
Doesn't sound too hard but the first question is... why Java? Java would be one of the last choices. Java should "never" be used for a client application (something an end user runs.) Java is really exclusively meant for server applications (headless) or, sadly, Android.
-
@scottalanmiller Easily cross platform. Want it to be for Mac and Windows anyway.
-
@thecreativeone91 said:
@scottalanmiller Easily cross platform. Want it to be for Mac and Windows anyway.
That's not a good reason to use Java. Java literally should never be used for client side projects. Nearly every language is just as cross platform. Only the specifically non-neutral languages like C# and Objective-C are not.
Python, Ruby, Perl, OCaml, PHP, JavaScript are all better choices and cross platform too.
-
If you know Java already and know no other language, I could see Java being a semi-acceptable choice. But Java truly is not a client side programming language. It's so bad for making things that don't run on a server. It requires so much maintenance and management.