Java Virtal

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

2122232425 2627

[ Archives News
for 'Developers' ]

home > news > developers > ruby screenshot of the week #24: quick fix previews

Ruby Screenshot of the Week #24: Quick Fix Previews

First of all, NetBeans 6.0 (final) was released this morning. Go get it! So let's talk about 6.1 :) I just updated the quickfix infrastructure such that we can automatically generate previews for how the hints will modify the source. I've also added some new hints. Let's start looking at the user.rb file in the sample Depot application. If I place the caret inside one of the if blocks, a lightbulb appears: NetBeans offers to replace this if-block with one where the "if" is a statement modifier. This idea came from the excellent "Exploring Beautiful Languages" blog by Luis Diego Fallas, where he implements NetBeans Ruby hints -- in Scala! Here's the new preview functionality in action; instead of just applying the fix I invoke the Preview and get the following dialog which shows what the fix will do: Preview is particularly useful for larger source changes like Extract Method. Here's another method from the same file: Obviously, we can apply the same "convert to statement modifier" here, but look at the first suggested fix: NetBeans will convert "if negative condition" to "unless", and "unless negative condition" to "if" to make the code more readable. This was also shown by Luis in his blog entry. Here's the proposed fix: and we can apply the other conditional cleanup as well to end up with a much simpler statement: There is one more recently added hint: Check for accidental assig...

Date: December, 03 2007

Others News

© | pt | web design software | top free website builder | bootstrap popup window