Science Current Events | Science News | Brightsurf.com
 

Carnegie Mellon develops Java programming tools employing human-centered design techniques

June 18, 2009
PITTSBURGH-Researchers at Carnegie Mellon University's School of Computer Science have developed two new tools to help computer programmers select from among thousands of options within the application programming interfaces (APIs) that are used to write applications in Java, today's most popular programming language.

The tools - Jadeite (www.cs.cmu.edu/~jadeite) and Apatite (www.cs.cmu.edu/~apatite) - take advantage of human-centered design techniques to significantly reduce the time and guesswork associated with finding the right classes and methods of APIs.

APIs are standardized methods that a Java program uses to ask the computer's operating system or another program to do something, such as opening a file or sending an email. Choosing APIs for accomplishing a given task is at the heart of Java programming, but is not intuitive, said Brad A. Myers, professor of human-computer interaction. With more than 35,000 methods listed in 4,100 classes in the current Javadoc library of APIs - and more being added in every new version - not even the savviest developer can hope to be familiar with them all.

"This is a fundamental problem for all programmers, whether they are novices, professionals or the growing number of end-users who just need to modify a Web page," Myers said. "It's possible to design APIs so that they are easier to use, but that still leaves thousands of existing APIs that are hard to use but essential for Java programming. Jadeite and Apatite help programmers find what they need among those existing APIs."

Jadeite (Java Documentation with Extra Information Tacked-on for Emphasis) improves usability by enhancing the existing Javadoc documentation. For instance, Jadeite displays the names of API classes in font sizes that correspond with how heavily used they are based on Google searches, helping programmers navigate past little-used classes. The commonly used "PrintWriter" is in large, prominent letters, while the lesser used "PrintEvent" is in smaller type.

Jadeite also uses crowd-sourcing to compensate for the fact that an API sometimes doesn't include methods that programmers expect. For instance, the Message and MimeMessage classes don't include a method for sending an email message. So Jadeite allows users to put so-called placeholders for these expected classes and methods within the alphabetical listing of APIs. Users can edit the placeholder to guide programmers to the actual location of the desired method, explain why a desired method is not part of the API, or note that a desired functionality is impossible.

Finding the way to create certain types of objects, such as SSL sockets that enable secure Internet communications, may not be obvious to programmers the first time they encounter these objects. In these cases, Jadeite includes examples of the most popular code used by programmers to create these objects, allowing the user to learn from the examples.

User studies showed that programmers could perform common tasks about three times faster with Jadeite than with the standard Javadoc documentation.

Apatite (Associative Perusal of APIs That Identifies Targets Easily) takes a different approach, allowing programmers to browse APIs by association, seeing which packages, classes and methods tend to go with each other. It also uses statistics about the popularity of each item to provide weighted views of the most relevant items, listing them in larger fonts.

Both Jadeite and Apatite remain research tools, Myers said, but are available for public use. Broader use of the tools will enhance the crowd-sourcing aspects of the tools, while giving the researchers important feedback about how the tools can be improved.

Research by Jeffrey Stylos, who was awarded a Ph.D. in computer science this spring, underlies both Jadeite and Apatite. Besides Myers, research programmer Andrew Faulring and undergraduate computer science student Zizhuang Yang contributed to the development of Jadeite and computer science undergraduate Daniel S. Eisenberg led the implementation of Apatite. Eisenberg's work on Apatite earned first place in the Yahoo! Undergraduate Research Awards competition at Carnegie Mellon this spring.

Carnegie Mellon University


Related Java Programming Current Events and Java Programming News Articles


Copied from nature: Detecting software errors via genetic algorithms
According to a current study from the University of Cambridge, software developers are spending about the half of their time on detecting errors and resolving them.

UC San Diego Computer Scientists Develop First-person Player Video Game that Teaches How to Program in Java
Computer scientists at the University of California, San Diego, have developed an immersive, first-person player video game designed to teach students in elementary to high school how to program in Java, one of the most common programming languages in use today.

Code green: Energy-efficient programming to curb computers' power use
Soaring energy consumption by ever more powerful computers, data centers and mobile devices has many experts looking to reduce the energy use of these devices. Most projects so far focus on more efficient cooling systems or energy-saving power modes.

Software helps military aircraft techncians centralize maintenance
Aircraft technicians these days are as likely to use a laptop as a printed manual and logbook, and to turn to the Internet for the latest job-status reports and technical information.

Academics find that the finger of destiny points their way
Male scientist are good at research because they have the hormone levels of women and long index fingers, a new study says.

Media arts on the Internet
For those who work with digital media, or provide instruction on its use, www.netzspannung.org offers a comprehensive archive - particularly in media arts. The platform has been enhanced with new sections devoted to media arts research and education as well as research tools. --- View the rooms of the Kremlin as they looked 500 years ago. Visit synagogues demolished during the Third Reich. Bring the ruins of antique cities back to life. All of this is possible - at least virtually. These three forays into past cultural heritage are projects that exemplify the link between the arts and research. And all three can be explored in the new media arts research section of netzspannung.org. This com

A turbo compressor for mobile surfers
Despite faster Internet connections, many users still resentfully associate the three letters www with "world wide wait". This is also due to the fact that files are constantly increasing in size. When using wireless terminals with low-resolution displays, such as palmtops or PDAs, it is not in fact necessary to transfer all elements of a Web page, designed for display on large, high-resolution monitors. Although mobile service providers offer solutions to this problem, access is then limited to preselected sites, in the same way as the WAP service.
More Java Programming Current Events and Java Programming News Articles

Java, A Beginner's Guide, 5th Edition

Java, A Beginner's Guide, 5th Edition
by Herbert Schildt (Author)


Essential Skills--Made Easy! Learn the fundamentals of Java programming in no time from bestselling programming author Herb Schildt. Fully updated to cover Java Platform, Standard Edition 7 (Java SE 7), Java: A Beginner's Guide, Fifth Edition starts with the basics, such as how to compile and run a Java program, and then discusses the keywords, syntax, and constructs that form the core of the Java language. You'll also find coverage of some of Java's most advanced features, including multithreaded programming and generics. An introduction to Swing concludes the book. Get started programming in Java right away with help from this fast-paced tutorial. Designed for Easy Learning: Key Skills & Concepts--Chapter-opening lists of specific skills covered in the chapter Ask the Expert--Q&A...

Beginning Programming with Java For Dummies

Beginning Programming with Java For Dummies
by Burd (Author)


One of the most popular beginning programming books, now fully updated Java is a popular language for beginning programmers, and earlier editions of this fun and friendly guide have helped thousands get started. Now fully revised to cover recent updates for Java 7.0, Beginning Programming with Java For Dummies, 3rd Edition is certain to put more first-time programmers and Java beginners on the road to Java mastery.Explores what goes into creating a program, putting the pieces together, dealing with standard programming challenges, debugging, and making the program work Offers new options for tools and techniques used in Java developmentProvides valuable information and examples for the would-be programmer with no Java experienceAll examples are updated to reflect the latest changes in...

Java Programming

Java Programming
by Joyce Farrell (Author)


Give your beginning programmers a thorough, engaging and hands-on introduction to developing applications with Farrell's JAVA PROGRAMMING, 7E. This complete guide provides the details and real-world exercises today's readers need to master Java, one of the most widely used tool among professional programmers for building visually interesting GUI and Web-based applications. With JAVA PROGRAMMING, 7E even first-time programmers can quickly develop useful programs while learning the basic principles of structured and object-oriented programming. The text explains concepts clearly and reinforces the reader-friendly presentation with meaningful real-world exercises. Full programming examples emphasize learning in context. Updated "You Do It" sections, all-new programming exercises, and new...

Effective Java (2nd Edition)

Effective Java (2nd Edition)
by Joshua Bloch (Author)


Are you looking for a deeper understanding of the Java™ programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective Java™, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day.   This highly anticipated new edition of the classic, Jolt Award-winning work has been thoroughly updated to cover Java SE 5 and Java SE 6 features introduced since the first edition. Bloch explores new design patterns and language idioms, showing you how to make the most of features ranging from generics to enums, annotations to autoboxing.   Each chapter in the book consists of several...

Introduction to Java Programming, Comprehensive Version (9th Edition)

Introduction to Java Programming, Comprehensive Version (9th Edition)
by Y. Daniel Liang (Author)


Introduction to Java Programming, Comprehensive, 9e, features comprehensive coverage ideal for a one-, two-, or three-semester CS1 course sequence.

Daniel Liang teaches concepts of problem-solving and object-oriented programming using a fundamentals-first approach. Beginning programmers learn critical problem-solving techniques then move on to grasp the key concepts of object-oriented, GUI programming, advanced GUI and Web programming using Java.


Head First Java, 2nd Edition

Head First Java, 2nd Edition
by Kathy Sierra (Author), Bert Bates (Author)


Learning a complex new language is no easy task especially when it s an object-oriented computer programming language like Java. You might think the problem is your brain. It seems to have a mind of its own, a mind that doesn't always want to take in the dry, technical stuff you're forced to study.

The fact is your brain craves novelty. It's constantly searching, scanning, waiting for something unusual to happen. After all, that's the way it was built to help you stay alive. It takes all the routine, ordinary, dull stuff and filters it to the background so it won't interfere with your brain's real work--recording things that matter. How does your brain know what matters? It's like the creators of the Head First approach say, suppose you're out for a hike and a tiger jumps in...

Java Programming (Oracle Press)

Java Programming (Oracle Press)
by Poornachandra Sarang (Author)


Develop, Compile, and Debug High-Performance Java Applications Take your Java skills to the next level using the expert programming techniques contained in this Oracle Press guide. Featuring real-world code samples and detailed instructions, Java Programming demonstrates how to fully utilize the powerful features of Java SE 7. Find out how to design multithreaded and network applications, integrate structured exception handling, use Java libraries, and develop Swing-based GUIs and applets. Inheritance, generics, and utility classes are are covered in this practical resource. Create custom classes, methods, arrays, and operators Control program flow using conditional statements Handle multithreaded, network, and I/O programming Learn new constructs in multithreading Incorporate enums,...

Java, Ninth Edition: The Complete Reference

Java, Ninth Edition: The Complete Reference
by Herbert Schildt (Author)


The Definitive Java Programming Guide Fully updated for Java SE 8, Java: The Complete Reference, Ninth Edition explains how to develop, compile, debug, and run Java programs. Bestselling programming author Herb Schildt covers the entire Java language, including its syntax, keywords, and fundamental programming principles, as well as significant portions of the Java API library. JavaBeans, servlets, applets, and Swing are examined and real-world examples demonstrate Java in action. New Java SE 8 features such as lambda expressions, the stream library, and the default interface method are discussed in detail. This Oracle Press resource also offers a solid introduction to JavaFX. Coverage includes: Data types, variables, arrays, and operators Control statements Classes, objects, and methods...

Core Java Volume I--Fundamentals (9th Edition) (Core Series)

Core Java Volume I--Fundamentals (9th Edition) (Core Series)
by Cay S. Horstmann (Author), Gary Cornell (Author)


Fully updated to reflect Java SE 7 language changes, Core Java™, Volume I—Fundamentals, Ninth Edition, is the definitive guide to the Java platform.   Designed for serious programmers, this reliable, unbiased, no-nonsense tutorial illuminates key Java language and library features with thoroughly tested code examples. As in previous editions, all code is easy to understand, reflects modern best practices, and is specifically designed to help jumpstart your projects.   Volume I quickly brings you up-to-speed on Java SE 7 core language enhancements, including the diamond operator, improved resource handling, and catching of multiple exceptions. All of the code examples have been updated to reflect these enhancements, and complete descriptions of new SE 7 features are...

Java, Sixth Edition: A Beginner's Guide

Java, Sixth Edition: A Beginner's Guide
by Herbert Schildt (Author)


Essential Java Programming Skills--Made Easy! Fully updated for Java Platform, Standard Edition 8 (Java SE 8), Java: A Beginner's Guide, Sixth Edition gets you started programming in Java right away. Bestselling programming author Herb Schildt begins with the basics, such as how to create, compile, and run a Java program. He then moves on to the keywords, syntax, and constructs that form the core of the Java language. This Oracle Press resource also covers some of Java's more advanced features, including multithreaded programming, generics, and Swing. Of course, new Java SE 8 features such as lambda expressions and default interface methods are described. An introduction to JavaFX, Java's newest GUI, concludes this step-by-step tutorial. Designed for Easy Learning: Key Skills & Concepts...

© 2014 BrightSurf.com