C++
  Home arrow C++ arrow Programming Contests: Why Bother?
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C++

Programming Contests: Why Bother?
By: Gabor Bernat
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-06-23

    Table of Contents:
  • Programming Contests: Why Bother?
  • The Contest
  • Which Contests?
  • Mental Approach

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Programming Contests: Why Bother?


    (Page 1 of 4 )

    Would you like to learn how to be a better, more efficient programmer? Do you want to build optimized code that runs faster than anything you thought you could create? Then you might find that entering programming contests helps you sharpen your skills. Keep reading as we take a close look at what you can gain from pitting your programming skills against your peers from around the world.

    More and more developers are emerging from the woodwork every day, making the number of applications explode. However, the programs tend to be object-oriented and serve only one purpose, to complete a specific task. Now this on its own is not a bad thing; nevertheless, pair this with some top-notch hardware, and you will see applications where efficiency takes a back seat.

    Now this, most of the time, is a bad scenario. It is true that you you may wonder why you should bother with optimizing a few lines inside a piece of code, when just a couple of "for/while"-s will have the same effect in the end. Since many people think like this, we get a society of programmers that wastes extra CPU clocks, memory segments and more.

    All of those little bits start to stack up, and in the end, the end user will get a computer that does little, and that too slow, while consuming extra power, thus taking us a step closer to killing the Earth. The question is, could we not do something about this?

    The obvious answer is a short but solemn yes. Yes, we can search for a specific number inside one ordered array using the binary search to spare a few meaningless steps, instead of the "easy" and "lazy" simple loop over there.

    It is true that mastering this approach takes some extra time and effort; however, in the end, you will have in your grasp knowledge with which you can truly create new and quality software products. Programming contests support this kind of thinking.

    Such contests were developed to simulate, for those who are still learning (mostly students at a specific level) problems and situations close to the ones that they may face once they enter the innovative applications developers' world.

    Besides this, entering programming contests forces you learn a couple of already-existing algorithms so that you do not have to reinvent the wheel for every little problem you will encounter. If you truly want to pay the price and invest the time and effort, you will get the experience and possibly some new tools in your toolbox as payment. Of course, it's given that you want to be and do more than an average developer.

    This series of article (four, to be specific) is aimed at showing you how should you approach a contest like this. Now, as specified previously, to be successful, you need to invest time and learn many methods to solve common problems.

    Nevertheless, during this series, I will try to offer you a short introduction, a taste of it. In the first two, I will present what programming contests are all about, and the correct mindset with which to approach them. In the following articles I'll show you some collections of tricks that can make the difference between a good and perfect algorithm/program. This will concentrate on the C/C++ language, given that these are the most used in contests. Let's take a look at the challenges, shall we?

    More C++ Articles
    More By Gabor Bernat


     

    C++ ARTICLES

    - More Tricks to Gain Speed in Programming Con...
    - Easy and Efficient Programming for Contests
    - Preparing For Programming Contests
    - Programming Contests: Why Bother?
    - Polymorphism in C++
    - Overview of Virtual Functions
    - Inheritance in C++
    - Extending the Basic Streams in C++
    - Using Stringstreams in C++
    - Custom Stream Manipulation in C++
    - General Stream Manipulation in C++
    - Serialize Your Class into Streams in C++
    - Advanced File Handling with Streams in C++
    - File Handling and Streams in C++
    - The STL String Class







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek