Clan x86
Technical (Development, Security, etc.) => General Programming => Topic started 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?
-
.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.
-
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
-
.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
-
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.
-
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.
-
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#:
- http://geekswithblogs.net/robp/archive/2008/02/12/c-3.0-best-practices-downloads.aspx - C# 3.0 best practices
- http://geekswithblogs.net/robp/archive/2007/10/16/A-C-Primer---Understanding-Events.aspx - Understanding Events (written for iago!)
- http://geekswithblogs.net/robp/archive/2008/01/31/simplified-parameter-checking-the-contract-class.aspx - Contract class sample (for checking parameters for validity)
- http://geekswithblogs.net/robp/archive/2008/02/03/looking-at-.net-the-disposable-pattern.aspx - The Disposable pattern in .NET
-
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#.
-
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.
-
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.
-
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.
-
Well, it is a C language after all.
-
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.
-
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.
-
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.
-
x_x
-
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?
-
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?
-
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.
-
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
-
Lol. Or maybe.. I was just using a bot to play around with the sockets :o
Dun dun dun
-
Lol. Or maybe.. I was just using a bot to play around with the sockets :o
Dun dun dun
Lies and slander.