if(count <= 90) {
letter = char(65+counter);
if(letter == 'A' || letter == 'E' || letter == 'I' ||
letter == 'O' || letter == 'U') {
fill(204, 204, 0);
} else {
fill(255);
}
} else {
fill(153);
letter = char(48+counter);
}
Thursday, December 1, 2011
Processing.js Horror
Processing.js reminds me of RPG code. The fill() function in the code below is a mystery. fill() offers no hint of what context the fill is to apply to. By running the code, one can see that the fill does indeed apply to the letter. It appears that fill() can be called either before or after the letter is created but who can be sure? In this code, a letter is created and the fill is defined but we never see how the two are brought together. Object oriented development avoids this problem.
Past Blogs (Oldest to Newest)
- MySQL Quickstart
- Simple JUnit Example
- ANT's JavaDoc Task
- HSQLDB Console
- Elements of OO
- Variations on AS400 JDBC
- FTP Script
- Log4J Logs in DB/2
- Rhino Scripting in Java
- CSV Bulk Import
- JMock
- Internet Alphabet Soup
- Green Screen HTML Style
- Another Example - Yourself
- Groovy Script for AS400 Data
- Coad Interview of Jefferies
- More Scripting With Rhino
- Scripting With Objects
- Old School OO
- AS400 SYSPROCS
- Big Picture and Broken Windows
- Unheard Of! SQL on the AS400
- Behavioral Differences Between HashMap and TreeMap
- Sixty Second Rails
- Plum Pudding Model
- Impacting the Business
- CheatSheets
- Domain Modeling with Color?
- Maven Lifecycle and Examples
- Tomcat Basics
- Fitnesse How-To
- Ant's JAR Task
- Learning Tests for Java Dates
- Quickstart MySQL App With Maven
- Closures in Groovy
- Cohesion and Coupling
- Java Generics
- Groovy Script for Lucene
- Solient Green (and Architecture) is People
- Feeling Guilty?
- Subversion and Cruise Control
- Debugging RPG Called From JDBC
- The Value of Methodology
- Wicket in Action Quickstart
- Liquibase
- Inappropriate Infrastructure
- Idiomatic Ruby
- JRuby and Jetty