Search found 7 matches

by Apoc
Mon Aug 03, 2009 2:07 pm
Forum: Programming Discussion
Topic: Polymorphism
Replies: 21
Views: 1749

Re: Polymorphism

this is exactly why there is a influx of sub par programmers. they think that using every feature of language, or implementing every know design pattern or design methodology makes them great programmers, or have the attitude that if someone doesn't they are sub par programmers or should stick to a...
by Apoc
Mon Aug 03, 2009 1:07 pm
Forum: Programming Discussion
Topic: Polymorphism
Replies: 21
Views: 1749

Re: Polymorphism

http://tbn3.google.com/images?q=tbn:CboH_ECsoHHvmM:http://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Chickpea_pods.jpg/741px-Chickpea_pods.jpg Polymorphism and inheritance are both cool concepts, but I still haven't figured out when it's appropriate to use them. I've found my habits often ev...
by Apoc
Fri Jul 31, 2009 12:36 pm
Forum: Programming Discussion
Topic: Intellisense in visual studio 2008 c++
Replies: 4
Views: 538

Re: Intellisense in visual studio 2008 c++

Whoah it does look cool. I think its cool how it tries to help you fill out header names when your trying to remember how to spell them. Honestly though, I don't see any screen shots of any documentation being added into the intellisense. Don't get me wrong, it looks wicked cool. I'm just wondering...
by Apoc
Fri Jul 31, 2009 6:29 am
Forum: Programming Discussion
Topic: Intellisense in visual studio 2008 c++
Replies: 4
Views: 538

Re: Intellisense in visual studio 2008 c++

It does... to some degree. It's definitely not on par with .NET intellisense, or Java's intellisense. Hit Ctrl+Space to invoke the intellisense viewer thing. (I forget what it's called.) Optionally; you can go buy the 'required' C++ developers plugin called Visual Assist X. (Any C/C++ dev, go downlo...
by Apoc
Fri Jul 31, 2009 6:17 am
Forum: Programming Discussion
Topic: C# - Generic Circular Queue Implementation
Replies: 0
Views: 3240

C# - Generic Circular Queue Implementation

Yep, I know. This one is very, -very-, simple for anybody who knows their C#. However, not many developers actually realize how much simple code can help. I've used this code in numerous projects, mostly in places where I didn't think it would be that useful, but happily found out I was wrong. Anyho...
by Apoc
Fri Jul 31, 2009 6:09 am
Forum: Programming Discussion
Topic: C# Check if a user typed a number into a textbox.
Replies: 4
Views: 691

Re: C# Check if a user typed a number into a textbox.

Use decimal.TryParse unless you want to force non-floating-point numbers on the user. (In which case; I'd still use a larger datatype. long.TryParse for instance) Also, don't use TryParse unless you're absolutely sure you want to suppress exceptions. (In simple cases like this, it's fine. In most ot...
by Apoc
Fri Jul 31, 2009 6:04 am
Forum: Programming Discussion
Topic: C#: Enumerator-type solution without explicit casts
Replies: 2
Views: 795

Re: C#: Enumerator-type solution without explicit casts

I'm going to assume you're using .NET 2.0? If so, that's a very sneaky way to do things. However, I don't really see the payoff. You end up going from decently-clean switch statements, to ugly-as-hell if/else if/else statements. If not, just create an extension method for the enum in question to avo...