Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: Programming

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Programming

Despite not being a violent man (honest!) I've found myself increasingly being moved by the argument that programmers, and perhaps other technical staff too, should be given limited license to kill people under the defence of justifiable homicide. All you programmers reading can stop cheering though -- I'm not suggesting a complete free-for-all. We can't have programmers just going around...
on Jan 24, 2007
I have nothing technical to add to the debate. However, I have been monitoring the recent java.net poll that asks "How important is it to you that JDK 7 offers a new property syntax?" The results so far seem to indicate that almost two-thirds of the voters just don't need a new syntax. A minority, just 15%, think it's "very important" to the Java platform. They're a small but vocal group. The...
on Jan 16, 2007
I have two classes .... Class A public abstract class A { int a = 8; public A() { show(); } abstract void show(); } And following is a class Trick extending class A. public class Trick extends A{ int a = 90; void show(){ System.out.println( "value of a is " + a); } public static void main(String args[]){ new Trick(); } } What is the output of the main method of class Trick ???...
on Jan 12, 2007
Interesting article from JDJ Java News Desk. Java now holds the market penetration lead at 45%. Note that Ajax grew (by 10%) to reach a total penetration level of 28%.
on Nov 30, 2006
I think that the OpenSourcing of the Java Platform may very well lead to a new wave of Programming Language designs. For example, check out Chris Oliver's Postings on F3 and then check this Language Overview. Don't be confused by the examples that emphasize only the GUI abilities of the language - it is much more than that. Pretty cool, eh? Now, combine that with a widely available JVM and Java...
on Nov 16, 2006
1) I often find myself writing factory type interfaces, but one of the problems with interfaces in Java is that, while you can include static variables, there isn't any way to include static methods. This means if you want your getInstance and setInstance methods inside the factory interface itself, you either have to resort to using a static variable or you have to create a second class just to...
on Nov 1, 2006
   The following is the evaluation of two static analysis solutions   from Coverity and KlocWork.    Background of the research   The purpose of the conducted research was to find a software   application capable of doing a source code static analysis. Any   organization creating and maintaining a source code base above a ...
on Oct 27, 2006
OPPSLA Part I OOPSLA As a wack to the side of the head The only real reason to attend a mad scene like OOPSLA is for that wack to the side of the head that shakes lose some of your preconceptions, and hopefully allows you some room for those ideas that seem to gravitate to such occasions. Here was the advice given at the start of the day: three new acquaintances gain an in site, lose...
on Oct 24, 2006
*dusts off the 2 year old blog* Ahoy j.n'ers! It's been a while, but I had to come share a fun experience from the other night. Charles Oliver Nutter, one of the lead developers of JRuby, dropped in to the virtual world Second Life for a meeting of the Rubyists of Second Life. For an hour and a half or so, Charles, known in SL as Headius Exodus, shared the details of what JRuby is, why it...
on Oct 20, 2006
Sometimes static code isn't enough and you need to build code dynamically, at run time. That's usually a hefty proposition, but if the code you need to build is just an interface, it's actually relatively simple. Here are some of the reasons you might want to build interfaces at run time and how you might go about it. Static and dynamic code The first thing to...
on Oct 18, 2006
They say any news is good news so long as they spell your name straight. Quotes from me were used Sun Microsystems finds the JavaScript love to give the impression that Sun is riding the AJAX phenomenon and JavaScript to promote Java. While I will admit that AJAX has helped increase interested in JavaScript inside of Sun, the work to integrate JavaScript in Java SE 6 through JSR 223 began...
on Oct 6, 2006
Brasilian portuguese version here. I have found today at JavaPlanet a news from JavaFree talking about another blogs`s post about how to write a Spring Validator to use custom annotations to make validation happens within springMVC ... It is really easy and usefull, but there is already Hibernate-Validator ... So why do I have to create another hand full of annotations? Hibernate-Validatos has...
on Sep 27, 2006
Disclaimer: UNLIKE my previous article on interviewing, I am not criticizing any company, processes or interviewers. This post is JUST a blog entry and documents my inability to clear a technical interview. If anything, the interviewees this time around were professional, courteous and knew what they were doing. My one and only gripe is with their huge development area, which resembled a...
on Sep 14, 2006
There's been a lot of discussion lately about the Java language: were the Java 5 features a mistake, will the features being suggested for 7 be worth it? One aspect of this debate is a kind of 'feature envy', in which pressure mounts to support a feature or particular mode of working because a rival language supports it. It seems that increasingly we live in a world where languages are not seen...
on Sep 12, 2006
Variable initialization, assignments and use in array construction can be tricky to varying degrees in different programming languages. When a variable is used during initialization of an array, some may assume that assignment to that variable will be carried to the array, too. In this short note I want to give a couple of examples to note the difference between "{ }" and "[ ]" which are...
on Sep 11, 2006
Code block, in a nutshell, are basically just "lambda" functions (also known as closures in many other languages, most apropos might be Groovy) that are tied directly to a single method call. The canonical case is the way Ruby does array iterators: [1, 2, 3].each { |i| puts "the value is #{i}" } In this case the code block "{ |i| ... }" is passed to the method "each". This method calls...
on Sep 8, 2006
In that article, Matt Raible, shows interesting reasons to use AppFuse. In Brazil, a gret friend of mine : Paulo Jerônimo, which promotes very enthusiastics presentations in Brazil, in events such as JustJava(Biggest Brazilian Java Event) talking about AppFuse. AppFuse is a really nice way to getting started a project, and there are a lot of people using it here in Brazil. Mr. Raible, added...
on Aug 30, 2006
I got up early this morning to get some coding done. Instead, I am writing this blog. Something in NetBeans has become unstable, and it pops up this dialog. Clicking on "Show Details" reveals What's wrong with it? Why do I have to report the error? It wasn't my fault in the first place. NetBeans should offer to report it on my behalf. It is ok to give me a manual...
on Aug 23, 2006
Let's establish some facts right away: My first introduction to the Aspect Oriented Programming paradigm was the article Aspect Oriented Programming and Internationalization by Stephen B. Morris, who is probably very knowledgeable about AOP. I know practically nothing about AOP, I am not an AOP guru, and I don't even play one on java.net. Now that the disclaimers are out of the way, I'll just...
on Jul 31, 2006
Okay, Generics are old news. But since NetBeans was still targetting JDK 1.4 until a few months ago, and most of my coding is NetBeans plug-ins, I'm just starting to really appreciate them. In particular, I'm finding they have a very nice effect on the things I choose to write and how I write them. Of course the basics are quite convenient - just being able to eliminate casts and get type...
on Jul 22, 2006