PC Review


Reply
 
 
Ludwig
Guest
Posts: n/a
 
      27th Nov 2007
Hi,
I'm looking for C# brain teasers (or VB.NET): a little piece of code
that does something special, or where a little error is. Does anyone
has some of these, or links to sites?
Thanks!
 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      27th Nov 2007
Hello Ludwig,

Use the MS certification preparation matherials for this.
They are a good source for such kind of teasers

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


L> Hi,
L> I'm looking for C# brain teasers (or VB.NET): a little piece of code
L> that does something special, or where a little error is. Does anyone
L> has some of these, or links to sites?
L> Thanks!


 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      27th Nov 2007
On Nov 27, 1:14 pm, Ludwig <lstuyc...@gmail.com> wrote:
> I'm looking for C# brain teasers (or VB.NET): a little piece of code
> that does something special, or where a little error is. Does anyone
> has some of these, or links to sites?


Are you after "this doesn't do what you think it does" type things (eg
overloading special cases, or captured variables) or "you should be
able to get this really" questions?

Jon
 
Reply With Quote
 
Ludwig
Guest
Posts: n/a
 
      27th Nov 2007
On 27 nov, 15:01, "Jon Skeet [C# MVP]" <sk...@pobox.com> wrote:
> On Nov 27, 1:14 pm, Ludwig <lstuyc...@gmail.com> wrote:
>
> > I'm looking for C# brain teasers (or VB.NET): a little piece of code
> > that does something special, or where a little error is. Does anyone
> > has some of these, or links to sites?

>
> Are you after "this doesn't do what you think it does" type things (eg
> overloading special cases, or captured variables) or "you should be
> able to get this really" questions?
>
> Jon


Both
 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      27th Nov 2007
On Nov 27, 2:33 pm, Ludwig <lstuyc...@gmail.com> wrote:

<snip>

> Both


Okay. I've a few ideas - I'll post some tonight.

Jon
 
Reply With Quote
 
Ludwig
Guest
Posts: n/a
 
      27th Nov 2007
On 27 nov, 15:41, "Jon Skeet [C# MVP]" <sk...@pobox.com> wrote:
> On Nov 27, 2:33 pm, Ludwig <lstuyc...@gmail.com> wrote:
>
> <snip>
>
> > Both

>
> Okay. I've a few ideas - I'll post some tonight.
>
> Jon


Thank you! Meanwhile I'm looking into the certification books - I've
to take the exams anyway, so it's a good waste of time
 
Reply With Quote
 
oldman69
Guest
Posts: n/a
 
      27th Nov 2007


"Ludwig" wrote:

> Hi,
> I'm looking for C# brain teasers (or VB.NET): a little piece of code
> that does something special, or where a little error is. Does anyone
> has some of these, or links to sites?
> Thanks!
>

 
Reply With Quote
 
oldman69
Guest
Posts: n/a
 
      27th Nov 2007
I have a program that finds prime numbers, if you are interested.

"Ludwig" wrote:

> Hi,
> I'm looking for C# brain teasers (or VB.NET): a little piece of code
> that does something special, or where a little error is. Does anyone
> has some of these, or links to sites?
> Thanks!
>

 
Reply With Quote
 
Chris Mullins [MVP - C#]
Guest
Posts: n/a
 
      27th Nov 2007
There's one here that threw me for a loop late one night:

http://groups.google.com/group/micro...4fc9ba3b43ae3b

Other fun ones include some of Joe Duffy's (and Jon Skeet's) examples of
broken double-check locks.

--
Chris Mullins

"Ludwig" <(E-Mail Removed)> wrote in message
news:11bc359a-1e08-407c-b2d0-(E-Mail Removed)...
> Hi,
> I'm looking for C# brain teasers (or VB.NET): a little piece of code
> that does something special, or where a little error is. Does anyone
> has some of these, or links to sites?
> Thanks!



 
Reply With Quote
 
Hilton
Guest
Posts: n/a
 
      27th Nov 2007
x = x & (x-1)


"Ludwig" <(E-Mail Removed)> wrote in message
news:11bc359a-1e08-407c-b2d0-(E-Mail Removed)...
> Hi,
> I'm looking for C# brain teasers (or VB.NET): a little piece of code
> that does something special, or where a little error is. Does anyone
> has some of these, or links to sites?
> Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fed up of Microsoft with its .NET 2.0 Teasers! Etienne Fortin Microsoft Dot NET 17 17th Apr 2004 06:09 AM
Text / Article teasers automatically generated? =?Utf-8?B?SmF5IERlV2l0dA==?= Microsoft Frontpage 4 18th Jan 2004 11:51 PM
3.8's coming on the 8th, wish we would get some teasers hehe Bratboy ATI Video Cards 1 26th Sep 2003 05:13 PM
Re: 3.8's coming on the 8th, wish we would get some teasers hehe Bratboy ATI Video Cards 0 26th Sep 2003 01:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:32 PM.