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

Blogs by topic Blogs and user carcassi

• 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 


J2SE

In a previous post I outlined some of the problems one has dealing with real-time, asynchronous data. Since I have been working on a library to handle those issues, I'll start to go through some of the design. The library is open source, and available at http://pvmanager.sourceforge.net. It's being developed and used in the EPICS accelerator control community, which comprises various...
on Aug 3, 2012
You know that generics are too hard when you can't even figure out why something does not compile. Found this (simplified example of something that I have encountered): interface Test1<T> { public List<T> getList(); } public void test1(Test1<?> arg) { List<?> result = arg.getList(); } interface Test2<T> { public List&...
on Aug 4, 2011

GUI

I've been working for a number of years now in the NSLS-II Control System group, creating tools that hook up to the control system. What I do is soft-real time stuff (I can drop data on the floor, I don't have hard latency requirements, etc.) mostly dealing with writing clients to display the data and let operator interact with the control system. In these conditions, you have have to think...
on Feb 15, 2012

Programming

If you, like me, need to build libraries that need to be tested against a live server (integration tests), here's what you can do. Have all your integration tests either in seprate "itest" packages, such as my.library.itest, or have the test classes end in ITest, such as my.library.ConnectITest. In the main section, have the surefire plugin exclued running the integration tests:  ...
on Apr 21, 2011
Since generics were out and I started using them, there were always a few cases in which I couldn't make them do what I wanted. I always thought it was my problem, and that I didn't understand what was going on... Turns out: it's not. There are at least two things that are implemented in a way that break what I thought were very safe expectations. Inference Before Generics, you would write...
on Apr 9, 2010
In this post I am going to sum up things I have learned while creating a fluent API (or internal DSL) in Java. I'll talk about the search API I created for my current position: it's not a toy problem, it's a real problem, which has a significant amount of complexity. Because of that complexity, you get to see techniques and ideas that you don't usually see in toy examples. I am not including the...
on Feb 4, 2010
While much have been written on checked vs unchecked exceptions, I found very little practical, down to earth, advice on how and why to use them. Here are my thoughts after years of rumination. The common wisdom What we are typically told is to use checked exceptions for recoverable conditions and unchecked exceptions for programming errors. For example here or in Effective Java. Don't get...
on Sep 25, 2009