<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-19135575</id><updated>2024-03-13T19:59:22.934-04:00</updated><category term="analysis"/><category term="design"/><category term="system"/><title type='text'>Concise Coding</title><subtitle type='html'>A website devoted to computer programming.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19135575.post-6651956990930447299</id><published>2009-01-20T19:04:00.001-05:00</published><updated>2009-01-20T19:04:54.754-05:00</updated><title type='text'></title><content type='html'>http://www.bloglines.com/topblogs&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/6651956990930447299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2009/01/httpwww.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/6651956990930447299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/6651956990930447299'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2009/01/httpwww.html' title=''/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-7303057125675327268</id><published>2007-03-10T16:03:00.000-05:00</published><updated>2007-03-10T16:04:15.195-05:00</updated><title type='text'>Blog spam</title><content type='html'>Sigh.. I&#39;ve beem spammed!! &lt;br /&gt;I&#39;m working on cleaning up the spam in my blog.  Also, i&#39;ve been really busy this past year. But i will come back and update this blog soon!&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/7303057125675327268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2007/03/blog-spam.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/7303057125675327268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/7303057125675327268'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2007/03/blog-spam.html' title='Blog spam'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113726665014135862</id><published>2006-01-14T14:23:00.001-05:00</published><updated>2009-01-20T19:04:02.028-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="design"/><category scheme="http://www.blogger.com/atom/ns#" term="system"/><title type='text'>Tip #4: Systems Analysis and Design</title><content type='html'>The initial design of a system can make or break your business.&lt;br /&gt;I am currently in the middle of developing an online textbook/classified system to be used by university and college students.  &lt;a href=&quot;http://www.texttrade.ca/&quot;&gt;Click here &lt;/a&gt; see a basic sample page.&lt;br /&gt;&lt;br /&gt;Taking the RAD (Rapid Application development) approach to design, I set out certain milestones that i wanted to meet on a timely manor. &lt;br /&gt;&lt;br /&gt;1.Setting up a log In system.&lt;br /&gt;2.Setting up an add book / search book system&lt;br /&gt;3.Creating some other features&lt;br /&gt;4.Scale the system for use locally, provincially, nationally&lt;br /&gt;&lt;br /&gt;Unfortunatly, what started out as a small system has cascaded into a large scale project taking more time then I had originally thought and pushing back milestones. &lt;br /&gt;&gt;&lt;br /&gt;&lt;b&gt;Where did I go wrong?&lt;/b&gt;&lt;br /&gt;What I wanted from the system, and what I was designing were totally two different things.  I wanted a perfect system where every section came together and worked and didn&#39;t interfere with other systems.  I was designing the system not as a whole but in parts forgetting about the interaction between the parts.&lt;br /&gt;&lt;br /&gt;I&#39;ve learned alot developing this system and would like to share with you the most important tip!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TIP 1: Analysis, Analysis, ANALYSIS!&lt;/b&gt;&lt;br /&gt;Sit down and thouroughly analysis your system.&lt;br /&gt;Brainstorm all the non-functional requirements (System expectations, features you wish to implement, but nothing about the design or the technical aspects).&lt;br /&gt;&lt;br /&gt;Once you have tabulated a list that you feel comfortable with, then develop a design that you wish to acheive.  Remember, nothing is done on the computer yet.  Create relationships between different parts of the system and try to create on paper a well planned out database design (&lt;b&gt;Database tips coming soon&lt;/b&gt;).&lt;br /&gt;&lt;br /&gt;This done, create on paper a UI, some general sketches to how the system should look.&lt;br /&gt;&lt;br /&gt;Finally, once your have the system created in words and drawings.  Analysis it again, make sure you have everything you want to do covered. If you are missing something, reevaluate each step illustrated here, until you are 100 percent satisfied.&lt;br /&gt;&lt;br /&gt;If you take this tip into practice.  You will have a larger success rate of reaching those milestones.&lt;br /&gt;&lt;br /&gt;Thanks, graham.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113726665014135862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2006/01/tip-4-systems-analysis-and-design.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113726665014135862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113726665014135862'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2006/01/tip-4-systems-analysis-and-design.html' title='Tip #4: Systems Analysis and Design'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113641777310520478</id><published>2006-01-04T18:24:00.000-05:00</published><updated>2006-01-04T18:36:13.376-05:00</updated><title type='text'>The New Year</title><content type='html'>The holidays have come and gone, and now its back to work for me.&lt;br /&gt;&lt;br /&gt;In the coming weeks I will be looking at Algorithms as well ass good Algorithm design.  So very shortly I will be writing this article.&lt;br /&gt;&lt;br /&gt;I will also be looking at Database development.  I have spent alot of time in the development of databases.  In an ongoing project to create a well optimized and expandable database, I have tabulated a few helpful tips to be written in an article. &lt;br /&gt;&lt;br /&gt;So, come back often!  &lt;br /&gt;&lt;br /&gt;Cheers, Graham.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113641777310520478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2006/01/new-year.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113641777310520478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113641777310520478'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2006/01/new-year.html' title='The New Year'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113458237571433991</id><published>2005-12-14T12:45:00.000-05:00</published><updated>2005-12-14T12:48:08.640-05:00</updated><title type='text'>MacMedia News Article</title><content type='html'>Recently an article I wrote for my University Newspaper (&lt;a href=&quot;http://www.macmediamagazine.com&quot;&gt;MacMedia&lt;/a&gt;) was published.&lt;br /&gt;Take a read, it&#39;s a light hearted look into the wish list of a geek.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;TALK NERDY TO ME&lt;br /&gt;- By Graham McCarthy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MAC Media is an awesome newspaper. Every month great readers (like YOU!) submit wonderful stories, sometimes so hilarious I pee myself laughing, sometimes so shocking and disturbing that I have nightmares, but never NERDY.&lt;br /&gt;Today, I change history by writing for all those geeks who never get to speak their mind (possibly because they are too engrossed in World of Warcraft, Lineage II, and all those other MMORPGs out there). Wanted or not, I shall do this for them!&lt;br /&gt;As my first article and sticking to the Christmas theme, I have tabulated a “What a Nerd Needs for Christmas” list. I hope you enjoy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WHAT A NERD NEEDS FOR CHRISTMAS (2005 edition)&lt;br /&gt;&lt;br /&gt;Video iPod.&lt;br /&gt;When I said “needs” I definitely meant “wants”. 30gigs of storage space (at least), and the ability to play music/movies as well as store photos has definitely gotten every tech junky drooling over this. It’s a great gift for that geek on your list and with a price tag of $379.00, you’ll have that geek indebted into fixing any computer problem for life!&lt;br /&gt;&lt;br /&gt;Caffeinated Soap.&lt;br /&gt;Caffeinated soap solves two major problems geeks face; Sleep deprivation and showering. You could definitely purchase one of those energy drinks (like Red Bull or Bawls) and they would give you the necessary energy to level up that Paladin, but it won’t get you clean, in fact it might add to the problem. 1 Bar $6.99 (USD).&lt;br /&gt;&lt;br /&gt;Not an XBOX 360.&lt;br /&gt;I say that with a heavy heart, I am an avid fan of new technology, especially one that makes The Master Chief look so damn sexy! But, a true geek would have a lot more fun tricking out his first gen Xbox or PS2. Gino’s mod Honda Civics, geeks mod game systems, this is our Fast and the Furious. A modded XBOX won’t graphically look like an XBOX 360, but it will perform all the same functions, additionally you can throw some flashy under lighting LED’s to totally impress the ladies. You can get one for about $100.00, but the memories to be had, priceless.&lt;br /&gt;&lt;br /&gt;Binary Clock.&lt;br /&gt;&lt;br /&gt;Personally, I’ve wanted one of these things for the past 3 years. It serves no functional purpose except make it even harder to read a clock. But if you are looking to impress other geeks in an epic “out-geek-a-thon” like I do, you’ll need to add one of these to your arsenal. The Binary clock sells for around $30 (USD).&lt;br /&gt;&lt;br /&gt;Well, that’s all a geek really needs this holiday season. Anything else would be just going overboard. Happy holidays everyone!&lt;br /&gt;&lt;/em&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113458237571433991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/12/macmedia-news-article.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113458237571433991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113458237571433991'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/12/macmedia-news-article.html' title='MacMedia News Article'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113413985510309449</id><published>2005-12-09T09:48:00.000-05:00</published><updated>2005-12-09T09:50:55.256-05:00</updated><title type='text'>Sorry for the delay...</title><content type='html'>Hey everyone,&lt;br /&gt;&lt;br /&gt;  Sorry for the delay in my daily updates, I am currently spending way to much of my time studying!   I recently finished the hardest of all my exams, my Math exam on sets and logic,  It was difficult, but I feel very confident about it.&lt;br /&gt;&lt;br /&gt;  Today, I have my Canadian Policy exam, which will be hard, but its not worth that much.  Once I get these out of the way, i&#39;ll be right back in there with some coding tips, and some neat examples!&lt;br /&gt;&lt;br /&gt;   Thanks!.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113413985510309449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/12/sorry-for-delay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113413985510309449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113413985510309449'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/12/sorry-for-delay.html' title='Sorry for the delay...'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113280342705462474</id><published>2005-11-23T22:12:00.000-05:00</published><updated>2005-11-24T11:52:22.986-05:00</updated><title type='text'>Tips #3 : Conditional Statements</title><content type='html'>Today&#39;s tip will be really quick, lets talk conditional statements.&lt;br /&gt;&lt;br /&gt;A neat suggestion was posted as a comment on my last article, suggesting a really good way to prevent logic errors from creeping into your code. Logic errors being the hardest type of errors to find in your code.&lt;br /&gt;&lt;br /&gt;If presented with an if statement:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;if(num == 0)&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;//do something.&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Now, if you forgot to put the double equals in the condition like:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;if(num = 0)&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;//Do something&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;An error like that might not be catched, the suggestion put forward was to declare the constant first, and then the variable after like :&lt;br /&gt;&lt;em&gt;&lt;strong&gt;if(0 == num) {}&lt;/strong&gt;&lt;/em&gt; , this way if you forget one of the equals, the compiler will be sure to catch it.&lt;br /&gt;&lt;br /&gt;You can take this step one further, by declaring the 0 as a constant, like this:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;public final int ZERO = 0;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;if(ZERO == num);&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;This just takes your code that 1 extra step to insure good coding practices.&lt;br /&gt;&lt;br /&gt;Thank you Jeff, for that great tip!&lt;br /&gt;&lt;br /&gt;Lets continue,&lt;br /&gt;Since white space is never compiled into your program, you should never worry about making your code extra readible with space. A lot of the code that I have tested, has been really hard to traverse through because the authors don&#39;t leave enough white space between actions, let me demonstrate:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;public class MyTestClass{ &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;public final int SIZE = 5;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;public static void main(String [] args){&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;for (int i = 0; i&lt;&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;public doJob() {&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;for (int i=0; i&lt;size;&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;if (i%2 == 0)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;System.out.println(&quot;number: &quot; i);}}}&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/em&gt;Confused? Frustrated? Good!&lt;br /&gt;Make your code clear to read; the clearer the code, the easier it is to find errors later.&lt;br /&gt;And also dont forget to add comments!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;//MyTestClass.java Author: Graham.&lt;br /&gt;//Desc: Prints out numbers, then the even numbers&lt;br /&gt;public class MyTestClass&lt;br /&gt;{&lt;br /&gt;___//Variables&lt;br /&gt;___public final int SIZE = 5;&lt;br /&gt;&lt;br /&gt;___//Main Method, prints numbers o - 4, then runs doJob() method&lt;br /&gt;___public static void main(String [] args)&lt;br /&gt;___{&lt;br /&gt;_____for (int i = 0; i (LESS THAN) SIZE; i++)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;_____{&lt;br /&gt;_______System.out.println(&quot;number: &quot; + i);&lt;br /&gt;_____}&lt;br /&gt;____doJob();&lt;br /&gt;___} //End Main&lt;br /&gt;&lt;br /&gt;___public doJob()&lt;br /&gt;___{&lt;br /&gt;_____for (int i=0; i&lt;size;&gt; (LESSTHAN) SIZE ; i++&lt;/strong&gt;&lt;br /&gt;&lt;/em&gt;&lt;strong&gt;&lt;em&gt;_____{&lt;br /&gt;_______if (i%2 == 0)&lt;br /&gt;_______System.out.println(&quot;number: &quot; i);&lt;br /&gt;_____}&lt;br /&gt;___}//End doJob&lt;br /&gt;} //END Class&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;NOTE: Instead of LESSTHAN you&#39;d obviously put in the symbol, which for some reason Blogger won&#39;t let me write.&lt;br /&gt;&lt;br /&gt;Now, if I was going to critique my own code here, I would say that the method doJob() is pretty ambiguous, I should have called it countEvenNumbers().&lt;br /&gt;&lt;br /&gt;Hope you have found this article useful! Thanks you.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113280342705462474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-3-conditional-statements.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113280342705462474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113280342705462474'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-3-conditional-statements.html' title='Tips #3 : Conditional Statements'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113270195820773321</id><published>2005-11-22T17:20:00.000-05:00</published><updated>2005-11-22T18:25:58.326-05:00</updated><title type='text'>Tips #2 : Variable Naming.</title><content type='html'>The next fundamental programming tip I can offer you is naming your variables appropriately.  I find that a majority of logic or compile errors are caused by a misuse of variable names.&lt;br /&gt;&lt;br /&gt;Here are some examples of bad naming conventions:&lt;br /&gt;1. dim newvalue as Integer&lt;br /&gt;2. int x = 0;&lt;br /&gt;3. JLabel label1 = new JLabel();&lt;br /&gt;&lt;br /&gt;Sure, laid out here, it is pretty easy to recognize what each variable does, but in a simple program of at least 500 lines of code it can prove rather difficult to track these variables.&lt;br /&gt;&lt;br /&gt;Here are some suggestions.&lt;br /&gt;&lt;br /&gt;In the first case, think about what newvalue represents. We know it is an integer but what is it used for?  If it is a counter for a while loop, then how about doing this instead,&lt;br /&gt;     dim iCount as Integer&lt;br /&gt;It is quite clear that this variable is of type interger and will be used as a counter.&lt;br /&gt;The second example is sort of the same situation.  A lot of the times one letter variables are declared in C++ and Java, for mathmatical algorithm or for loop statements.  In those cases I feel it is perfectly good coding structure to use these variables as is.  If this variable was to refer to a randomly produced interger used in a lottery machine, then the use of x as that variable name proves quite ambiguous.&lt;br /&gt;In the third case JLabel label1 = new JLabel(); in this case, you should be more descriptive as to what label1 points to, either what sort of information is produced from this label, or where it is located. &lt;br /&gt;If this label was created as the title of a program, then I would call it JLabel lblTitle = new JLabel();  If it refered to a name of a person I would declare it as  JLabel lblName = new JLabel();&lt;br /&gt;&lt;br /&gt;Pretty straight forward, and these little tips will definitly help you efficently test your code.&lt;br /&gt;&lt;br /&gt;Also, before I forget, a few quick tips on composing your variables.&lt;br /&gt;Hungarian notation is one of the most common format styles.&lt;br /&gt;iNum = an integer value&lt;br /&gt;dNum = a decimal value&lt;br /&gt;sName = a string value&lt;br /&gt;btnSubmit = a button&lt;br /&gt;lblStudentAverage = a label&lt;br /&gt;as Shown above, use the first initial of your variable to represent what data type it is. here are a few other examples&lt;br /&gt;obj -&gt; Object&lt;br /&gt;arr -&gt; Array&lt;br /&gt;txt -&gt; Text Box&lt;br /&gt;cbx -&gt; Combo Box&lt;br /&gt;&lt;br /&gt;There you go, If you have any questions or comments, feel free to leave me comments.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113270195820773321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-2-variable-naming.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113270195820773321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113270195820773321'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-2-variable-naming.html' title='Tips #2 : Variable Naming.'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113258728197656933</id><published>2005-11-21T10:34:00.000-05:00</published><updated>2005-12-10T10:50:22.866-05:00</updated><title type='text'>Tips #1 : Commenting</title><content type='html'>&lt;p&gt;I&#39;ve spent the past couple of days learning a new computer language, PHP. I&#39;m currently in the process of developing an online management system, and after a careful anaylsis PHP seemed to be the right language to develop with.&lt;/p&gt;&lt;p&gt;So I have been going through some tutorials and looking at lots of coding examples. As a pretty experianced programmer, I am still having a hard time understanding some code developed by other people.&lt;/p&gt;&lt;p&gt;Which leads me to the first tip in this series.&lt;/p&gt;&lt;p&gt;The following coding tip is very straight forward, but ESSENTIAL to keeping you effective in the Information Technology Industry, especially when working in a team enviroment.&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;Comment your code:&lt;/strong&gt;&lt;br /&gt;If anyone is going to be reviewing your code at any point in time, you should always leave appropriate commets to help guide them. Here is how I structure my commenting, lets use JAVA for this example&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;/////////////////////////////////////////&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;// Title of Program Author Name&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;// Date of creation&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;//&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;//Breif description of the program&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;/////////////////////////////////////////&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;public class TestClass&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;{&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;strong&gt;//&lt;/strong&gt;Variables&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;protected int iCounter; &lt;strong&gt;Here is where you would list all your global variables&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;//Methods &lt;strong&gt;List all the methods after this for good programing structure&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;////////////////////&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;// main(String args [])&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;// Do: What is the main function of this method &lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;// Input: What is brought into the method&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;// Returns: What the method returns &lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;public static void main(String args[])&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;{&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;//&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;}//End main Method--&gt; &lt;strong&gt;Keep track of your end braces with a small comment&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;}// EndTestClass&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;Commenting while you program does not take a lot of time, and it will definitly pay off for you later, when you try to review some comple code.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Thanks for checking out my tip! come back soon for another one, or leave a comment if you want me to cover a certain topic.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113258728197656933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-1-commenting.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113258728197656933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113258728197656933'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/11/tips-1-commenting.html' title='Tips #1 : Commenting'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113245884286202704</id><published>2005-11-19T22:00:00.000-05:00</published><updated>2005-11-19T22:57:52.626-05:00</updated><title type='text'>Concise Coding.</title><content type='html'>As the name of my journal suggests, I will be using this space to provide programmers of all expertise with tips to create good quality code as quickly as possible.&lt;br /&gt;&lt;br /&gt;In an Industry which changes rapidly, the ability to be an effective team member and adapt to the changing technologies is extremly important. It can quite possibly reflect a programmers security in the company with which he is apart.&lt;br /&gt;&lt;br /&gt;So come back soon, and hopefully I will have some tips for you to better your skills.&lt;br /&gt;&lt;br /&gt;Post a comment with questions if you wish for me to address any issues in particular&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113245884286202704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/11/concise-coding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113245884286202704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113245884286202704'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/11/concise-coding.html' title='Concise Coding.'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19135575.post-113244721679629486</id><published>2005-11-19T19:39:00.000-05:00</published><updated>2005-11-19T19:40:16.803-05:00</updated><title type='text'>The first Post</title><content type='html'>I&#39;m just getting things set up here.  Come back soon for some programming tips.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-8191248959097800&quot;;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = &quot;728x90_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;&quot;;
google_color_border = &quot;000000&quot;;
google_color_bg = &quot;F0F0F0&quot;;
google_color_link = &quot;0000FF&quot;;
google_color_url = &quot;008000&quot;;
google_color_text = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://concisecoding.blogspot.com/feeds/113244721679629486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://concisecoding.blogspot.com/2005/11/first-post.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113244721679629486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19135575/posts/default/113244721679629486'/><link rel='alternate' type='text/html' href='http://concisecoding.blogspot.com/2005/11/first-post.html' title='The first Post'/><author><name>Graham</name><uri>http://www.blogger.com/profile/05397789876898469595</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_gX0TG5eznw8/SThIb2rxOmI/AAAAAAAAAAM/18LymiGBjdo/S220/Graham-solo-IUG.png'/></author><thr:total>2</thr:total></entry></feed>