Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

carl marais

+ Follow
since Aug 18, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by carl marais

Actually Nice is not the only language to compile to java bytecodes. There is also Jython a hybrid scripting language somewhere between java and python. I use it in interactive mode to check parts of the jdk libraries while i am coding as it compiles on the fly in that mode. Jython actually looks a good way to do GUIs
17 years ago
Anyone had a look at nice . Its a new language which ultimately compiles to java class files.
Its very similar to java but adds a few features which almost every java programmer will have desired such as defaults for method calls. No more writing 10 different constructors. It also tries to prevent common errors such as null pointers and gets rid of casting all together. It also seems to get rid of wrapping and unwrapping primatives when you store them in collections. Its got parameterised classes which might reduce the amount of code you need to wright in certain places and mutimethods which allow you to write more flexible code with fewer case statements or worse if elses.

It sounds quite interesting particularly for people developing ejbs and so on where solving common errors like null pointer exceptions and so on can take forever as the information you recieve in the client gets so garbled by the client.
It is able to call java classes from within but I dont think java can call Nice because of the Parameterised classes
Interested to see what people think about the language and if something like this would ever manage to acquire part of the java market.
17 years ago
Thanks Sanjay but what I am actaully looking for is the url of the site to which we are meant to upload to. I seem to remeber it had something to do with Galton.
During the long interval between downloading the part 2 instructions and completing my project I seem to have lost the upload instructions. Could please someone help me out.
I think they intended it to help as a definition of terminology. I think it serves to confuse more than anything else. I also think they want you to deal with conflicting requirements.
I posted a similar question a while ago but got no response. I finally decided to go with EJB 2.0 CMP for all relationships except where there are huge numbers of results returned. EJB 2.0 has been designed with the shortcomings of EJB1.1 in mind and therefore should be a viable solution.
I think DAOs have their place but people who use them all over the show are not utilising J2EE correctly. Speed of development is often more important than speed of the application (Especially when you have an E10000).
I also think that the earlier projects being done were prior to EJB2.0 when EJB1.1 persistance just didnt cut it which is why there is such consensus on DAO usage. Java Pet Store and Blue prints are also 1.1.
I definately think the paper was prepared with EJB1.1 in mind.
If a class was declared private then it would be impossible to create an instance of it. If you dont want a class to be subclassed you declare it as being final which kind of takes over for the role of the protected modifier.
final inside a method has a very different meaning. By declaring something as final inside a method allows you to access the local variable inside an inner class.
The normal approach to this problem is to use an Association Class. Both seller and purchaser are given access to this class.
Below is a defination from JGuru posted by John Moore.
An association class is used to model an association as a class. Association classes often occur in many-to-one and many-to-many associations where the association itself has attributes.
As an example, consider a many-to-many association between classes Person and Company. The association could have properties; e.g., salary, jobClassification, startDate, etc. In this case, the association is more correctly modeled as an association class with attributes rather than trying to fold the attributes into one of the classes in the association.
An association class is rendered by a dashed line from the association to the class rectangle. Each link in the association is an object of the association class. An association class is essentially a class attached to an association; the association itself is modeled as a class.
Here are some pointers to consider when modeling with association classes:
You can�t attach the same class to more than one association; an association class is the association.
The name of the association is usually omitted since it is considered to be the same as that of the attached class.
Distinguish between the use of an association class as a modeling technique and the implementation of the association class. There can be several ways to implement an association class.

18 years ago
I wrote part 1 two months ago. It was entirely 1.1 based.
Thanks will try and find a copy.
Searching the web and book shops there seems to be major lack of information on Component Diagrams. Anyone know a good resource?

link to specification below
If you are wanting this for part 1 exam it might be a bit overkill. I definately didnt need it then.

I have the sun training books for SL425 and SL500 and although I think they are useful most people who went on the course with me did not feel they got much value out of it.
The SL425 book is good for architectural terminology such as robustness, scalability and flexibility and to get an idea of Suns approach to architecture. But you should be able to get these definitions from any other good text on OO and Distributed Software.
TOC for SL425
Architect and Architecture - terms and definitions
Principles of Architecture
Creating an Architecture using J2EE Technology
J2EE Best practices - Overview
J2EE Best Practices - Web tier
J2ee Best Practices - EJB Tier
J2ee Best Practices - EIS Tier
J2EE best Practices - Services
J2EE Patterns
UML Quick References
Java 2 Platform , Enterprise Edition Infrastructure
The web databases and messaging
Beans and more beans - beans and EJBs
Prototyping with J2ee patterns
MegaBank Scenario
The table of contents - major sections for SL500 are:
Java 2 Platform Enterprise Edition Infrastructure
The web databases and Messaging
JavaBeans and Enterprise Java Beans
Class Diagrams
Deisgn Patterns Overview
Common Design Patterns
Applying Patterns
Models of CLient Server Architecture
The J2EE Blueprints
Introducing J2ee Patterns
Integration-Tier Patterns
Business-Tier Patterns
Presentation-Tier Patterns
Prototyping with J2EE Patterns
Applying J2EE patterns.
Check one of the other threads for a recommeded reading list