comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Crystal Clear backward compatibility - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cc774c03ed1f761 * Questions about Sun's SL-425 Course - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2f9383f0ea147fec * JavaScript:Download - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f0a22cb5dd10a223 * [OT] Using hobby source code in your job ? - 8 messages, 8 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4 * NetBeans 4.0 totally blows. What other IDE's are available? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd46bbd76ba757ee * Zip/UnZip char [] - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/becaa86f0228fd4f * Abstract method - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/64956de44c02f968 * "static" prefix - to parallel "this" prefix - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5dde10882ac2157 * Getting font file of font - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a6a8a28fe1cb7c9d * GAP and Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cf221d8987d4d5e5 * Why .NET is faster than Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/702b3ba85064a90c * OT: Welcome back Patricia - Was - Re: math.pow rounding problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3e00e118892196bb * JNDI InitialContext problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8f7e20a7ce68b0a7 * Sockets - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edecab678cd31cd6 ============================================================================== TOPIC: Crystal Clear backward compatibility http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cc774c03ed1f761 ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 2:24 pm From: "Rhino" "Rich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I created some reports using Crystal Clear 5.2. I didn't know it, but > the company hosting the reports hasn't yet upgraded to the newer > version. Is there something that I can do to allow the reports to be > viewed (and saved) in the older format? > Shouldn't you be asking this on a Crystal Clear newsgroup, if there is such a thing? It doesn't sound like a Java question.... Rhino ============================================================================== TOPIC: Questions about Sun's SL-425 Course http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2f9383f0ea147fec ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 7:45 pm From: "True Grit" Has anyone taken SL-425 Architecting and Designing J2EE Applications? I was examining the course content at http://suned.sun.com/US/catalog/courses/SL-425.html and I am not entirely sure what is meant by the following topics: Module 5: Optimizing Inside the Tier -Specify service providers to support maintenance goals Module 6: Optimizing Tier-to-Tier Communication -Create a network model for an application -Construct a data and call model to efficiently submit service requests and receive responses Module 7: Analyzing Quality-of-Service Requirements -Evaluate the effects of dimensions on systemic qualities Module 11: J2EE Technology Choices -Design for long-term application state Any advice would be appreciated. Thanks. ============================================================================== TOPIC: JavaScript:Download http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f0a22cb5dd10a223 ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 7:46 pm From: " JCO" Will do! Thanks (and sorry). "Rhino" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > " JCO" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Can somebody help me write a JavaScript that will allow a download dialog > to > > display then download the selected file (regardless of the file type). > That > > way, they won't open a word on the computer they will download it. They > > won't open a picture or an Excel spread sheet... it will all download. I > > don't want to use a zip program because of the many folks that can't seem > to > > grasp unzipping files (go figure). > > Thanks > > > Try asking on a Javascript newsgroup like comp.lang.javascript. Java and > JavaScript, despite similar names, have nothing to do with one another. > > Rhino > > > > ============================================================================== TOPIC: [OT] Using hobby source code in your job ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4 ============================================================================== == 1 of 8 == Date: Sun, Dec 5 2004 12:24 pm From: [EMAIL PROTECTED] (Old Wolf) [EMAIL PROTECTED] wrote: > E. Robert Tisdale <[EMAIL PROTECTED]> wrote: > > > http://careerlaunch.jpl.nasa.gov/ > > Wow, now I am deeply impressed: > > "The JPL Career Launch website is compatible with > > Microsoft Internet Explorer versions 5.5 & 6.0 > and Netscape Navigator version 4.7 & 7.0 > > In order to access the JPL Career Launch website using a Macintosh > you must use Internet Explorer under a PC emulator." > > And even for that they need an image... They can't create a working > website when they are supposed to do rocket science? Why are you surprised. ERT thinks that C is defined by what his compiler outputs. I wonder what JPL would have done if Microsoft hadn't invented the interweb. == 2 of 8 == Date: Sun, Dec 5 2004 8:49 pm From: "Ann" "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, 05 Dec 2004 01:02:20 GMT, Ann wrote: > > > "E. Robert Tisdale" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Andrew Koenig wrote: > >> > >>> Unless you're being paid by the hour, > >>> there is no such thing as "your own time". > >> > >> Spoken like a true company man. > >> Who owns you? > > > > Reminds me of the time the boss called us in for a chat > > about "no overtime pay" and he says: > > Those of you that are hourly, you are not allowed to work overtime. > > Those of you that are staff, you are paid to get a job done. > > Why were the staffers' even at the meeting? Why weren't they > already working (their little fingers to the bone)? > > If a member of the staff even required that to be explained, > it would be in person, one to one, and immediately followed by > "..that's why the company will not be renewing your contract. > Good luck with future positions.". > > [ I would have set follow-ups if there was a single group in that > slew of x-posts that was even slightly relevant. ] 95% of the group is staff. Sorry about x-post, I didn't notice, just hit reply. == 3 of 8 == Date: Sun, Dec 5 2004 2:06 pm From: "Nobody" "Jim P" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Nobody wrote: >> "Maarten Wiltink" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>>"Nobody" <[EMAIL PROTECTED]> wrote in message >>>news:[EMAIL PROTECTED] >>>[...] >>> >>>>>1. Do you use your hobby source code in your job ? >>>> >>>>Yes. If I need a specific control that I already have in my library, >>>>I have no intention of re-writing it. That would be f!#$ken stupid >>>>and a waste of my time. I could copy and past just the parts that I >>>>need, but my library is too interwoven for that. >>> >>>The biggest waste is that of company money. They are, after all, paying >>>for my time. If done work redone is what they want, they can have it >>>for all I care. >> >> >> You might not care about re-writing stuff, but I do. In my case GUI >> controls are often tedious to write. Tedious twice is boring. >> >> >>>>>This could create problems ?!? >>>> >>>>It can only cause you problems if you start to rock the boat... >>>><and more along this line> >>> >>>This is a pragmatist's viewpoint. An extreme pragmatist. Not everything >>>you will probably get away with is ethical. >> >> >> Well, I guess thats where we differ :). I have worked for enough lousy >> companies (and one decent one) where the sleazy world of "company ethics" >> has been revealed. Companies are INHERENTLY unethical. They are scum >> (p.s., I am 29 and have been programming professionally for 9yrs). Think >> about it. The average salaried Sr. Software Engineer will get about $90k >> to $120k per year in the US. How much will your manager make? probably >> quite a bit more in base + bonuses + stock options -- for doing quite a >> bit less (shooting the shit in meetings all day). At the average company, >> the average manager could make 2 to 3 times the money after its all said >> and done for doing almost nothing except project schedules. How about >> more Sr. managers? well, by the time you get higher up in the company, >> people are making 10 times or more what you make, again, for doing very >> little. >> >> Sorry, but why should I work my ass off to make them rich? you call it >> unethical, I call it realistic. If a manager is making $500k a year and I >> am making $90k to $120k, thats not fair. Yes thats how business works, >> and thats why I really don't give a shit. I don't go out of my way to >> help the company. >> >> And in case you are wondering... my company loves me, but do they show it >> with money or other compensation? hell no. If my manager is making $500k >> a year base, "fair" is me making over $300k to $400k, if not more. After >> all, the manager is making money off MY work. As is the company. >> >> The amount of stock options is equally out of wack. >> >> That was slightly off topic, but was to make my point. I could really not >> give a shit about ethics or the company. If I am not making any money off >> my work, I'm just a salaried employee, so I am not going to go out of my >> way to do extra or put in long hours, etc. >> >> And as I said before, I hide my opinion around most people, and my >> company loves me, but I could really not give a shit about helping them >> since I know I'm not being compensated fairly. >> >> Yes I am bitter :) >> >> >>>A company hiring a programmer is inherently buying access to >>>_knowledge_. As a programmer myself, I see little enough difference >>>between what's in my head and what's on my (home) harddisk. They can >>>have the use, but not the ownership, of both. >>> >>>I have been careful in my last four jobs to have in my contract that >>>anything done on my own time that is not directly related to however >>>the company makes its money, is none of their business. If I write a >>>game on my own time, it's mine. If I have a good idea how to solve a >>>work problem, of course it's theirs. If it makes them _really_ big >>>money, they would of course do well to acknowlege it and motivate me >>>to have more ideas like that. >>> >>>Groetjes, >>>Maarten Wiltink >>> >> >> >> Well, here in the US, companies are pretty much in charge. Often, if you >> rock the boat by asking for stuff in contracts they'll just get someone >> else wh > > So you sit at your desk programming and full of anger at the same time. > > Time to understand life - I have designed products that have given the > companies that I work for Patents, Sold Millions of dollars of product > because of my innovative ideas. But that is what I am hired for. > o rolls over. I am not "full of anger". If I was "full of anger" all the time, I would probably be dead from a heart attack or something. Not going out of my way and being full of anger are two different things. As I said, I understand this is how companies work. All they care about is making management rich. See Enron, see the recent articles about Electronic Arts, see just about every other company. > > > Remind me to not hire you. I wouldn't want to work for you if you expect my life to revolve around the company while getting nothing in return. As I said, I don't consider a few thousand in stock options compensation when managers make millions. > That kind of attitude is a killer and eats at the insides of a person. > > and will show in any conversations about rights and ideas. So you limits > yourself and value to the company. Even while getting a good wage. and > lots of people are interested in your job. > and that attitude like this will keep you from advancing and making the > money that you are assuming they are making. > > And guess what, You boss is not making that kind of money - in your anger > you are making guesses about his income and stock options and lots of > assumptions. > > You are only one part of the company and a small part of it. > > Jim P. As I said, I mostly keep my opinions to myself, close friends and I have talked about it, and lots of them feel the same way. I have even had managers tell me to my face "the company is here to take advantage of you" and that they do. Oh my bosses ARE making that kind of money. Otherwise explain to me how *3* managers just recently purchased multi-million dollar homes in exclusive beach front cities? Explain to me how they all drive Land Rovers, Porche 911s? Explain to me how one built a 60k home theater in his 5000 sq ft house? Explain to me how one is having a yacht built? You don't do that kind of stuff on a 90k to 120k salary. == 4 of 8 == Date: Sun, Dec 5 2004 10:13 pm From: "Siemel Naran" "Nobody" <[EMAIL PROTECTED]> wrote in message news:W4nsd.189331 > "Maarten Wiltink" <[EMAIL PROTECTED]> wrote in message > Sorry, but why should I work my ass off to make them rich? you call it > unethical, I call it realistic. If a manager is making $500k a year and I am > making $90k to $120k, thats not fair. Yes thats how business works, and > thats why I really don't give a shit. I don't go out of my way to help the > company. A comment on the numbers. You can download SalaryExpert. In San Francisco, SOFTWARE DESIGN MANAGER: Low Salary = $89,924, Average = $105,013, High = $147,764, Bonus = 11.24%, Benefits=12.6%. SOFTWARE DESIGN DIRECTOR: Low Salary = $106,177, Average = $159,545, High = $363,634, Bonus = 16.75%, Benefits = 12.4%. SOFTWARE ENGINEER: Low Salary = $67,669, Average = $85,440, High = $102,357, Bonus = 0%, Benefits = 12.5%. SOFTWARE DEVELOPER: Low Salary = $63,843, Average = $76,158, High = $99,303, Bonus = 10.63% , Benefits = 12.0%. The national averages are lower as San Francisco has such a high cost of living. == 5 of 8 == Date: Sun, Dec 5 2004 6:04 pm From: RCollins Andrew Koenig wrote: > "RCollins" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>I'm sorry, I don't understand this. How can a company (whether I work >>for them or not) lay claim to a product that I developed on my own time, >>using my own equipment and resources? (Excluding, of course, the normal >>"conflict of interest" clauses, which says I may not compete for >>business with my employer.) > > > Unless you're being paid by the hour, there is no such thing as "your own > time". > > > Hmmm ... my company (Raytheon) has a well-defined and documented policy on what constitutes "my time" and "their time". This is contained within the "conflict of interest" company practices, and referenced by the company's "ethics standards" that all employees are required to learn (we are also required to get 'refresher' training in these subjects each year). Some weeks, my job requires me to work considerably more than the standard 40 hours ... but no one there would even *think* about taking my "hobby programming" from me without (a more than generous) compensation. -- Ron Collins Raytheon Air Defense/RTSC/BCS == 6 of 8 == Date: Mon, Dec 6 2004 1:10 am From: "Andrew Koenig" "RCollins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hmmm ... my company (Raytheon) has a well-defined and documented policy > on what constitutes "my time" and "their time". This is contained > within the "conflict of interest" company practices, and referenced by > the company's "ethics standards" that all employees are required to > learn (we are also required to get 'refresher' training in these > subjects each year). > Some weeks, my job requires me to work considerably more than the > standard 40 hours ... but no one there would even *think* about taking > my "hobby programming" from me without (a more than generous) > compensation. If your employer changed their mind about this policy, there wouldn't be much you could do about it short of leaving. So it's not really your time--it's time that they are letting you have at their discretion. == 7 of 8 == Date: Sun, Dec 5 2004 8:14 pm From: "Stephen Sprunk" "RCollins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Stephen Sprunk wrote: >> Obviously a contract cannot compel you to violate the copyright of a >> former employer. >> >> However, if the code is yours (not a work for hire), you can certainly by >> compelled by contract to hand all of your copyrights over to someone. > > I'm sorry, I don't understand this. How can a company (whether I work > for them or not) lay claim to a product that I developed on my own time, > using my own equipment and resources? (Excluding, of course, the normal > "conflict of interest" clauses, which says I may not compete for > business with my employer.) Very simple: part of your employment contract requires you to assign to the company copyright and ownership of any original works produced, modified, or published by you during the term of your employment. Unless you specifically negotiate one, there is usually no exemption for things done on "personal time". They do provide a place where you can declare any works you produced or owned prior to entering their employ; anything on that list is exempt from the assignment, but anything not on the list becomes a "work for hire" on behalf of the company if you so much as think about it while you're employed there. One might consider that last unenforceable, but with enough money, lawyers can make any pig fly... A former employer of mine sued a coworker to "recover" the rights to a shareware program he authored, despite him not having worked on it for years before he started that job, it not having brought him a single cent in donations, and it being completely unrelated to the company's business. He lost a long (and expensive) case in court, and HR put him on a performance plan (i.e. no raises or promotions) due to his "excessive" absences from work during the trial. >> In fact, that seems to be a standard part of most employment contracts >> these days. > > I have dealt with quite a few software contract workers, both > self-employed and those employed by an agency, but I've never seen > anything like this. OTOH, my professional arena is rather specialized, > with not a lot of players. In what engineering discipline would the > contract clause you mentioned above be considered "standard"? (I may > want to avoid that area in the future!) It wasn't even an engineering or programming company in the first place! All we did was Windows helpdesk and NT administration outsourcing and run a little bit of cabling -- nothing even remotely resembling creating works for hire nor having any conceivable use for the software he had written. The contract was simply boilerplate that all employees were required to sign, from VPs down to shipping clerks, and someone discovered that he forgot to list this dinky piece of shareware as a prior work when was hired... I've worked for three different hw/sw vendors since then, and two of them had contracts of the form I described above. I'm told that they're pretty easy to negotiate changes to, particularly in the realm of open-source contributions, but since I have no personal works to protect I haven't considered it worth the hassle and expense. S -- Stephen Sprunk "God does not play dice." --Albert Einstein CCIE #3723 "God is an inveterate gambler, and He throws the K5SSS dice at every possible opportunity." --Stephen Hawking == 8 of 8 == Date: Sun, Dec 5 2004 6:55 pm From: Steve Sobol Stephen Sprunk wrote: > Very simple: part of your employment contract requires you to assign to > the company copyright and ownership of any original works produced, > modified, or published by you during the term of your employment. > Unless you specifically negotiate one, there is usually no exemption for > things done on "personal time". They do provide a place where you can > declare any works you produced or owned prior to entering their employ; > anything on that list is exempt from the assignment, but anything not on > the list becomes a "work for hire" on behalf of the company if you so > much as think about it while you're employed there. I have not yet had to agree to an employment clause like this (perhaps because I don't tend to work for large companies), and I will turn down a job before ever agreeing to something like this. Way, way, way too broad. The employer has every right to protect its interests -- but this kind of thing goes past protecting the company's interests. Of course, my situation is a little different from yours. My primary line of work is software and website development. I am pretty sure yours isn't. :) -- JustThe.net Internet & New Media Services, http://JustThe.net/ Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED] PGP Key available from your friendly local key server (0xE3AE35ED) Apple Valley, California Nothing scares me anymore. I have three kids. ============================================================================== TOPIC: NetBeans 4.0 totally blows. What other IDE's are available? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd46bbd76ba757ee ============================================================================== == 1 of 2 == Date: Sun, Dec 5 2004 8:30 pm From: [EMAIL PROTECTED] Ryan Stewart <[EMAIL PROTECTED]> wrote: >> I'll chime in here and say I've had good luck with jEdit >> ( http://www.jedit.org ). There are lots of plug-ins avaialble for >> jEdit which can turn it into a pretty comfortable Java development >> environment. > > Please share, then. How do you have it set up exactly? What plug-ins, > options, etc? A coworker and I have looked at it but couldn't seem to get > much of anywhere with it. Plugins -> Plugin Manager -> Install. The available plug-ins are listed with descriptions of each. I should mention jEdit lacks a debugger plug-in, which I guess I have to admit is a show stopper for making it a complete development environment solution. == 2 of 2 == Date: Sun, Dec 5 2004 4:01 pm From: "Ryan Stewart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ryan Stewart <[EMAIL PROTECTED]> wrote: >>> I'll chime in here and say I've had good luck with jEdit >>> ( http://www.jedit.org ). There are lots of plug-ins avaialble for >>> jEdit which can turn it into a pretty comfortable Java development >>> environment. >> >> Please share, then. How do you have it set up exactly? What plug-ins, >> options, etc? A coworker and I have looked at it but couldn't seem to get >> much of anywhere with it. > > Plugins -> Plugin Manager -> Install. The available plug-ins are > listed with descriptions of each. > I've seen that. There must be over a hundred though. Which ones do you suggest? > I should mention jEdit lacks a debugger plug-in, which I guess I have > to admit is a show stopper for making it a complete development > environment solution. > I rarely use a debugger anyhow. For one thing I primarily write webapps. For another, I find Java to be extremely verbose in its error messages, making it (almost always) simple to track down problems. The only times I've used a debugger for Java in the past year or so is just because it was cool watching the variable values change. ============================================================================== TOPIC: Zip/UnZip char [] http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/becaa86f0228fd4f ============================================================================== == 1 of 2 == Date: Sun, Dec 5 2004 9:25 pm From: "Ike" I'm looking to set up a separate table in a DB for just BLOBS, but, I also need to be able to update and access then from php as well. Not sure I can do this. -Ike == 2 of 2 == Date: Sun, Dec 5 2004 6:27 pm From: Sudsy Ike wrote: > I'm looking to set up a separate table in a DB for just BLOBS, but, I also > need to be able to update and access then from php as well. Not sure I can > do this. -Ike So can't you use CLOBs instead? -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. ============================================================================== TOPIC: Abstract method http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/64956de44c02f968 ============================================================================== == 1 of 3 == Date: Sun, Dec 5 2004 1:41 pm From: [EMAIL PROTECTED] (Ah Ming) Hi, I am a beginner of Java programmer. There is a question about the following program segment. Why class ABC must be defined as Abstract when aMethod has int b? interface DEF { public void aMethod(int a); } Abstract class ABC implements DEF { public void aMethod(int a, int b) { } } Thanks! == 2 of 3 == Date: Mon, Dec 6 2004 12:44 am From: Tjerk Wolterink Ah Ming wrote: > Hi, > > I am a beginner of Java programmer. There is a question about the > following program segment. Why class ABC must be defined as Abstract > when aMethod has int b? > > interface DEF { > public void aMethod(int a); > } > > Abstract class ABC implements DEF { > public void aMethod(int a, int b) { > } > } > > Thanks! aMethod in class ABC is a different method than aMethod from DEF, because of the differen arguments lengths. So ABC.aMethod(int, int) does not override aMethod(int) from DEF. But because ABC implements DEF it should implement the methods from interface DEF. IT does not do that and the only way to allow that is to make ABC abstract. When you extend ABC you should implement the DEF internface, so then you should define aMethod(int) == 3 of 3 == Date: Mon, Dec 6 2004 2:24 am From: "George W. Cherry" "Ah Ming" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am a beginner of Java programmer. There is a question about the > following program segment. Why class ABC must be defined as Abstract > when aMethod has int b? > > interface DEF { > public void aMethod(int a); > } > > Abstract class ABC implements DEF { > public void aMethod(int a, int b) { > } > } A class (e.g., ABC) which purports to implement an interface (e.g., DEF) must implement all the interface's methods--or it must declare itself abstract. DEF does not implement public void aMethod(int a); ABC implements a different method public void aMethod(int a, int b) George ============================================================================== TOPIC: "static" prefix - to parallel "this" prefix http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f5dde10882ac2157 ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 2:35 pm From: "Darryl L. Pierce" Tim Tyler wrote: > You get to see whether a variable is a local variable, a class > variable or an instance variable whenever you look at usage of it; You get that by using the classname as well. This "static" keyword brings nothing new to the table. > it prevents you from bending your variable names out of shape by > using a naming convention to do the same thing; You want to change the language to avoid a bad coding convention? > and it can be > checked automatically by compilers and lint tools. The same as using the classname. > Avoiding bending names out of shape is a significant concern if > those names appear in your public interface - e.g. this: > > class Point { > public int m_x; > public int m_y; > } > > ....would be painful. I never have these problems. Even when an argument is the same as a static variable, I have no problems like the above: public class FooRuntime { private static void FooMidlet instance = null; public static void setMidletInstance(MIDlet instance) { FooRuntime.instance = instance; } } Crystal clear exactly what I'm doing without needing a new keyword to achieve that goal. <snip> -- Darryl L. Pierce <[EMAIL PROTECTED]> Visit my webpage: <http://mcpierce.multiply.com> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard ============================================================================== TOPIC: Getting font file of font http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a6a8a28fe1cb7c9d ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 3:16 pm From: [EMAIL PROTECTED] (Oliver Henning) Hi, i have the following question: how can I determine (need not be a platform-indepent method, need for Windows first) the font file being used for a certain Font object? Background: The user of my program can choose a font from a list (generated by GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()). As a parameter for an external video player I need the corresponding font file, regardless whether it is a font coming the Java Environment or a system-provided one. Thanks in advance, Oliver ============================================================================== TOPIC: GAP and Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cf221d8987d4d5e5 ============================================================================== == 1 of 1 == Date: Mon, Dec 6 2004 12:45 am From: Tjerk Wolterink [EMAIL PROTECTED] wrote: > GAP - http://www.gap-system.org/ > > Since GAP is written in C and no Java API provided, how can I use my > Java program to "throw" data to GAP for some permutations calculation? > Or any other altnerative solutions available? > > Thanks a lot. > Use JNI: Java native interface. Search google for more information, i do not know much about jni ============================================================================== TOPIC: Why .NET is faster than Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/702b3ba85064a90c ============================================================================== == 1 of 1 == Date: Sun, Dec 5 2004 4:51 pm From: [EMAIL PROTECTED] (Cindi Jenkins) Yet another benchmark: http://blogs.ittoolbox.com/eai/leadership ============================================================================== TOPIC: OT: Welcome back Patricia - Was - Re: math.pow rounding problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3e00e118892196bb ============================================================================== == 1 of 1 == Date: Mon, Dec 6 2004 2:19 am From: Michiel Konstapel On Sun, 05 Dec 2004 09:44:39 +0530, Babu Kalakrishnan <[EMAIL PROTECTED]> wrote: > Patricia Shanahan wrote: >> > [snip] > > Welcome back Patricia. This group certainly missed your expertise during > the past couple of years. Hope to see you here more often. Hey, I didn't even notice it was Patricia until I read your post, Babu. Just tacking on my "nice to see you again, Patricia" :) Regards, Michiel ============================================================================== TOPIC: JNDI InitialContext problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8f7e20a7ce68b0a7 ============================================================================== == 1 of 1 == Date: Mon, Dec 6 2004 1:02 pm From: "Kyle" In an example source file (AddressBook), I found the following codes: InitialContext initialContext = new InitialContext (); Context envContext = (Context) initialContext.lookup ("java:comp/env"); DataSource dataSource = (DataSource) envContext.lookup ("jdbc/Public"); I know it is using JNDI. But since the InitialContext is instantiated with no parameter, the second statement seems strange to me. What does it mean by "java:comp/env"? is it a standard Name? And the same for jdbc/Public? BTW, Public is a name of a database. I did not find any document on "java:comp/env"? Thanks in advance Kyle ============================================================================== TOPIC: Sockets http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/edecab678cd31cd6 ============================================================================== == 1 of 1 == Date: Mon, Dec 6 2004 12:08 am From: "Teo" Hi, Could a program written in Java communicate easily using the sockets with another program written in VC++ ? Thanks. ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
