News:

Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!

Main Menu

Couple question regarding .net

Started by Punk, October 03, 2009, 02:22:48 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Punk

Refusing for the last couple years to learn how the .Net platform works, I've decided that I probably should knock this one off my shoulder. Actually, it wasn't until 3 days ago when my dad's friend asked if I could write him some new server software for his company... The software will be accepting / responding to many multiple active connections.

So I did some research and asking around and noticed a lot of people pointed me towards .Net. I would do it in C, but my experience level isn't quite there yet and I know if I did something like that with my level of experience, I would create clusters of memory leaks.

Knowing VB6, I thought it would probably be easiest to go to VB.Net. Therefore, I would be able to get the project done a lot faster.

So my questions are...

Would .Net be suitable for this project?
Is C# and VB equivalent in performance since they both compile down to the same CLR?

Sidoh

.NET is great if you're wanting to develop windows applications.  If you want more breadth than that, then you'll obviously want to consider other platforms?

I'd recommend doing yourself a favor and ignoring your attraction to VB.  While, to my knowledge, VB.NET is everything but superficially equivalent to C#, learning C# syntax will bring you that much closer to being familiar with all of the other languages that smell like Java, which is a definite advantage.

Plus, VB is ugly and hard to read. :)

.NET is a great platform for network applications.

rabbit

In the end, all .NET compiles to MSIL byte code, so it doesn't matter what you pick in terms of "efficiency" or "goodness".  I know a bit of VB.Net and C# and I'd recommend C# :P

Lead

Quote from: Sidoh on October 03, 2009, 04:17:00 AM
.NET is great if you're wanting to develop windows applications.  If you want more breadth than that, then you'll obviously want to consider other platforms?

I'd recommend doing yourself a favor and ignoring your attraction to VB.  While, to my knowledge, VB.NET is everything but superficially equivalent to C#, learning C# syntax will bring you that much closer to being familiar with all of the other languages that smell like Java, which is a definite advantage.

Plus, VB is ugly and hard to read. :)

.NET is a great platform for network applications.

Your ugly and hard to read sometimes Sidawg :D


QuoteSon, if you really want something in this life, you have to work for it. Now quiet! They're about to announce the lottery numbers. - Homer Simpson

Joe

If you go down the .NET path, you should check out .NET Reflector eventually. It'll take a .NET executable / library and reduce it directly to source code.

The reason I bring this up is, you can take a VB.NET EXE and take it straight to C# source code, so, to answer your question (and sound like a broken record), VB.NET and C# come out of the oven 100% the same.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


rabbit

Quote from: rabbit on October 03, 2009, 08:31:06 AM
In the end, all .NET compiles to MSIL byte code, so it doesn't matter what you pick in terms of "efficiency" or "goodness".  I know a bit of VB.Net and C# and I'd recommend C# :P

Quote from: Joe on October 03, 2009, 07:17:17 PM
If you go down the .NET path, you should check out .NET Reflector eventually. It'll take a .NET executable / library and reduce it directly to source code.

The reason I bring this up is, you can take a VB.NET EXE and take it straight to C# source code, so, to answer your question (and sound like a broken record), VB.NET and C# come out of the oven 100% the same.

MyndFyre

Quote from: Joe on October 03, 2009, 07:17:17 PM
If you go down the .NET path, you should check out .NET Reflector eventually. It'll take a .NET executable / library and reduce it directly to source code.

The reason I bring this up is, you can take a VB.NET EXE and take it straight to C# source code, so, to answer your question (and sound like a broken record), VB.NET and C# come out of the oven 100% the same.
Not quite.  There are a lot of situations in which Reflector goes crazy - if you use intrinsic iterators, like a "yield break" or "yield return x" constructor for instance, it gets a little weird.  Primarily this happens when you use closures.  Anonymous type names come out looking strange, too.

Still, Reflector is an invaluable tool, and I'm not trying to contradict the advice about it here.

Some of my blog posts I think would help you get going with C#:
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Punk

I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.

Sidoh

Quote from: Punk on October 04, 2009, 01:06:45 AM
I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.

It kind of similar to C++, but it's far closer to Java.

rabbit

Quote from: Punk on October 04, 2009, 01:06:45 AM
I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.
One of my books says that C# was built to have a syntax like C++ but have functionality like Java, so yeah....I'm repeated what everyone just said.

Joe

Quote from: Sidoh on October 04, 2009, 01:50:02 AM
It kind of similar to C++, but it's far closer to Java.

Quote from: rabbit on October 04, 2009, 10:13:29 AM
One of my books says that C# was built to have a syntax like C++ but have functionality like Java, so yeah....I'm repeated what everyone just said.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


warz

Well, it is a C language after all.
http://www.chyea.org/ - web based markup debugger

Sidoh

Quote from: rabbit on October 04, 2009, 10:13:29 AM
Quote from: Punk on October 04, 2009, 01:06:45 AM
I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.
One of my books says that C# was built to have a syntax like C++ but have functionality like Java, so yeah....I'm repeated what everyone just said.

As warz suggested, Java has C-like syntax as well.  A lot of the more basic syntax stuff is similar to both C++ and Java, but overall, C# is a lot more similar to Java, I'd say.

rabbit

Quote from: rabbit on October 04, 2009, 10:13:29 AM
Quote from: Punk on October 04, 2009, 01:06:45 AM
I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.
One of my books says that C# was built to have a syntax like C++ but have functionality like Java, so yeah....I'm repeated what everyone just said.

As warz suggested, Java has C-like syntax as well.  A lot of the more basic syntax stuff is similar to both C++ and Java, but overall, C# is a lot more similar to Java, I'd say.

warz

Quote from: rabbit on October 04, 2009, 10:13:29 AM
Quote from: Punk on October 04, 2009, 01:06:45 AM
I honestly haven't really taken a look at the syntax but I hear it's similar to C++.

Thanks for the suggestions. I'll take a gander at C#.
One of my books says that C# was built to have a syntax like C++ but have functionality like Java, so yeah....I'm repeated what everyone just said.

As warz suggested, Java has C-like syntax as well.  A lot of the more basic syntax stuff is similar to both C++ and Java, but overall, C# is a lot more similar to Java, I'd say.
http://www.chyea.org/ - web based markup debugger