Spontaneous Publicity
blogs are the new phone book

Code I Almost Wrote

January 23, 2009 12:17 by Luke

The only thing scarier than the code I actually write is the code I thought of and decided not to write. Actually, that is not true. The code I write is always perfect. Until I decide to change it later and make it more perfect.

duh Today I was writing a small console app which I wanted to run indefinitely until the user decides they would like to close it. This posed quite a challenge. Should I stop every 1000 iterations and check if the user has indicated they would like to stop processing? Should this be a windows app so I can have a stop button?

No, I should just run indefinitely and if they user wants the program to terminate, they will close the console window. So simple. My mind really wanted to complicate this one.


Tags:
Categories:
Actions: E-mail | del.icio.us | Permalink | Comments (44) | Comment RSSRSS comment feed

Comments

July 28. 2010 21:08

natural cures for bacterial vaginosis

This is actually the 2nd moment I've run into your webblog within the last couple weeks.  Appears like I should bookmark it.

natural cures for bacterial vaginosis

August 1. 2010 21:24

Montblanc pens

I have get a lot of useful information and fresh knowledge in your website.

Montblanc pens

August 6. 2010 08:39

cheap nickelback tickets

Great post and now I know what to do, thank you! Actually this Blog post helped me a lot. I hope you continue writing about this kind of entry.

cheap nickelback tickets

August 7. 2010 08:11

0 Credit Cards

Howdy. Crucial career. I did not expect this on a Wednesday. That is a wonderful accounts. Presents Thanks!

0 Credit Cards

August 10. 2010 16:09

Bryanna Costella

Wonderful article, a lot of helpful knowledge.

Bryanna Costella

August 15. 2010 14:40

Fleta Corf

I will make sure and bookmark this page and be back to follow you more….

Fleta Corf

August 16. 2010 22:30

usb data transfer cable

I wasn't aware of the many ripples and depth to this story until I surfed here through Google! Great job.

usb data transfer cable

August 17. 2010 02:36

tiffany bangles 320

You are an excellent programmer.Thanks for sharing your insights.

tiffany bangles 320

August 17. 2010 09:24

tiffany lamp

You love to achieve perfection in life that's great attitude to live with !!

tiffany lamp

August 17. 2010 09:28

baseball pitching machines

What's the use of writing this code ?....Why waste your energy on this ?

baseball pitching machines

August 19. 2010 22:30

Broyhill Furniture

Cheers for this post,  it was great to read.

Broyhill Furniture

August 21. 2010 00:21

chanel luggage

a lot of helpful knowledge

chanel luggage

August 21. 2010 15:23

Fat Loss

I think you may be right in what you have said in this post. Whoever there are many people will not agree with your opinion.

Fat Loss

August 22. 2010 23:13

Elliot Yerton

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Elliot Yerton

August 23. 2010 07:42

ed hardy

I think elegant http://www.brandshop.uk.com/  Gucci Handbags you will become the most fashion people in your friend .if you're going to travel, I suggest you wear fitness shoes http://www.comfortoes.com   mbt shoes. The fashion handbags is the essential for fashion, http://www.pursestore.uk.com/  Louis Vuitton Handbags is preferred.

ed hardy

August 25. 2010 08:58

towing company Provo

Good Effort dude.  Wow.. Keep it up !

towing company Provo

August 28. 2010 12:36

Israel Bucolo

do you have an rss feed? I want to add it to my reader but I can't find it...

Israel Bucolo

August 29. 2010 12:22

seduction affiliate

hey, with so many comments you should add an affiliate program to your blog and make some money...

seduction affiliate

August 29. 2010 21:00

student driver sign

I've also been meditating on the similar factor personally recently. Grateful to see somebody on the same wavelength! Nice article.

student driver sign

August 30. 2010 02:37

blonde joke

how can I advertise on your blog?

blonde joke

August 30. 2010 05:44

seduction affiliate

you may make some money if you add an affiliate program to your blog...

seduction affiliate

August 30. 2010 17:34

blonde joke

nice blog! keep the good work!

blonde joke

August 30. 2010 18:43

bail bonds

You lost me, friend. I mean, I suppose I get what youre saying. I recognize what you're saying, but you just appear to have overlooked that there are some other individuals within the world who see this issue for what it definitely is and may not agree with you. You may possibly be turning away a lot of men and women who may have been supporters of your weblog.

bail bonds

August 31. 2010 00:07

payroll company

Hi, I just found your blog via Bing. Your article is truly applicable to my life at this moment, and I’m really happy I found your website.

payroll company

August 31. 2010 02:44

Delbert Turtura

Hey - decent blog, simply looking around a number of blogs, seems a really decent platform you're using. I'm currently using Wordpress for some of my sites but aiming to change one of these over to a platform similar to yours as a trial run. Anything in particular you'd recommend about it?

Delbert Turtura

August 31. 2010 11:15

how to attract girls

great blog! I too have one ob dating and seduction tips for guys...

how to attract girls

August 31. 2010 22:31

overmantle mirrors for sale

Substantially, the post is in reality the greatest on this deserving topic. I concur with your conclusions and also definitely will eagerly look forward to your future updates. Saying thanks can not simply just be adequate, for the exceptional clarity in your writing. I definitely will instantly grab your rss feed to stay abreast of any updates. Pleasant work and also much success in your business dealings!

overmantle mirrors for sale

August 31. 2010 23:44

send flowers to germany

Hey great stuff, thank you for sharing this useful information and i will let know my friends as well.

send flowers to germany

September 1. 2010 01:18

typing tutor

Great post! Looking for a typing tutor? Check out my website.

typing tutor

September 1. 2010 03:05

Baby Gifts, New Baby Gifts

Hi, I just found your website via google. Your post is truly applicable to my life right now, and I’m really happy I found your website.

Baby Gifts, New Baby Gifts

September 1. 2010 03:05

Pathway Genomics

You may possibly be turning away a lot of men and women who may have been supporters of your weblog.

Pathway Genomics

September 1. 2010 20:43

learn to type

Nice job! Looking for a typing tutor online? Check out my website.

learn to type

September 2. 2010 04:40

personal trainer

don't forgot to get out and exercise...

personal trainer

September 2. 2010 07:17

gt5 cheapest price

vivacious

gt5 cheapest price

September 2. 2010 12:48

Content Distribution Network

It looks that you give lots of effort to writing the blog. It is so informative. I am appreciating your hard work. Thanks for the post

Content Distribution Network

September 2. 2010 13:10

red ring of death

Truly i seemed to be obtain alternatives system applications will most certainly be nice for me to shop for. As i actually have Things to do with Fights coupled with Dispatched injury lawyers. how to define beneficial pastimes are usually wonderful console get to live furthermore?

red ring of death

September 2. 2010 13:49

Vera Stoakley

Search engine optimization (SEO) is the process of bettering the visibility of a web site or a web page in search engines via the "natural" or un-paid ("organic" or "algorithmic") search effects. Other patterns of search engine marketing (SEM) target paid listings. In general, the earlier (or higher on the page), and more oftentimes a site comes out in the search results list, the more visitors it will experience from the search engine. SEO may target different kinds of search, including image search, local search, video search and industry-specific vertical search engines. This gives a web site web bearing.

Vera Stoakley

September 2. 2010 16:48

Ulysses Trachsel

great post! i'm bookmarking this!

Ulysses Trachsel

September 2. 2010 19:24

Corporate Clothing

I must say that mens corporate clothing needs are always different, but who is to say a man wearing a blouse is wrong?

Corporate Clothing

September 2. 2010 21:39

cheap jerseys

Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming.
    

cheap jerseys

September 2. 2010 22:58

Desire Brihm

There are actually unquestionably quite a lot of details just like that to take into consideration. That is a good point to bring up. I provide the thoughts above as general inspiration but clearly you'll find questions like the one you bring up exactly where the most significant point will be working in honest nice faith. I don?t know if best practices have emerged around things just like that, but I am sure that your work is clearly identified as a fair game.

Desire Brihm

September 3. 2010 00:14

send flowers london

Really like this website, this really helps and very useful.

send flowers london

September 3. 2010 06:04

gifts

try to change your template, there are some great ones...

gifts

September 3. 2010 12:33

Isagenix

A good post indeed! That’s the sunny side of your writing, you write in a lucid manner and I have no  difficulty to understand what you have said, even though I am a novice. Keep the good work going by  continue blogging new and entertaining posts.

Isagenix

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading