Programmer Poetry

People tell me why am I acting weird at times. But weird in what sense? Yes, it ain’t the weirdo kind of weird, but the unique kind of weird which makes me special. As a matter of fact, everyone of us is special. Just how one defines it though. Here’s a programmer poetry for your leisure read.

Just have to look at what I’ve been doing for the past 10 minutes, writing nonsense, but then to programmer newbies, this is the way to start learning some OOP (Object Oriented Programming) concepts for your future. Yes,

Programmer Poetry in Java

waiting for flowers

/* Hello this is me Daniel here
and I am going to write a program
on This day */

public class Daniel {

private static
String gender;
private String codeLanguage;
private String textName;

public static void main(String[] args) {

doDaniel();
System.exit(0);

}

public static void doDaniel() {

Daniel daniel = new Daniel();
/* This part of the code does the checkGender for Daniel */
checkGender();
/* Tries to print something which is set to a bean */
System.out.println(“Daniel is a “ + daniel.getGender() + ” obviously!”);

/**
* Now you’ve seen it, it doesn’t really needs a direct assigned variable to
* get the value.
* This is one important part of OOP programming.
* The life of Daniel when he is too free
* 14th August 2008, written in less than 10 minutes
* https://danielctw.com
* Email me at me@danielctw.com if face any issues
*
* Have created other variables for you to play, this program was tested
* and runs as it is. Copy paste the whole thing and start playing with codes
*
*/

/* Other codes not fully done yet */

}

public static void checkGender() {

setGender(“Male”);

}

public String getGender() {
return gender;
}

public static void setGender(String gender) {
Daniel.gender = gender;
}

public String getCodeLanguage() {
return codeLanguage;
}

public void setCodeLanguage(String codeLanguage) {
this.codeLanguage = codeLanguage;
}

public String getTextName() {
return textName;
}

public void setTextName(String textName) {
this.textName = textName;
}

}

I guessed by now I think people think I am crazy already writing this in the middle of the night at 2am. I think that makes me ME

16 Comments

  1. PP August 14, 2008
  2. louyea August 14, 2008
  3. danielctw August 14, 2008
  4. Hannah August 14, 2008
  5. TZ August 14, 2008
  6. danielctw August 15, 2008
  7. PP August 15, 2008
  8. danielctw August 15, 2008
  9. YoungBrat August 15, 2008
  10. David August 16, 2008
  11. danielctw August 16, 2008
  12. Jane August 16, 2008
  13. PP August 18, 2008
  14. kenwooi August 19, 2008
  15. danielctw August 19, 2008
  16. PP August 19, 2008

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.