C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform

learn more… | top users | synonyms

12
votes
6answers
1k views

Learning C# and stuck in a rut [closed]

I've been learning C#/.NET 4.0 for about 2/3 months, it's my first serious programming language (I've looked at PHP, HTML, CSS, JavaScript, and VBA before but never massively in depth) and I'm ...
11
votes
4answers
6k views

What is platform independence? Are cross-platform and 'platform independence' same?

What is the platform independence really mean? What are the criterion to call a language platform independent ? Are cross-platform and 'platform independence' same? (This may be a question for self ...
5
votes
4answers
8k views

C# Classes instance members vs. enum

What is the difference between private variables in a clsClass type and using enumeration enum to instantiate the variable. This question arose when I was looking at some C# Class code for serial ...
8
votes
7answers
5k views

From non programmer to “professional” freelance programmer [closed]

I am 15 year old student looking to buy his first car and thought I could earn some extra money by learning to program since I like messing around with the computer all the time. I have been reading ...
3
votes
1answer
1k views

Why has the PowerCollections C# library recently declined in popularity? [closed]

I just looked at the statistics for the PowerCollections C# library and noticed a sharp decrease in quantity of downloads. What may be the cause? Is there something better I should be using?
0
votes
1answer
754 views

Windows Phone 7 dev: C# or silverlight for a simple app?

I'm about to hire a programmer to develop Windows Phone 7 apps. The current app that shall be developed is quite simple. The app will download content from a Web-API. There are two lists to ...
4
votes
1answer
895 views

Dependency analysis from C# code through to database tables/columns [closed]

I'm looking for a tool to do system wide dependency analysis in C# code and SQL Server databases. It's looking like the only tool available that does this might be CAST (CAST software), which is ...
2
votes
1answer
277 views

How to define template directives (from an API perspective)?

Preface I'm writing a template language (don't bother trying to talk me out of it), and in it, there are two kinds of user-extensible nodes. TemplateTags and TemplateDirectives. A TemplateTag ...
13
votes
16answers
1k views

Should a c# dev switch to VB.net when the team language base is mixed?

I recently joined a new development team where the language preferences are mixed on the .net platform. Dev 1: Knows VB.net, does not know c# Dev 2: Knows VB.net, does not know c# Dev 3: Knows c# ...
6
votes
4answers
4k views

Is nesting types considered bad practice?

As noted by the title, is nesting types (e.g. enumerated types or structures in a class) considered bad practice or not? When you run Code Analysis in Visual Studio it returns the following message ...
3
votes
2answers
543 views

Is is common to use the command pattern for property get/sets?

Suppose I have a controller class with a bunch of properties. Each time a property is changed, I would like to update the model. Now also suppose that I use the command pattern to perform model ...
1
vote
3answers
2k views

Why is C# ASP.NET generally not regarded as a rapid web development framework?

The terms rapid web development gets associated with Python/Django and ROR. Why is this not the case with C# ASP.NET?
9
votes
3answers
1k views

Balancing dependency injection with public API design

I've been contemplating how to balance testable design using dependency injection with providing simple fixed public API. My dilemma is: people would want to do something like var server = new ...
5
votes
2answers
7k views

What are the best practices for exception handling in n-tier applications?

What are the best practices for exception handling in n-tier applications? The application is a fat client based on MVVM pattern with .NET framework.
7
votes
4answers
5k views

Is it possible to write an anti-virus like thing using C# or Python? [closed]

C# and Python can't compete with C and Assembly when writing such tools is the need. I left C many years back and I don't think I will be able to cope up so fast. Is it possible to write Anti-Virus ...
14
votes
4answers
19k views

Delphi vs C# for GUI programming [closed]

I'm coming from PHP and Python background with little knowledge of C, I have done many web based application now I'm thinking of Desktop application for windows platform. A friend told me to go for ...
11
votes
4answers
29k views

What are the differences among the .NET certification exams? [closed]

I am a .NET developer using WPF and ASP.NET MVC and I was hoping to pass some kind of certification exam. There seems to be four exams but I am unable to understand what the differences are even ...
8
votes
2answers
1k views

Any reason behind hyphens in a GUID?

Just when I generated a GUID, I found some hyphens in between the character and also at specified intervals 8b55fec7-c987-4e7b-abad-16e5aaea9b53 Is there any story behind this? Note: My intention ...
2
votes
3answers
694 views

How to explain a project for a potential employer [closed]

I went to an interview last week for a junior programmer and mentioned that I have been working on a project with a buddy of mine. Tomorrow they would like to see this project in order to decide if ...
10
votes
11answers
1k views

How can I transition to a job using the Microsoft stack? [closed]

I graduated from university with a computer science degree (BSc), having done some C, C++, Java, Python, and Oracle along the way. I did some freelancing while I was at university and carried this ...
5
votes
6answers
1k views

Is it advisable to disable the Microsoft enforced coding standards in VC# 2010?

Coming from eclipse I've developed my own coding standards which I got used to. In Visual C# 2010 however, it appears that some coding standards that MS recommends are enforced in the default ...
42
votes
11answers
3k views

Should a developer always use version control [duplicate]

Possible Duplicate: Version control for independent developers? I've heard statements to the effect of: "Well it's just me working on this project so I don't need to put it under source ...
2
votes
3answers
2k views

How to explain DependencyProperty using real world analogy?

How to explain DependencyProperty using real world analogy? Why is it needed?
18
votes
11answers
13k views

Which Continuous Integration framework do you use and why? [closed]

There are quite a few different Continuous Integration (CI) frameworks out there and I'm wondering which is the most popular. Which frameworks have you used at firms where you work? Is there any ...
19
votes
4answers
16k views

Any real use of pointers in C#? [closed]

What is a situation while coding in C# where using pointers is a good or necessary option? I'm talking about unsafe pointers.
10
votes
2answers
4k views

Most Active Open Source C# Projects?

I am looking for open source projects being done in C# that are actively looking for developers and does not mind the person coming in from a C++ background. Any pointers appreciated.
11
votes
10answers
4k views

How do I explain to non-programers what .NET is? [closed]

I don't work at a software company, and I'm one of a small handful of people in the company that know anything about programming. I spend a lot of time automating other programs that are used in the ...
4
votes
9answers
10k views

What are the hardest parts of the C++/C#/Java programming languages? [closed]

Just wondered what are the features of the three main programming languages which show you are an 'expert'? Please exclude 'practical' skills such as indenting. Am I right in saying for C++ the most ...
6
votes
3answers
1k views

.Net Best Practices : Common Bugs Introduced By Refactoring, Carelessness, and Newbies

What are the common bugs introduced by refactoring, carelessness, and newbies? I would like to request the experienced programmers here to share their experience and list the bugs they used to ...
4
votes
3answers
2k views

C# open source projects [closed]

What C# project(s) would you consider contributing to if you were a beginner trying to sharpen your skills in C# and .NET framework ? The project should be (besides all) active and not something less ...
1
vote
4answers
346 views

Should I continue learning a language if in the meanwhile I became interested in another language/platform? [closed]

I started learning Java a couple of months ago. I also wanted to become more exposed to linux so I installed ubuntu and started working with Java since then. In the meanwhile however I became more ...
38
votes
6answers
8k views

Good example of complex code using TDD [closed]

What would be a good example of the use of TDD in large, real-life, complex, projects? All the examples I've seen so far are toy projects for the purpose of a book or a paper... Can you name an ...
0
votes
5answers
361 views

Is it ok to learn from C# 2002 materials? [closed]

I've found some videos that explain C# but it back to C#.NET when it is first appeared, if I learn from these videos will I learn something that has been removed from the language? will I miss alot?
1
vote
2answers
198 views

In-Memory Debugger for .NET?

I don't know if "In-Memory debugger" is really what I mean, or if it's even possible to produce, but it's the best name I could come up with... Here's the tool I'm looking for: Given a variable ...
4
votes
3answers
637 views

How to start project? [duplicate]

Possible Duplicate: What to plan before starting development on a project? As a university project i am planning on implementing the SMTP protocol. I wonder what is the best way to start ...
4
votes
2answers
2k views

C# Interview Preparation - References? [closed]

This is a specific question relating to C#. However, it can be extrapolated to other languages too. While one is preparing for an interview of a C# Developer (ASP.NET or WinForms or ), what would be ...
9
votes
5answers
5k views

Why C# doesn’t support multiple inheritance?

Even if it could be bad practices, I would say that there is time that it would fulfill its purpose.
16
votes
3answers
7k views

Why is there no generic implementation of OrderedDictionary in .net?

Why did Microsoft not provide generic implementation of OrderedDictionary? There are a few custom implementations I've seen, including: ...
14
votes
13answers
2k views

async & await - poll for alternatives [closed]

Now that we know what is in store for c#5, there is apparently still an opening for us to influence the choice of the two new keywords for 'Asynchrony' that were announced by Anders Heijsberg ...
19
votes
9answers
2k views

How to teach Exception Handling for New Programmers? [closed]

How do you go about teaching Exception Handling to Programmers. All other things are taught easily - Data Structures, ASP.NET, WinForms, WPF, WCF - you name it, everything can be taught easily. With ...
6
votes
3answers
655 views

What benefits for the developer does the Ruby language offer that C# does not have?

What benefits for the developer does the Ruby language have that are not available in C# (preferably with code examples)?
10
votes
1answer
980 views

How would I unit test database logic?

I am still having a issue getting over a small issue when it comes to TDD. I need a method that will get a certain record set of filtered data from the data layer (linq2SQL). Please note that i am ...
5
votes
1answer
557 views

Workflow Foundation to seperate data from business logic on a mid-sized App?

We are currently developing a .net app in WPF, that will be a desktop app with a good bit of data-access to local (and some remote) servers. The business logic here is very complex, and currently it ...
9
votes
6answers
5k views

Should I learn java for mobile application development or will C# just do?

I'm looking forward to delving into the .NET framework but most mobile applications seem to be developed in Java. I'll most probably be targeting the less pricier phones like Nokia and motorolla not ...
7
votes
3answers
2k views

What is the best practice for refactoring a static method in order to make it more testable?

Let's say you have a static method that looks something like this: public static bool Foo() { var bar = new Bar(); //do some stuff here } This method as it stands can be a real headache to ...
12
votes
5answers
2k views

Why have minimal user/handwritten code and do everything in XAML?

I feel the MVVM community has become overzealous like the OO programmers in the 90's - it is a misnomer MVVM is synonymous with no code. From my closed StackOverflow question: Many times I come ...
3
votes
1answer
187 views

FromXYZ vs Overloaded Method

I'm trying to think of the cleanest way to implement a couple of methods that open a file. Consider the following method signatures: public static DomainObject Load(Uri urlToFile) { /* downloads ...
6
votes
4answers
291 views

Is there a standard for when you include libraries or not?

I often come across a class which has a single reference to another library and was wondering if its better to include the library or to reference the object by it's full name. Is one better then the ...
6
votes
6answers
7k views

What should I include in my class documentation header

I'm looking for informative class documentation format for my Entity, Business Logic and Data Access classes. I found following two formats from here Format 1 ...
25
votes
5answers
8k views

MonoTouch vs Objective-C for iPhone/iPod/iPad development [closed]

For someone with .Net experience and wanting to develop for iPhone/iPod/iPad, is it worth learning Objective-C? Is MonoTouch a good alternative? What are some of the trade-offs when using MonoTouch vs ...