VB.NET Core Classes in a Nutshell
by Budi Kurniawan
, Ted Neward
Generics in J2SE 5.0
Publish Date: Jul. 6, 2005
Generics are one of the most prominent language features in J2SE 5.0, but are you using them yet? Properly used, they allow greater flexibility, compile-time type safety, and fewer annoying and potentially unsafe casts. In this article, Budi Kurniawan shows how they work.
Page Navigation in JavaServer Faces
Publish Date: Oct. 29, 2003
Any web application with more than one page needs some sort of navigation. Where does the user go when he logs in? Where does he go if his password is incorrect? JSF provides an easy-to-update page navigation model in its Application Configuration file. Budi Kurniawan explains how it works.
Using the Singleton Pattern
Publish Date: Aug. 27, 2003
Some classes need only a few instances, or only one. The Singleton pattern helps limit the number of active objects of a class. Budi Kurniawan demonstrates how Tomcat uses Singletons to manage resources.
Introducing JavaServer Faces
Publish Date: Jul. 30, 2003
JavaServer Faces, or JSF, is heralded as the next step in server-side programming. It promises to make your life easier, your programs more maintainable, and maybe even your job more enjoyable. Budi Kurniawan demonstrates JSF, explaining why it's useful and if it lives up to its promises.
How Servlet Containers Work
Publish Date: May. 14, 2003
Having explained how a Java web server works, Budi Kurniawan next turns his attention to explaining how servlet containers. He presents two examples that handle simple servlets and static content.
How Java Web Servers Work
Publish Date: Apr. 23, 2003
At the heart, web servers are really very simple. If you can set up a socket connection and parse some headers, you're well on the way to writing your own mini web server. Though Apache and Tomcat are already stable, mature, and featureful, you may find yourself curious as to how they work--or interested in something a little smaller and easier to embed. In this article, Budi Kurniawan demonstrates a basic Java web server.
Surviving Abrupt Shutdown
Publish Date: Mar. 26, 2003
Sometimes letting users save their data isn't enough--you want to make prevent data loss.
Java provides an elegant way for programmers
to execute code in the middle of the shutdown process, thus making sure your
clean-up code is always executed. In this article, Budi Kurniawan shows how to
use a shutdown hook to guarantee that clean-up code is always run, regardless
of how the user terminates the application.
Making Java Objects Comparable
Publish Date: Mar. 12, 2003
Sometimes how objects relate to each other is as important as the existence of the objects. There's no single way to compare them--a Person might be sorted by age, name, or position in a queue.
In this article, Budi Kurniawan demonstrates how to make your objects comparable and sortable with java.util.Comparator and java.lang.Comparable.
Using the Decorator Pattern
Publish Date: Feb. 5, 2003
Inheritance is one way to modify the behavior of an existing class, but it's not always appropriate. The Decorator pattern often lets you accomplish the same goal by writing much less code. In this article, Budi Kurniawan shows how to use the Decorator pattern with Swing.
Publish Date: Jan. 15, 2003
Apache's JMeter is a Java-based tool for load
testing client-server applications. Budi Kurniawan demonstrates how to use JMeter to test the performance of your Web applications.
VB.NET OOP Part 4: Determining Constructors
Publish Date: Nov. 25, 2002
We all know that constructors can be used to initialize values. But did you know that you can use determining constructors to "shape" the objects of a class? In this OOP series article, Budi Kurniawan shows what a determining constructor is and why it is sometimes imperative to have one.
Working with ListView
Publish Date: Oct. 28, 2002
Conventionally, you use the ListBox or ComboBox controls to display a collection of
items in a Windows program. However, if you want more flexibility and capability, you
can use the ListView control. The ListView control looks exactly like the right pane in
your Windows Explorer, and you can display items in one of four views. Each item is
represented by the ListViewItem class. This article is a technical how-to on ListView and
ListViewItem and offers three examples on how to use ListView.
Using .NET Sockets
Publish Date: Oct. 21, 2002
Writing programs that access the network used to be a relatively difficult task. With .NET, this is no longer the case. This article shows how to use the Socket class in a .NET client application.
C# News Ticker Multithreaded Application
Publish Date: Oct. 14, 2002
Writing multithreaded applications is one of the more advanced topics in computer
programming. Fortunately, the .NET Framework makes it a piece of cake by hiding the
complexity in the classes in the System.Threading framework. This article shows you
how to create a news ticker by using .NET's Threading and Synchronization Classes.
Introduction to OOP in VB.NET
Publish Date: Sep. 23, 2002
With VB.NET, Visual Basic is, for the first time, an object-oriented language. Why did Microsoft makes the switch to OOP? Why is OOP superior? And why is it so hard to learn, even for experienced procedural programmers?
© 2014, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.