C# Rocks!

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

C# Rocks!

Post by nekros »

Despite my everlasting hatred for all things Microsoft, I find that I am absolutely loving C# (along with C# express). Never have I had so much joy doing Windows programming. I especially love that foreach and the string datatype.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
steveklabnik
Member
Member
Posts: 72
Joined: Wed Jan 28, 2009 4:30 pm

Re: C# Rocks!

Post by steveklabnik »

Real men, when their loved ones are held at gunpoint and are forced to code with Microsoft tools, respond with "F#" when asked to choose their poison.
User avatar
JackScott
Member
Member
Posts: 1031
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Contact:

Re: C# Rocks!

Post by JackScott »

I'm interested in getting into C# programming at some stage in the near future. Does anybody have any recommendations for tutorials (apart from those on MSDN, which I find completely incomprehensible)?
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: C# Rocks!

Post by DeletedAccount »

Hi,
I never read any books on C# language actually :mrgreen: . I learned the syntax and started coding right away , it's very similar to java . But i would recommend you to read the book CLR via C# , which is a great book by the way . This is one books about C# which i found to be quite good .
http://vijaymukhi.com . The site book section contains a good number of books related to C# .
I shall try to find some more resources for you :) , but at a later post .

Regards
Shrek
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Re: C# Rocks!

Post by nekros »

Despite it's complexity C# was actually very easy to learn.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: C# Rocks!

Post by 01000101 »

I constantly preach about C#.NET (with the VS EE) in IRC. :D

It's extremely easy to pick up with a little bit of C-syntax-knowhow, and paired with VS C#.NET EE IDE is a great programming tool. I've made a few apps that would have taken me days to write in standard C/C++ (or even C# without the fancy IDE) in hours.
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Re: C# Rocks!

Post by nekros »

01000101 wrote:I constantly preach about C#.NET (with the VS EE) in IRC. :D

It's extremely easy to pick up with a little bit of C-syntax-knowhow, and paired with VS C#.NET EE IDE is a great programming tool. I've made a few apps that would have taken me days to write in standard C/C++ (or even C# without the fancy IDE) in hours.
That's my favourite part.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
Steve the Pirate
Member
Member
Posts: 152
Joined: Fri Dec 15, 2006 7:01 am
Location: Brisbane, Australia
Contact:

Re: C# Rocks!

Post by Steve the Pirate »

C# is quite a nice language, but I really don't like anything tied to .Net because not only is it very unportable (unless you want to ship a massive Mono runtime, and Windows Forms won't work anywhere near as well on other platforms), C# and Visual Studio encourage bad coding practice. This is because being able to just double click on a control and start writing its event handler makes it far to easy to just put all your view and controller code (if you're into MVC) mixed up into the same function. This (in my experience using C# quite a lot at work) leads to massive headaches when you want to make changes to the user interface... Cocoa and Objective C do a far better job at this, but since that too is quite unportable I prefer C++.
My Site | My Blog
Symmetry - My operating system.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: C# Rocks!

Post by pcmattman »

Hi,
C# is quite a nice language, but I really don't like anything tied to .Net because not only is it very unportable
I fail to understand why everything has to be portable, or else it's "evil".

I personally quite like C# when I do Windows development that requires a GUI.
This is because being able to just double click on a control and start writing its event handler makes it far to easy to just put all your view and controller code (if you're into MVC) mixed up into the same function.
As with any other language, proper design and planning helps keep the headaches away later on ;). That's possibly the worst part of Visual C# - it's so easy to skip straight to coding because it's so easy to develop the application on the fly rather than following a process.
User avatar
skwee
Member
Member
Posts: 73
Joined: Mon Jan 12, 2009 3:11 am

Re: C# Rocks!

Post by skwee »

I always was against high level languages like Java and C#, then I tried java and it was easy and fun (and annoying :x but lets leave for now) and also portable. Then I tried C# and it was pleasure (don't misunderstand me, I still prefer C and C++) but when you need to write something fast, and with gui, C# is the language.
About portability, porting c++ GUI application aint easy also, you anyway will have to install some libraries (wxwidgets, gtk) but: a. gtk looks ugly on windows, b. there is no normal GUI editor for wxwidgets/gtk, and this why writing gui in C/C++ becomes a nightmare. At the end I want to have GUI, not messing with layout options and trying to understand why my "OK" button is located 10px down from my "Cancel" button.
TCP/IP: Connecting people...
User avatar
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Re: C# Rocks!

Post by Colonel Kernel »

I like C#, and in theory I'd be using it a lot at work, but most of the code in the product I'm working on is actually SQL stored procedures. :P I feel like I'm stuck in some kind of COBOL-esque time warp with lots of capital letters.
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: C# Rocks!

Post by Owen »

Interestingly, most of them comments apply for Qt on C++. (Yes, including the foreach loop!)

I took to learning it when Nokia LGPLed it... And, well, I find it to be one of the nicest environments I have ever worked with
NelsonC
Posts: 5
Joined: Wed Apr 08, 2009 5:35 pm

Re: C# Rocks!

Post by NelsonC »

Steve the Pirate wrote:C# is quite a nice language, but I really don't like anything tied to .Net because not only is it very unportable (unless you want to ship a massive Mono runtime, and Windows Forms won't work anywhere near as well on other platforms), C# and Visual Studio encourage bad coding practice. This is because being able to just double click on a control and start writing its event handler makes it far to easy to just put all your view and controller code (if you're into MVC) mixed up into the same function. This (in my experience using C# quite a lot at work) leads to massive headaches when you want to make changes to the user interface... Cocoa and Objective C do a far better job at this, but since that too is quite unportable I prefer C++.
Perhaps it's true for WinForms (Though most people who use Model-View-Controller or Model-View-Presenter have a decent time with it) but it's absolutely false for something more modern like WPF.

Most experienced WPF devs use Model - View - ViewModel which enforces a strict separation of concerns between the backend business objects, and the front end View, with the ViewModel being an adapter for the Model for the View.

Honestly, if followed strictly, the app should be able to run "headless" without WPF at all, and even with a WinForms UI thrown ontop of it (Granted you use INotifyPropertyChanged instead of DependencyObject in your ViewModel).

WinForms had the concept of DataBinding and INotifyPropertyChanged since .NET 1.0, and WPF takes it further with DependencyObjects, DependencyProperties and a more robust databinding architecture. It's really a joy to use.

I've found C# to be optimal for almost every aspect of my Windows programming, it can go neck and neck with C++ in many areas, if you know how to pump the performance out of the language/framework, and the pureness of the language is very attractive.
PHPnerd
Member
Member
Posts: 34
Joined: Mon Nov 05, 2007 11:15 am
Location: The Netherlands
Contact:

Re: C# Rocks!

Post by PHPnerd »

C# is very often used for game development, right? when I see the word; C#, I think about .NET and Microsoft, directly.

I dont like .NET, I only use VC++.NET for making applications with some GUI.
MSDN sucks hard, its search function too. Thats why i prefer making GUI in VC++.NET than C++ with the windows.h

Java, slow to me, got to learn it for school (schools here in The Netherlands use it as primary language :( (Middle High School AND University)

I prefer C :)

// PHP
Jinix
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: C# Rocks!

Post by AndrewAPrice »

PHPnerd wrote:C# is very often used for game development, right?
With XNA (basically DirectX .Net'erised with some Xbox specific features) you can write hobby games in C# for Windows and Xbox 360. C++ is still by FAR the most used language in professional game development.
My OS is Perception.
Post Reply