CTE Solutions
 Search
Friday, October 10, 2008 ..:: Community Forum ::.. Register  Login
 Community Forum Minimize
     
  .NET Development  MCTS 70-526 Study Group  Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge  

 Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge 
 
Flip
72 posts
Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge
Posted: 15 Dec 07 12:25 PM (N/A)
 
Everyone's hopefully heard of Survivor right (Survivor China's finale is Sunday night :>)? Well, I would like to introduce our version of their challenges, introducing Coding Challenges!

As we're all working/studying/coding for our upcoming 70-526 exam, maybe you're bored with the chapter material, or tired of their examples and need a bit of a jumpstart to get the creative juices flowing again? Or maybe you're just exhausted from all exam reviews and need to do something else but still want to say you're making progress for your exam prep? Then the Coding Challenges are for you! :>

There are three parts to the Coding Challenges.
1) Someone (the more people we get doing this the better), comes up with some interesting coding exercise/problem/lab to illustrate one small piece of exam material and post it on the forum for everyone interested to work on.
2) You try out the exercise, play with it, investigate the classes involved, try to complete it.
3) Then once people have tried to code up their version of the solution, the person who created the challenge will post their answer/solution. Make the challenges relatively short (3-5days). Then you can compare your answer to theirs. Did you solve the problem the same way as they did? Do you like their strategy to solve the problem? Would you do things different? Did they use the APIs the same way you did?

It is amazing how much you can learn just from looking at other people's code. But the magic of this "learning" comes from attempting the excercises yourself. The exercises are not meant to be long, drawn out programs but simple little "codelets" to help illustrate simple points from the exam.

What do you think? I hope you're as excited about this as I am?! In fact, I'm going to start the ball rolling on this with an "Asynchronous Challenge."

Asynchronous Challenge:
Create a form with three elements, a button to start a thread doing something (counting, generating a random number, whatever), a textbox to show the value being generated by the thread, and lastly a button to stop/abort the thread.

Hints: Yup, you'll have to use Asynchronous programming (aka Threads) and you'll have to do that nifty trick Richard showed us for changing controls across thread boundaries (not hard, look on page 612).

Flip
72 posts
Re: Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge
Posted: 21 Dec 07 7:45 PM (N/A)
 
Well? How did you do? Did you try this out? I hope you did. If you did, here is one of the many answers I came up with. I also have two other projects as part of my solution, they were inspired by Richard's code demo. Hope you were able to come up with something similar to this.

Keep your eyes peeled for the next installment of Coding Challenge coming soon! :>
Chapter13-AsynchronousProgramming.zip 
Orest H.
1 posts
Re: Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge
Posted: 16 Jan 08 1:35 PM (N/A)
 
Peter I just read about your Coding Challenge and think that it's a great idea. Congratulations on another great initiative. I didn't get a chance to work on this one but i will take a shot at the next one. Orest
 
   .NET Development  MCTS 70-526 Study Group  Introducing Coding Challenges!!!!! Starting off with the Asynchronous Challenge
 
 
   

Search   

Copyright 2008 Ottawa .NET Community   Terms Of Use  Privacy Statement
Portal engine source code is copyright 2002-2008 by DotNetNuke. All Rights Reserved