Author Topic: Couple question regarding .net  (Read 12004 times)

0 Members and 1 Guest are viewing this topic.

Offline Punk

  • Newbie
  • *
  • Posts: 21
    • View Profile
Couple question regarding .net
« on: October 03, 2009, 02:22:48 am »
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?

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Couple question regarding .net
« Reply #1 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.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Couple question regarding .net
« Reply #2 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

Offline Lead

  • x86
  • Hero Member
  • *****
  • Posts: 635
  • Shaman of Sexy.
    • View Profile
Re: Couple question regarding .net
« Reply #3 on: October 03, 2009, 05:40:18 pm »
.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


Quote
Son, 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

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Couple question regarding .net
« Reply #4 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.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Couple question regarding .net
« Reply #5 on: October 03, 2009, 07:36:59 pm »
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

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.

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Couple question regarding .net
« Reply #6 on: October 03, 2009, 07:58:53 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#:
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Punk

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Couple question regarding .net
« Reply #7 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#.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Couple question regarding .net
« Reply #8 on: October 04, 2009, 01:50:02 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.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Couple question regarding .net
« Reply #9 on: October 04, 2009, 10:13:29 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.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Couple question regarding .net
« Reply #10 on: October 04, 2009, 11:31:44 am »
It kind of similar to C++, but it's far closer to Java.

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.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline warz

  • Hero Member
  • *****
  • Posts: 1134
    • View Profile
    • chyea.org
Re: Couple question regarding .net
« Reply #11 on: October 04, 2009, 11:40:54 am »
Well, it is a C language after all.
http://www.chyea.org/ - web based markup debugger

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Couple question regarding .net
« Reply #12 on: October 04, 2009, 01:18:17 pm »
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.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Couple question regarding .net
« Reply #13 on: October 04, 2009, 01:37:05 pm »
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.

Offline warz

  • Hero Member
  • *****
  • Posts: 1134
    • View Profile
    • chyea.org
Re: Couple question regarding .net
« Reply #14 on: October 04, 2009, 03:11:26 pm »
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