JBoss Founder Interview 223
peterdaly writes "The JBoss website has an interview with Marc Fleury, the JBoss founder regarding his vision. In case you have been living under a rock, JBoss is an Open Source Java Application Server (J2EE) which has been picking up tons of steam recently, especially with the recent introduction of features like clustering. Competing products from companies like IBM (WebSphere) and BEA (WebLogic) go for tens of thousands of dollars, which is interesting since JBoss is starting to have features the big boys don't. JBoss had 72,000 downloads in October. This is a project to watch."
What exactly is a Java application server? (Score:2, Funny)
Re:What exactly is a Java application server? (Score:2, Informative)
An app server is not a physical computer, merely a server package akin to a web server or ftp server. The clustering capabilities refer to the capability to share the load across several machines and having been programmed with parallel computing in mind.
--Dave
Re:What exactly is a Java application server? (Score:5, Informative)
The Websphere application family is built up on several layers (described by IBM as the e-business application framework). The Foundation layer contains those tools that provide the fundamental low-level functionality of the system, and this basically comprises WAS and MQ Series.
On top of this you've got the Foundation Extension layer: tools for optimising the performance of the Foundation tools, and for development and deployment. Here you've got tools like VisualAge for Java, the personalization suite for Websphere, and Edge Server (used to be called the performance pack, IIRC, but clearly that didn't sound cool enough...)
Finally, over the top of this you have the Application Accelerator layer, consisting of tools for building particular types of application. That's where Commerce Suite lives, along with tools like the Websphere B2B Integrator.
JBoss itself corresponds to just part of the Websphere Application Server - it's really just an EJB server rather than a full J2EE server. However, combined with Tomcat (and you can download the two as a nicely integrated bundle from the JBoss site) you end up with something comparable in many ways with Websphere Application Server (advanced edition). In some ways it's better, in others it's worse. It's certainly more up-to-date - Websphere is (as with most IBM Java systems) a couple of versions behind the bleeding edge. That gives it the benefit of stability and reliability, but it gives JBoss the advantage in enhanced functionality (such as support for CMP2.0).
Re:What exactly is a Java application server? (Score:3, Informative)
Re:What exactly is a Java application server? (Score:2)
Re:What exactly is a Java application server? (Score:5, Informative)
Re:What exactly is a Java application server? (Score:2, Informative)
Just a small correction: even though WAS provides its own version of apache, it also provides a plug-in to be used with the original apache
Most of the servlet engines out there (like Tomcat, JRun and WebSphere) offer the option to integrate with an external web server, mainly because they don't perform as well as the "regular" web servers on static pages.
Re:What exactly is a Java application server? (Score:2)
Ohh my Hemos.. (Score:2, Funny)
..Yeah It is also a real boost for the Open Source movemnet. This project has been brewing and is sure to mug the competition.
heheh
Re:Ohh my Hemos.. (Score:2)
Tomcat (Score:3, Interesting)
Re:Tomcat (Score:3, Informative)
Re:Tomcat (Score:2, Insightful)
Re:Tomcat (Score:2, Informative)
Re:Tomcat (Score:1)
Re:Tomcat (Score:2, Informative)
Tomcat is not a J2EE application server, it's basically a jsp/servlet engine.
An appserver has many more features, like JNDI, transaction, connection pooling, EJB, etc...
Subset of JBoss capabilities... (Score:2)
Re:Tomcat (Score:1)
Re:Tomcat (Score:2)
To Watch? (Score:4, Interesting)
Re:To Watch? (Score:4, Informative)
That said, if you just want the basic J2EE functionality, you could do a lot worse than JBoss, for a lot more money.
Re:To Watch? (Score:4, Interesting)
Re:To Watch? (Score:2)
Re:To Watch? (Score:2)
That's what my company has. While normally I would have fought for JBoss/Tomcat for our Ebusiness the Websphere application setup just adds too many useful things to integrate into our legacy systems. One thing is the ability to roll IMS transactions into a bundle with DB2 and Oracle transactions as a single supertransaction. To understand how powerful this is, if IMS transaction two requires transaction one to commit before running and Oracle transaction A requires IMS one/two to commit running you can still run all three and then rollback ALL of them when the last one fails (if you're wondering why they weren't written that way, remember these were written for step by step 3270 usage, not one webform). That alone makes paying for Websphere worthwhile for IBM big iron shops.
Those who use a server network and RDMS for the majority of their processing, though, are better off with JBoss (usually).
Cool stuff (Score:1)
"Things like Dynamic proxies with compilation-less deployment have made us the darling of serious development shops"
Already showing it does stuff Websphere can not. How SWEET!!
The Apache of Java servers? (Score:3, Interesting)
An apache integration is important for us, however, since apache is our frontline proxy. Anyone know if JBoss has an apache module yet?
Re:The Apache of Java servers? (Score:2, Informative)
Re:The Apache of Java servers? (Score:3, Informative)
Don't know if that answers your question or not.
-Pete
Re:The Apache of Java servers? (Score:2, Informative)
Jetty is full-fledged http server, and Tomcat has an Apache module.
You can download JBoss/[Tomcat|Jetty] bundles, and lo and behold, they run "out of the box" on both Linux and Windows.
JBoss is extremely convenient for development since it doesn't require any special compilers, converters or whatever BEA call their ejbc-tools; just jar it up, drop it in the 'jboss/deploy' directory and watch the log file.
With the new versions of Ant supporting ear and war in addition to ordinary jars, the build.xml (ie. the Makefile) for for a JBoss project is dead easy to write.
Several IDEs are now supporting JBoss as well, providing support for those "corporate developers" stuck in "tool hell"
(I use Emacs and Ant and would only swap those for a very fat paycheck
Performance? (Score:3, Interesting)
Re:Performance? (Score:4, Informative)
Honestly, most of the J2EE apps I've seen, Servlet performance is a MINISCULE problem compared to much, much larger application architecture issues. You can always add more servlet engines on separate boxes, of course, then the RMI invocations are going to be slow. You did pay attention to using _coarse_ grained components, didn't you? Anyway, this is just my opinion.
In any case, you can't blame the JBoss team for this - you can pretty much embed any servlet engine you want into JBoss - Tomcat and Jetty are pre-done for you, and if some enterprising hackers want to find a better solution and embed that, it isn't that hard to do.
Re:Performance? (Score:3, Informative)
More importantly for this point-of-view is these (like many other programming techniques) allowed the group to implement solutions with widely varying performance: from slow but explicit code to hand-tooled solutions that utilize aspects of the problem domain. While it is a common conception that systems with as rich a feature set as JBoss are performance hogs, it should be noted that most enterprise scale systems don't have very attractive small-scale performance (some Oracle DBs can have a +1GB footprint before any user data or DBs are added which ain't exactly embedded.) JBoss is both small and fast enough to run from student/school-lab quality development systems (real budget machines IHMO) but has sufficient performance to match wits with a full-blown ecommerce application. I helped implement a complete on-line store (liquor store, that is) that held under our test loads (page view/transactions per sec) without relying on clustering.
The onjava.com article does bring up a valid point: like many complex software packages (tcsh [tcsh.org], ant [apache.org], Java [sun.com]) does have a complex environment to setup and maintain. A large part of this however (much like with tcshrc [sourceforge.net] config files) it is a matter of how much you want to custom tailor YOUR system. Much like makefiles and easy builds, a little bit o' work goes a long way (I've seen a factor of ten improvement with some cases.) I think though you will find the best improvement in performance not from hoping between J2EE systems but from good ol' fashion Data Structures and Algorithm Analysis appropriate to you application.
Happy coding.
Jakarta Plug & My AppServer Experiences (Score:5, Insightful)
Jakarta contains whole bunches of open source tools that work great for Java Projects (I'm using struts and ant on my current project).
They all work extremely well (and simple to install) with JBoss.
I don't know the level of people using JBoss, though. The top two app servers are WebSphere and Weblogic. They take 50% of the market. The next is iPlanet (netscape), then I think its JBoss. So, even though its the cheapest (free), doesn't mean its got the market.
It'll be tough to crack WebSphere & WebLogic.
What JBoss needs is a certification (with levels) for developers to obtain.
If I go to a client and say "I have a level 3 WebLogic certification, a level 2 WebSphere certification, and know JBoss", what are they gonna pick?
Re:Jakarta Plug & My AppServer Experiences (Score:2)
Independent research by Gartner Dataquest shows that BEA holds 41% of the new direct license revenue in the application server software market in 2000, a figure that is 10 share points higher than its closest competitor.
The Gartner market analysis revealed the following market share results: BEA - 41% IBM - 31% iPlanet - 13% Oracle - 4% HP Bluestone - 4%
JBoss does not show up here because the server code itself does not generate any revenues.Re:Jakarta Plug & My AppServer Experiences (Score:2, Informative)
Why would a client pick you to deliver an application because of your sysadm skills for application server Random vX.Y? If you make your application correctly (possibly with a few work arounds), your application should deploy equally well on all three.
Weblogic and Websphere have one thing that JBoss will never get directly - a corporation that backs the product and promptly deals with support. And that is what you pay for.
Re:Jakarta Plug & My AppServer Experiences (Score:2)
um, i've had the "pleasure" to deal with IBM WebSphere support in Europe. The guy on the phone said: you'll get the answer within 4 working days, we have to contact the guys in the US for this particular problem. i solved it 2 hours later by myself ... and it wasn't a problem with the support contract, I called with our customers support number and he has about 60 AS/400 boxen and various AIX machines sprinkled in between.
Re:Jakarta Plug & My AppServer Experiences (Score:5, Interesting)
"What JBoss needs is a certification (with levels) for developers to obtain. If I go to a client and say "I have a level 3 WebLogic certification, a level 2 WebSphere certification, and know JBoss", what are they gonna pick?"
Hmm... makes one think, eh? As a developer, I've seen a lot of "certification wars" in the corporate contracting world. Here's my take.
The problem with "level-ified" certifications kinda resembles the "megahertz myth [to quote Apple]" issue. If you're assuming the client is a techno-yokel, you run into this problem with such cert programs.
Imagine, for example, two imaginary Linux certification programs. The first program (call it "EZLinux") sets out their certification map as follows:
Companies will always try to use these tactics to make their products/programs/certs seem better than the others out there. Now, here's the real kicker: if Joe Hiring Manager actually understands why a certain cert is better than the others, he also (in all probability) understands why the product the cert is for is better. Hence, the better product wins. The key is education.
Just my take, that's all
Web hosting by geeks, for geeks. Starting at $4 USD per month. [trilucid.com]
If you're gonna email, use the public key!
Project Info Page (Score:1, Redundant)
Re:Project Info Page (Score:1)
What about running in production? (Score:5, Insightful)
(a) It's open source
(b) It has a whole heap of fantastic development features.
What I didn't see an emphasis on is running on a daily basis in production. Sure, I think that JBoss is fantastic for development, and most of the leading edge features are great for developers, but what about running a mission critical production system? What benefits does it provide in that arena, given that if I have Weblogic or WebSphere, and it breaks on my 24x7 website, I can scream at the respective vendors?
Develop with JBoss, deploy with WebSphere/Weblogic. Anyone enlighten me to benefits of JBOSS in production over a commercial offering?
Gollo.
Re:What about running in production? (Score:1, Informative)
Another reason is that Tomcat & JBoss aren't resource hogs, when you need to be debugging and coding with it running).
Re:What about running in production? (Score:5, Informative)
One of the great fallacies of application hosting is that if there is somebody to scream at, you are somehow less responsible to your clients for the production screw-up than you would be if there was nobody but open-source developers to be frustrated with. [Yelling at open-source developers seldom helps your cause, no matter what it is.] Let's face it, your clients aren't going to care if you are blaming a commercial entity for the screw-up; it makes you look bad.
What you should be concerned with are:
1) Reliability - JBoss is more reliable than all other AppServers in use right now, and introduces cost savings because it is easier to use, and less buggy!
2) Support (NOT "blame") - I have used purchased appservers (well, admittedly "appserver"), and JBoss, and let me tell you; the JBoss group helped me quickly and easily with any problems I have had, wherewas the commercial product I was using was IMPOSSIBLE to get support for, even though my employers had paid big $$$ for it. [The same actually goes for all open source projects I have used.]
Daryl.
Re:What about running in production? (Score:2, Informative)
Re:What about running in production? (Score:2)
IBM is a hardware and consulting company with occasional delusions of being a sw company, so sometimes they will have incentives to push open source and sometimes they will not (e.g. notice that they don't support any open source database projects, hmmm, db2?). Sun OTOH is much more of a pure-play hw company (which is why their stock is pretty hammered right now IMHO), so they have a greater incentive to push open source software.
I've screamed at IBM (and BEA) (Score:2, Interesting)
We used Websphere 2.x and 3.0, IIRC, and they were CRAP, i know DB2 is a decent database, but we were not able to configure it to run any faster than mySQL, thanks to lousy support from IBM.
In the end, we dropped Websphere for Weblogic, no great support from BEA either, but at least the appserver ran 24x7 w/o great problems...
Evangelist? Say it ain't so! (Score:3, Funny)
After reading his responses, you can really tell he had a job as an evangelist. For you Quake/id fans out there, it's like Paul Steed started coding in Java!
hmmmm (Score:2, Funny)
I guess I must live under a rock. I thought JBoss was some "urban" clothing conglomerate, formed when J. Crew and Hugo Boss merged to oust Tommy in the Phat Ghetto Style Stankfinga razmadaza hootchie combo platta market.
Y'knowumsay'n? Yomesain?
Open Source J2EE Stack (Score:5, Informative)
OS: Linux
Web Server: Apache
Servlet engine: Tomcat
EJB Container: JBoss
DB: PostgresQL
And a great set of middle level libraries such as Struts for form processing, a slew of other jakarta classes, tinySQL fro xBase integration, JUnit, and HttpUnit.
I came from a company that did oracle/ATG integrations. I can honsetly say as a developer, I have everything I need that I used on thos platforms.Plust I like that fact that it is a little closer to the J2EE standard than ATG.
You missed a layer (Score:3, Insightful)
Are you running this on Kaffe? gcj? ORP? Kissme?
Didn't think so. (If you actually are, I'm dead impressed - please let me know how you managed it)
You're using Sun's J2SDK. Which isn't open source.
I'll be very happy when it really is possible to put together an open source J2EE stack. But that day isn't today, because the VM/classlib layer has no open source alternative that's up to running these enterprise-level apps.
Re:Open Source J2EE Stack (Score:2)
Good Stuff.
Want a performance tip? (Score:2)
Tomcat is nice, in theory, but its dog slow.
Java Application Server (Score:4, Informative)
Usually on a Java Application Server, programs are design as small server side components, which perform independently of each other. By typing the components together, useful applications are born. For instance in e-commerce, a JSP interface may recieve a credit card purchase. It will run your credit card through a credit card component on the JAS, ask a warehouse component to mark the order for picking, notify the shipping component a package will be coming and where to ship the order number to, notify marketing a sale has been made, and tell the purchasing module to order parts which will be needed to replace the unit in inventory.
All of these are seperate components which can be used in many different applications. By creating a system like this, business login never has to exist in more than one place, which reduces programming time, stabibility, and makes the system as a whole more flexible.
Hope that made sense.
-Pete
My JBoss experiences (Score:4, Interesting)
This kind of project is exactly what the free software world needs - usable, cutting-edge, and easily comparable with competing proprietary products.
This project has cemented my opinion on Java on Linux as a server platform, and when combined with PostgreSQL, it forms a complete and surprisingly robust setup.
I wish the JBoss team the best of luck and fully intend to keep using and recommending their software.
Not whoring but... (Score:5, Informative)
Now that J2EE has been briefly explained, and I've stated my position (useful services, with some warts and all, designed to the lowest common denominator, and unfortunately sometimes too easy to build systems that really perform like slugs) I will give JBoss some props for really driving forward the implementations of the standard in several ways. Adoption of JMX is great, JMX is very useful for building custom manageable components that don't fit into the standard J2EE framework (i.e. they need to be stateful and not session coupled so they can't be implemented as reasonably performing, compliant EJBs). Also JBoss provided the first reasonably performing EJB implementation I have seen. Far faster than most of the commercial implementations when it came out for the common case scenarios (the commercial implementations may have improved since, I don't really know). My company moved to JBoss from Weblogic as we discovered we couldn't afford enough Weblogic licenses for every developer to have his own test box. And that the nature of our system makes it really hard to test otherwise (note: this is partially the fault of our system's architectural stupidities, but let's put that aside for the moment). We have generally had great luck with JBoss, and found the JBoss community to be very, very helpful with problems when they sprung up (compared to Weblogic 5.1 where I got some very frustrated engineers on my team stuck with the job of calling Weblogic support bitching at them about weird problems with spontaneous breaking of the EJB standard - anyone who used it knows that SP6, SP7 and SP8 were all released in short succession around the time I'm speaking of).
The moral of all this is that the JBoss team has done a fabulous job at providing a great, useful product that has saved my company thousands of dollars and many hundreds of man-hours of developer time. While the J2EE spec is, err, deficient in certain ways, for a lot of enterprise software projects it's good enough for the task at hand. And JBoss, with full clustering support coming up now, should be good enough for most if not all of these jobs. If you need a real distributed application with high volume transaction processing, you might need to look at other kinds of systems that give you more access to lower level capabilities (think: Weblogic Enterprise, Tuxedo, etc.). Or roll your own.
Question about clustering (Score:4, Interesting)
Re:Question about clustering (Score:2, Informative)
2 Scenarios:
1. w/o clustered persistence:
You have two appservers. One dies. You fail over, the app server has no idea who you are. Log in again. What state was your transaction in again? Did you buy that widget or not?
2. w/ clustered persistence:
You have two app servers, replicating session between the two. App1 fails. App2 knows about your session, picks up where the other left off.
Re:Question about clustering (Score:2)
Another server (Score:5, Informative)
Re:Another server (Score:2)
Re:Another server (Score:1)
Re:Another server (Score:2)
# downloads mean little (Score:2)
The interview points to a survey among the sales of various J2EE app servers, and correctly points out that JBoss has no sales to contribute, making the survey be the data among commercial app servers.
clearly the best way to find the JBoss market share is to survey those who use J2EE, not just the companies that make them.
Re:# downloads mean little (Score:2)
Dude, you are out of your element here. 70,000 downloads per month means little? Or you mean, this is happening because there is one single dialup user who keeps retrying the download because his 56k modem has a baud fart? Yeah... right.
Re:# downloads mean little (Score:2)
Re:72,000 whole servers??? (Score:2)
Uhh, no you don't. You'd find out this yourself if you ever actually downloaded the product. It's one download, two if you want to have both servlet engines prepackaged.
Real Use (Score:4, Informative)
JBOSS SUCCESS STORY OF THE MONTH! NEW
"Just through you'd like to know that the United States Department of Labor's Office of the Chief Financial Officer uses JBoss to process about $3.0M worth of financial transactions yearly in one application alone. There are several other legacy applications scheduled for migration. By using JBoss, we've saved the taxpayers about $100,000 in BEA Weblogic licensing fee and about $10,000 in annual support fees".
Michael R. Maraya, OCFO/OFD/DFAD
Christ's sake... (Score:1, Flamebait)
I can read scholarly papers about programming languages in all their greek letter glory, but this is just too much. It's all enterprise-this and acronym-that and just terrible to understand. Maybe I should have gone to business school?
Re:Christ's sake... (Score:1)
Re:Christ's sake... (Score:3, Insightful)
However, whether you are dealing with the STL, MFC or the Java API, it takes time to get productive with that. The Java API is simply huge and covers an enormous amount of functionality that you don't have to invent yourself. Luckily, there is JavaDoc that helps to browse through APIs. In addition, most APIs are well designed and have been through extensive review processess (unlike the crap Microsoft pours out over you) so if you know your design patterns, you won't have trouble understanding how everything fits together.
If other languages appear to be simpler, maybe that is because they don't include so much functionality and require you to do more work reinventing the wheel.
Socialist Marginal Characters (Score:3)
If he really is planning on something called JBoss.net, I think he'll find that 1) people expect it to run MSFT .net code, and 2) MSFT will expres an unpleasant interest.
And just what are "socialist marginal characters"? Are they for or against "WebOS" monopolies?
And why is SUN in all caps? Is that to remind people that it was started from publicly-funded research (Stanford University Network )?
JBoss is a great way to add EJB container support (Score:1)
That said, the EJB component model is cool, and getting the Tomcat/JBoss bundle is a great way to get started with servlets/JSPs/EJBs.
To add 'icing on the cake', add the Apache SOAP servlet (or the newer Apache Axis servlet) and also get SOAP support for interop with other systems.
- Mark
PS. I live in the mountains in Northern Arizona, and it is snowing. Cool :-)
We're switching to JBoss (Score:3, Interesting)
Horizontal scaling? (Score:2)
Re:Horizontal scaling? (Score:2, Informative)
I love this quote... (Score:2, Funny)
(From the last paragraph of question 3.)
Microsoft would be the exception that proves the rule?
I tried to resist saying that, really I did...
Same discussion on serverside.com (Score:3, Informative)
Overly optomistic? (Score:2, Insightful)
Any ``prominent'' sites running Jakarta/JBoss? (Score:2)
Are there people who are using Jakarta/Tomcat for high-volume sites? I use Tomcat for development all the time (primarily because I can use it on some really low end hardware). But in production use, it's always been a different story.
I mean, I can point to
For that matter, how 'bout the same question applied to JBoss? or are they used quietly in departmental intranets, anonymous because they didn't require a big-ticket purchase order to acquire?
I want to know if you consider Jakarta/JBoss ready from 'prime-time' in the same way (say) Websphere is.
Re:Server-side Diversity? (Score:1)
Many banks use multiple server platforms (Score:2, Informative)
Many of those same banks also have applications running on all sorts of Unix systems. And of course, Windows is widely used for front-office applications. Oh, and they all use different RDBMSs, too.
If you think it's easy to write, say, C++ applications that are portable across all those environments, I suspect that you've never really tried.
We've written our in-house middleware in Java; we develop on Windows desktop machines (alas!), and the code works out of the box on AS/400, Solaris and Linux, as well as with every RDBMS we've come across. It's an easy sell to our customers, many of whom have strict requirements about which operating systems they're willing to use for which projects. And we haven't spent any time porting our software.
Re:Server-side Diversity? (Score:5, Interesting)
Consider that JBoss is (will be, in some respects) a J2EE-compliant system, in everything except name. The purpose of J2EE is to deploy in large-scale environments... where you potentially have PC/W2K, Solaris, IBM S390, and God knows what else already providing a business solution.
You will not get a contract to replace the business systems from top to bottom, so take the view that you'll integrate into them instead. Now you're talking multi-tier Facades and Interfaces in order to get these things talking to each other.
You'll want to design things so that there is as little interdependence on co-operating subsystems as possible. Read 'Design Patterns'. Have a serious *think* about XML. Look at the Java libraries and the J2EE designs. Understand.
Have you ever noticed that it "just seems easier" to do things in Java than C/C++/VB(spit!) when there's any degree of complexity ? (I'm not talking about a couple of days' hacking, I'm talking about a designed system). There's a good reason why Java works so well - it's been designed well from the bottom up.
J2EE (and hence JBoss) take that elegance to a higher level of abstraction, but what they're doing is to continue the excellent design principles of the class libraries.
A happy JBoss user.
Simon.
Re:Overkill for anything that's not mission-critic (Score:1)
i work for a company that chose to do it's web based ui in a "real" language (java). our developers got so caught in using all the whiz bang OOP features of java, that they didn't solve the simple problem that was put in front of them. java is great for certain apps, but for simple web/db apps it's overkill.
Re:Java - the perverse language (Score:3, Informative)
The SDK contains what you need to compile and run programs. The JRE (Java RunTime Environment) is just the run part of the SDK. The JRE comes with the JDK.
The concept of having source files match the class name within is required for classes that are 'public.' It's also good development practice to do it that way.
As for the download problem - check your browser settings. You might need javascript/cookies or something.
Dont worry too much about the over-acronyming and over-buzzwording of all the Java stuff out there. It's nearly impossible to keep it all straight. (for example, I dont bother with about 95% of the java stuff out there) But to learn what you need just takes the usual: practice and experience.
Re:Java - the perverse language (Score:2)
I disagree with you on virtually every front here: Java is far from perverse, and a lot of things you're criticising it for make sense if you think about them. Let's take it one point at a time:
No. The JRE (Java Runtime Environment) is for running Java applications only. The JSDK (Java Software Developers Kit), also known as the JDK or occasionally by the more generic term SDK, provides the same functionality but also the ability to compile Java code.
Let's not, unless we can give examples. Most Java variable names in Sun's own code are fairly self explanatory once you know the basic structure they're working in.
Actually, in that case the compilation error would be on the line where the error occurred, as with most error reporting in Java programs.
As for case sensitivity, it's pretty much required for a platform-independent system that's going to be running on Unix-like systems.
(If you want to be really frightened, be aware that Java source code is actually UTF rather than ASCII, so you could create a file where all variables are called 'bob', just in different character sets...)
Re:Java - the perverse language (Score:2)
I understand this, now. But (at the time) there was no good way to figure this out form Sun's Java site. Now there are actually some pretty good walk-throughs.
Let's not, unless we can give examples.
Well, I don't have any Java code handy, but the stuff my wife has had to use for her Java classes (as in school) has been pretty bad. Weird capitalization, way to long without being particularly descriptive, etc.
I think we can at least agree that typical method and variable names in typical Java programs are longer (and therefore more subject to typos) than most programs. It is my opinion that in the general case there is little (if any) useful information embedded in this baggage.
Actually, here is an example from "The Practice of Programming" (Kernighan & Pike):
This quote looks pretty bad. I have the trade paperback version, and this appears on page 4.
Anyway, to my eye, the first looks distincly "Javaish" whereas the second looks like C++. I'm not sure, but I think that this code is valid in either language. That's my point about perverse, typo prone method and variable names.
I fully expect case sensitivity. I don't, however, expect 20+ character labels with "funny" caps.
Actually, in that case the compilation error would be on the line where the error occurred, as with most error reporting in Java programs.
Well, of course this isn't true. It isn't true for any language. Any compiler gives an error where the compilation error is encountered. So, if you forget to uncomment a declaration you get the error where the variable is used.
OTOH, I get the sense (after debuging my own bad syntax on C++ and Perl) that "javac" (ask me how long it took me to figure that out) encounters errors in places less inutitive, and further from the mistake than others. Again, this is a sense, I don't have examples handy.
Anyway, this is pretty far off of my core complaint, which is that Java seems to be more about buzwords and barriers to entry than about technology.
I do have one more question: is there an assembler for the JVM?
Okay, one more: is there some documentation for the JVM in terms of things like registers, service calls, etc.
-Peter
Re:Java - the perverse language (Score:2)
That's the general style, yes: meaningful method and variable names. If you prefer to take other approaches in your own code then there's nothing stopping you from doing so.
You're confusing 'funny' caps with a well-defined style for capitalisation. Java variable names, if you're following Sun's style guide, begin with a lower case letter, and new words are identified with a capital letter, an approach sometimes referred to as IniCaps. Method names use the same style, class names the same but with an initial capital letter. Once you're used to that style, it makes perfect sense, and you're a lot less likely to drop caps. It's preferable to some of the overly abbreviated variable names you get in some C code as far as I'm concerned - particularly for maintenance purposes. I know what the variable userCount contains, or can make a good guess. I have no idea what nusr means.
It's all down to style, of course. There's no reason a C program couldn't be the one with a variable userCount and a Java program the one with nusr, and I've seen both.
It's true of all languages that until you know the jargon, you will find it confusing. That's the case with Java to the same extent as other languages.
A somewhat unhelpful answer here: yes, but I don't know where you'd go to find it.
I guess this [sun.com] is what you want.
Re:Java - the perverse language (Score:2)
I find the name "IniCaps" to describe this laugh out loud funny (since it doesn't comply with itself).
As to variable names, you seem to have ignored two key points in my post. First, in my opinion, the longer names don't actually carry additional info in practice. If you are just saying that in your experience they do, well, that's fine then.
The other is that, as illustrated by the example, the full name (I'm sure there is some cool computer science name for this) can be made to look very good, and it doesn't matter if the name looks vague out of context. This isn't my point, it is K&P's point.
It's true of all languages that until you know the jargon, you will find it confusing. That's the case with Java to the same extent as other languages.
You must be trying to miss my point here. Yes, of course every technical field has its jargon. And every language its own set of jargon. My point is that Java (I guess really Sun) goes way, way beyond what is normal.
One prime example: EJB. You seem to have a personal affinity for meaningful labels. Let's expand EJB. AFAIK it is Enterprise Java Beans. To me that is a buzzword followed by a (maybe) cute but meaningless bit of wordplay. NO INFORMATION. I heard a rumor this is an API. IMO this is going as far as to be deliberately evasive in naming a technology.
-Peter
Re:Java - the perverse language (Score:2)
And my complaint isn't that I am too dumb to learn Java, it is that I seem to be having a significantly higher level of difficulty getting started with Java than I have with other languages in the past. (Of course, I grouse almost as loudly about Perl being too easy in some ways . .
Actually, the things I have learned in the course of this thread lead me to believe that the "problem" (maybe it is aesthetic, maybe it is just me, whatever) is due to over-marketing and over-committeizing. IOW, I'm not sure any sane person would arrive at "IniCaps" but a committee of sane people might end up converging on it. No language designer would come up with Enterprise Java Beans, but marketing department sure would. I guess the fact that it doesn't have a "father" (like Wall or K&R) shows.
Maybe we mean different things by jargon? Your message could be read as you are under the impression that since I call EJB "jargon" I don't think it is a real technology. Is that what you meant? Anything technical has jargon. It has to. I'm just saying that I find Java (in the larger sense of Java) to be jargonistic to the extreme, and for its own sake.
-Peter
PS: It is, of course, the only slightly less perverse language, Perl.
Re:Java - the perverse language (Score:2)
Enterprise JavaBeans is the *enterprise* component model for Java.
There, that was fairly painless, yes?
As for your comments on IniCaps not conforming to itself, it's used to describe the process of capitalising new words (short for initial capitals) - both the variable and class name conventions can be described as IniCaps.
Re:Java - the perverse language (Score:2)
Yes, java beans is cute, and I get it, but it doesn't tell me squat about the technology.
What does enterprise mean? I'm keeping a running list:
Supports files >2gb
Supports RAM >4gb
Supports fibre channel
We charge you really, really a lot more because you are a big company and we think you can afford it.
Supports LDAP
Has even more proprietary extensions than the "workgroup" version.
I'm not sure if any of these fit.
I think that the IniCaps thing might be even funnier now. Maybe it should be iniCapsCptIniWrd (Initial Capitals exCept Initial Word)!
Okay, I'm just being silly now.
-Peter
Re:Java - the perverse language (Score:2)
Wow, no registers. I'm not saying you are wrong, but I can't imagine how this can be . . . how do you keep track of the top of the stack!
[read, read, read]
Oh, there is a "pc" register which seems to be equivalent to IP on intel. I can't find anything on a stack pointer register. Weird.
-Peter
Re:Java - the perverse language (Score:2)
As to "swallow[ing] the whole thing at once." I did, in fact, expect to be able to get to "hello world" within the first day or two. Since I had gotten at least this far with several other languages I didn't think that this was unreasonable.
I am consciously biased against Java, but I am pretty sure that I'm not so sick that I burned hours of my life to prove to myself that I don't like it. I was trying to learn it for my own amusement, and would still like to.
Bruce's site (with the flash intro with the background that almost matches the background of the rest of the site) has, sadly, made my mental state worse. I hope that you, AC, aren't Bruce. (I suspect you aren't, since you can't spell subconsciously
[time passes . .
I'm back from the site, and I have to say that Bruce kicks ass. I downloaded the Java book (and the C++ books) and am looking forward to curling up with my laptop and checking them out.
-Peter
Re:Java - the perverse language (Score:2)
import javax.swing.*;
public class HWorld
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null, "Hello World");
Re:Java - the perverse language (Score:2)
See... Java's simpler than HTML. +)
Re:Java - the perverse language (Score:2)
None of the human beings that I knew at the time seemed to get this either, and all the "cool guy" Java guys and docs just assume you know this.
As I said before, there are some pretty useful walkthroughs for first-timers now.
But since you brought up how much more sense System.out.println() makes vs. cout . . .
Since Java is all logical and stuff, I can get input by just doing System.in.getln() right?
Wah-wah-wah-waaaaah*
Anyway, how do you do the equivalent of "cin >> some_string;" in Java?
-Peter
* the sound on "Let's Make a Deal" when someone gets the donkey
Re:Java - the perverse language (Score:2)
It looks really nice when I do "view source" though.
Anyway, thanks!
So the key here is "new BufferedReader". Am I correct in the belief that there is no "free br" allowed/needed?
-Peter
Re:Java - the perverse language (Score:2)
(I say this not as a lazy programmer, but as someone who feels that Java breeds lazy programmers.)
-Peter
Environemnts (Score:2)
Basically, the code ports really well and with few modifications. But where the differences come in are development environments and deployments, which would probably be different from one company to another anyway even using the same app server.
Another area where you can find differences is in frameworks used - what people actually do on top of the EJB standard can vary quite a bit while still being compliant. Then you have add on frameworks for front end, things like Struts, which aren't really part of the spec but are widely used.
What I would do in an interview situation is describe how the websphere deployemnt you worked with was set up - what you used to develop, how you deployed, etc. Then ask them questions about thier deployment and see how it compares.
Re:Changing to JBoss from other App Servers (Score:2)
The Art of EJB Deployment [javaworld.com]
Re:IIOP (Score:2)