Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
Technology

Journal Journal: JSR-32 SIP update, and about some Java practices

JSR-32 1.2 is about to be released soon. It contains almost all the changes we requested so far and it will be usable and correct.
There's a tendency there, which i don't like, to return iterator objects instead of abstract collection - i think it is an errornous practice in Java, since it doesn't give anything, except for making the user of the class work harder. It is a practice taking from C++ STL - where it works fine - but it isn't suitable for Java and JFC.

PC Games (Games)

Journal Journal: The game

In the past month i didn't touch the game code, however, before that, i managed to sort-of finish the server. It is a really rich server and it supports scalability in a simple yet powerful way. It also contains a very sophisticated and flexible game objects, allowing developers to define quite a wide variaty of game sets. A "Game set" contains few configuration parameters and a database of game-objects. Game objects are: cards, spells, powers and items. Each of which has a list of properties

GameCube (Games)

Journal Journal: Started building of a new game

i just started to write a game, something in the style of Magick the Gathering. It is in pure Java. My intentions are:
1. To make it open-source, easily expandable.
2. To make it simple, learning-curve-wise, but not too simple - strategy and thinking are a must.
3. To make it multi-player (small groups though)
4. To support AI players.
5. To let a player has a persistant "avatar", but yet he can be beaten by a newbie, if he's not careful enough, so one always has someone worthy li
Technology

Journal Journal: JSR-32 SIP needs improvements

Right now im doing a project that is practically a JSR-32 Java wrapper around a C implementation if SIP stack. It is not as straight forward as it may seem, because of two reasons: 1) there's a difference in the semantics between the JSR's to the existing C stack; 2) there are very tough performance requirments and JNI might hinder the possibility to make anywhere near the speed of the C stack; 3) the JSR is not well designed.
The man responsible for the JSR-32 did a good job considering the

Comment Very true. That's what i told them at IBM HRL (Score 4, Interesting) 470

When i worked at IBM research labs, i criticized AspectJ using almost exactly the same words: they try to solve specific issues (logging, persistency, etc), that deserve specific solutions, using a completely generic approach. They failed to provide more examples for those specific problems that AspectJ will solve. Of course, i was silenced - because that's the way it works in IBM Haifa - they just can't deal with criticism :)

The concepts behind AspectJ, TMO, are not bright. They break encapsulation, they are too ambitious and far from real-world understanding of programming concerns. All in all, they introduce too many problems.

TMHO,Aspect Oriented Programming should be different, and should be based on something much simpler, much more down-to-earth ideas and more consistent with real-world needs.

Today it is easily possible to do using Java Annotations, that will specify class member's affinity with an aspect, and thus provide:

A) a mechanism by which the compiler could limit access (errors & warnings) to members according to their affinity with a common aspect or aspects (common to it and its caller);

B) a programmer, using a proper IDE, can view a breakdown of his code according to aspects.

C) in runtime, the current aspect should be visible to the program thus extending the ability to: I) log, and trace errors; II) affect work-flow according to the aspect in action (that's an intense feature so im not too sure about that)

Doing more than the above, looks to be like an abuse of proper programming concepts.

The Annotation mechanism introduced in Java 5 is quite powerful and maybe already provide all that is needed for the job, including hierarchical arrangement of aspects (slash annotations), attributes, etc. Very little is needed in order to implement what i propose.

Maybe i'll propose is to the JCP. What'd ya think?

Slashdot Top Deals

If God had not given us sticky tape, it would have been necessary to invent it.

Working...