Eric's Computer Code
|
Intro
This is some of the code I have written over the years. I have written my code for a number of reasons. Mostly the code was class or work driven. However my Java code was inspired by my desire to learn Java, a wonderfull language I am still fighting to get working on my mac. I doubt anyone will use any of my code in any sort of commercial application, but I would like to expressly state that anyone who wants to should contact me. I don't care if anyone uses it in a GPL or LGPL program. To learn more about
GPL or
Open Source , click the links.
|
Java
|
These are my Java Applets. Please note that these applets are
written in Java 1.0, that is the Java version I am currently
learning. Don't ask why I didn't learn v1.2 (yes, it was available), it is a long
story.LEGAL NOTICE: All code here is protected by the copyright
laws of the United States of America. Any use, without express written
consent of the author, for commercial or profit gaining venture is
strictly illegal. In other words you may use this code for your own
enjoyment but don't sell it. All page numbers refer to "Teach
Yourself JAVA For Macintosh in 21 days" by Laura Lemay and Charles L.
Perkins with Timothy Webster.
- Simple Lamp Drawing
This is a really simple applet that I got form my "Learn Java in 21
days book". It basically illustrates how different shapes can be used to
do simple line drawings.
- Colorfull
Boxes
This is another simple applet. It draws many boxes and then fills
them with color. This is another book example, combined with some
basic interactivity. To Use: Every time the mouse is clicked
the boxes are redrawn with different colors.
- Simple Lines
This is a simple line drawing class. It uses a method to extend the
arrays used to hold the points of the lines. To Use: Click in
the
white drawing area, drag the mouse, let go to place the line.
- Simple Spots
This is a simple drawing applet, except with spots instead of lines.
Again it uses my copyrighted extendarray method (grin, this is before I found out about vectors), it also will draw
spots when the mouse is held down. I would have used double buffering
except clipping handled the flicker so well.
To Use: Click on the screen or click and drag to place little blue
dots.
- Color Clock
This is a clock applet that changes color as time passes. I am fairly proud of this one. It uses double buffering and some other cool stuff.
|
C / C++
|
More to come.
|
Perl
|
I was motivated to learn Perl through work and I have enjoyed it very much. Perl is a great language for many tasks. I have also enjoyed learning CGI with Perl. The use of the CGI.pm makes it great for doing interactive web pages. I am also learning SQL, which makes a great partner with Perl for dynamic web content.
- Perl Library
This is my library file of usefull perl functions. Some are rather ugly, such as making a "system ls" rather than using "readdir". This is a reflection of the fact that I had to start programming Perl before I read the entire Perl book, and I still am reading (the cookbook too)!
- Perl Template
This is for my benefit mostly. I usually code in a particular way, with comments and checking for arguments, sub routine placements, debug variable, etc. And I got tired of doing it from scratch, or rather of copying the last script and cutting out almost everything. So here is a little template if anyone is interested in my rather anal programming style.
|
|