How do write Nice applets

If you program in Java for fun or profit, you probably miss modern software engineering tools, like functional programming, design by contract, type inference, pattern match, etc. Functional programming, for instance, allows you to define methods whose arguments are functions, and use the full power of mathematics to solve problems. Type inference will make your programs more reliable and clean, because it will free you from adding type annotations to your methods. Design by contract will make testing and debugging easier. Finally, a compiler that deals with whole folders increases the modularity of software systems, and makes group work possible and efficient. Nice is a computer language transparent to Java that brings to the Java World all these achievements of modern software engineering. It is true that there are other langauges that offer you all the foresaid tools. However, Nice is the only one fully integrated with Java, and transparent to Java programming environments. The use of Nice brings you the benefits of new and powerful productivity technologies, without losing contact with the rich Java environment.

The Nice programming language

To communicate with a computer, you need a computer language. As I said in my tutorial about Clean, there are boring computer languages and there are thrilling ones. Many computer languages are boring because when you use them to program a computer, it becomes very slow. There are also languages that are boring because they do not present a challenge to your brain: You do not learn or do anything interesting while programming. To put it simply, languages of this kind aren't fun or engaging. As for Nice, it allows you to use powerful concepts from Mathematics and Logics, increases your productivity, and makes you heir to every programming tool that Sun's money can buy for Java. You can download the Nice compiler from its Sourceforge project page:

http://nice.sourceforge.net/install.html

Here is a tutorial where you will learn to design and implement applets in Nice:

A Nice Tutorial

You can download the examples from here, so you won't need to re-type them. There are also examples of applications with a graphic user interface that you can run locally. The examples are zipped. In order to unzip them, if you are using Wintel, you may want a coppy of the unzip.exe tool.

A clock applet

A useful thing you will learn from A Nice Tutorial is how to write a timekeeping applet. To show that it is running in your machine, it will display the local time.


Last updated: Jan/04/2009

You are visitor number:

Gift Hampers
Gift Hampers