I misstated my naming scheme. I felt that it would be less confusing iif the Java methods had the same names as the functions in the C header file. I won't be using anything like that in real Java programs. Incidentally, the compiler didn't like (void) as a parameter, so I changed it to just () John On Tue, Nov 16, 2010 at 04:35:24PM -0500, Sina Bahram wrote: > Not to be abrupt, but if you found java code that uses that naming scheme, > please stop reading that so called author immediately. > > But okie dokie, I just wanted to make sure you were up to speed > > > Take care, > Sina > > -----Original Message----- > From: brailleblaster-bounce@xxxxxxxxxxxxx > [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer > Sent: Tuesday, November 16, 2010 4:34 PM > To: brailleblaster@xxxxxxxxxxxxx > Subject: [brailleblaster] Re: Here are the liblouisutdml Java bindings. > > I've used the book Java in a Nutshell and read lots of Java programs. I > suppose you are referring to the constants. I thought it > best to use the same names as in the C libraries. The class and method names > are written according to what I have seen. > > John > > On Tue, Nov 16, 2010 at 04:07:14PM -0500, Sina Bahram wrote: > > thisIsWrittenInCamelCase > > > > This isn't > > > > Furthermore classes, interfaces, and especially type labels have > > initial caps > > > > Out of curiosity, have you had a chance to go over a java programming > > book? Lots of these questions, and many more, are answered in one. > > > > Take care, > > Sina > > > > -----Original Message----- > > From: brailleblaster-bounce@xxxxxxxxxxxxx > > [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. > > Boyer > > Sent: Tuesday, November 16, 2010 4:02 PM > > To: brailleblaster@xxxxxxxxxxxxx > > Subject: [brailleblaster] Re: Here are the liblouisutdml Java bindings. > > > > This is for calling liblouisutdml from Java. There is corresponnding C > > code which uses JNI. Mode bits can be combined with aon or | in calls. > > What is camel case, or iis this a typo? > > > > John > > > > On Tue, Nov 16, 2010 at 03:50:11PM -0500, Sina Bahram wrote: > > > May I please suggest using camel case? > > > > > > This is not only hard to read, frankly it's painful, *smile*. > > > > > > Also, why not have this be an interface, since that's exactly what it is? > > > > > > These constants need to be externalized. > > > > > > There's far too much in this one class. Wouldn't this benefit from being > > > broken up? > > > > > > I am guessing you are using the native keyword for purposes of JNI? > > > I can't think of another logical reason to ever use it, and I think > > > it might be overused in this particular class, but we can > > examine that later. > > > > > > You don't need void if you have an empty argument list ... I know > > > it's popular in c, but nobody does that in java. I forgot that java even > > > allows that in the first place. > > > > > > If your constants are bit flags, then why not actually make them > > > such via bit masks? Right now they are just taking up entire > > > integers for no good reason. You might simply want to use an enum > > > for this > > an index into a single integer after a bitwise and. > > > > > > Again, I'd recommend javadoc. > > > > > > Take care, > > > Sina > > > > > > -----Original Message----- > > > From: brailleblaster-bounce@xxxxxxxxxxxxx > > > [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. > > > Boyer > > > Sent: Tuesday, November 16, 2010 3:08 PM > > > To: brailleblaster@xxxxxxxxxxxxx > > > Subject: [brailleblaster] Here are the liblouisutdml Java bindings. > > > > > > They are attached for your delectation or horror, probably depending > > > on your experience with Java. I've made them as simple as possible, > > > so there is no exception handling. The library has its own > > > error-reporting code. Errors are placed in the log file given as an > > > argument to most of the methods. I figured that BrailleBlaster > > could analyze that log file and give the user much more useful information > > than exceptions. > > > > > > I've used double-asterisk comments for documentation, but I haven't > > > bothered with html markup. The html markkup I've seen in Java programs > > > doesn't impress me as very good anyway. > > > > > > Happy reading, > > > John > > > > > > -- > > > John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. > > > http://www.abilitiessoft.com > > > Madison, Wisconsin USA > > > Developing software for people with disabilities > > > > > > > > > > -- > > John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. > > http://www.abilitiessoft.com > > Madison, Wisconsin USA > > Developing software for people with disabilities > > > > > > -- > John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. > http://www.abilitiessoft.com > Madison, Wisconsin USA > Developing software for people with disabilities > > > -- My websites: GodTouches Digital Ministry, Inc. http://www.godtouches.org Abilitiessoft, Inc. http://www.abilitiessoft.com Location: Madison, WI, USA