Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: Punk on October 03, 2009, 02:22:48 am

Title: Couple question regarding .net
Post by: Punk 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?
Title: Re: Couple question regarding .net
Post by: 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.
Title: Re: Couple question regarding .net
Post by: 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
Title: Re: Couple question regarding .net
Post by: Lead 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
Title: Re: Couple question regarding .net
Post by: 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.
Title: Re: Couple question regarding .net
Post by: rabbit 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.
Title: Re: Couple question regarding .net
Post by: MyndFyre 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 (http://geekswithblogs.net/robp/archive/2009/04/08/unsung-c-hero-closure.aspx).  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#:
Title: Re: Couple question regarding .net
Post by: 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#.
Title: Re: Couple question regarding .net
Post by: Sidoh 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.
Title: Re: Couple question regarding .net
Post by: rabbit 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.
Title: Re: Couple question regarding .net
Post by: Joe 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.
Title: Re: Couple question regarding .net
Post by: warz on October 04, 2009, 11:40:54 am
Well, it is a C language after all.
Title: Re: Couple question regarding .net
Post by: Sidoh 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.
Title: Re: Couple question regarding .net
Post by: rabbit 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.
Title: Re: Couple question regarding .net
Post by: warz 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.
Title: Re: Couple question regarding .net
Post by: Sidoh on October 04, 2009, 03:38:38 pm
x_x
Title: Re: Couple question regarding .net
Post by: Ender on October 04, 2009, 07:45:55 pm
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?

many multiple?
Title: Re: Couple question regarding .net
Post by: Punk on October 04, 2009, 08:20:02 pm
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?

many multiple?

Oops?
Title: Re: Couple question regarding .net
Post by: Camel on October 05, 2009, 12:44:55 pm
Vouch for C# being Java that looks like C++. Oh, and at the risk of introducing new information, it's object-oriented, and strongly typed.
Title: Re: Couple question regarding .net
Post by: Lead on October 05, 2009, 01:42:43 pm
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?

Damn your dad's friend wanted a BNetD clone?

http://forum.valhallalegends.com/index.php?topic=18082.0
Title: Re: Couple question regarding .net
Post by: Punk on October 07, 2009, 12:00:15 pm
Lol. Or maybe.. I was just using a bot to play around with the sockets :o

Dun dun dun
Title: Re: Couple question regarding .net
Post by: Lead on October 07, 2009, 01:47:15 pm
Lol. Or maybe.. I was just using a bot to play around with the sockets :o

Dun dun dun

Lies and slander.