Friday, April 10, 2009

Using the Java Assignment Operator

In Java the assignment operator is denoted by the equals sign (=). Its function is indicated by its name. It assigns the value shown to the right of the = sign to that which lies to the left of the sign. The About.com: Java site page titled Assignment Operator explains this with examples.

Here's are examples of my own:

String idAdvocate = "William Dembski"

boolean isDesigned = true

Labels:

Tuesday, April 07, 2009

Object Parallels

What is an Object is part of Sun's The Java Tutorials. This particular tutorial begins by noting parallels between programming objects and objects from the physical world. Two characteristics of objects from the "real world" are noted- their state and their behavior. As is the case in object-oriented programming, objects can contain other objects.

Consider an object called the New York Yankees. The state of this object would include 25 active roster players, an Eastern Division grouping, a Yankee Stadium home field and more. Behavior could include statistical performances of players, standings within the division and dates of home field games. The behaviors would vary during a season and from season to season. Standings in April could differ from June and batting averages vary from day to day. Rainouts could alter scheduling during the season and schedules would vary from year to year.

Associated with states and behavior of programming objects are variables or fields for the former and methods or functions for the latter. States of an object are stored in variables or fields and methods or functions reveal behavior.

It is noted in the tutorial that object oriented programming features data encapsulation as a fundamental principle. Data encapsulation enables a hidden internal state requiring interaction performed through an object's methods or functions.

Labels:

Saturday, April 04, 2009

Greatness as God Sees It

Our Daily Bread features a piece titled Humility and Greatness Quoting:

True greatness is shown by humility, not pride. This was powerfully demonstrated and taught by Jesus Christ, who told His ambitious disciples: “Whoever desires to become great among you, let him be your servant. And whoever desires to be first among you, let him be your slave— just as the Son of Man did not come to be served, but to serve, and to give His life a ransom for many” (Matt. 20:26-28).


Desire for greatness is common but Christ puts greatness in a different light. God after all is the ultimate arbiter of greatness. In God's eyes he who serves shows greatness. Short bits of poetry are characteristic of Our Daily Bread and this one came with this particular daily entry:

True greatness does not lie with those
Who strive for worldly fame,
It lies instead with those who choose
To serve in Jesus’ name. —D. De Haan

Labels:

The HTML Meta Tag

If you have a commercial website or even a non-commercial blog you probably want to maximize the possibilities that someone using a search engine will find what you publish. That is where the HTML meta tag can be helpful. Enclosed within the greater than and less than symbols the meta tag enables one to note keywords, a description of the webpage and the author's name.1

Reference:

1. HTML in 10 Minutes; Copyright 2006 by Sams Publishing; Lesson 3, Page 28.

Labels: