Log ind for at få flere funktioner

  • 15-08-2007 · 11:15 294 visninger 1 svar
  • Denne tråd er over 6 måneder gammel

    Er du sikker på, at du har noget relevant at tilføje?

  • VB.Net VS C#

    Af Gr-FreeKill Elitebruger
Jeg har mange gange haft diskutioner med folk om hvorfor C# på mange måder er et bedre sprog end VB. Bl.a pga. de latterlige syntakses der findes i VB.

Jeg faldt i dag over denne artikkel der beskriver forskellighederne mellem VB og C#. http://www.codeproject.com/dotnet/C...

Hvor hans første og mest betydningsfylde udtalelse er:

80% of C# programmers are good, while 80% of VB programmers are not good. This is not to say that everyone who programs in VB is less skilled than everyone who programs in C#.


What does this mean in concrete terms? What impact does this have on today’s application development? How does the decision to adopt Visual Basic or C# affect programs written today and tomorrow?

80% of C# programmers are good, while 80% of VB programmers are not good. This is not to say that everyone who programs in VB is less skilled than everyone who programs in C#. This is to say that:
the VB syntax and semantics is designed to attract less skilled programmers and, in combination with other factors examined above, this has created a culture that is populated with less skilled programmers.
and because VB syntax and semantics make it more difficult to avoid common programming errors and hence to program well.
Hiring a good C# programmer is easier than hiring a good VB programmer. This is because of (1).
Hiring the average C# programmer costs more than hiring the average VB programmer. This is because the average C# programmer is a better programmer than the average VB programmer, and this is because of (1).
Hiring a good VB programmer costs the same as hiring a good C# programmer. There are many good VB programmers, and some of them are much better than some C# programmers. However this is the exception, not the rule.
A good programmer accomplishes two to ten times what an average programmer accomplishes, and causes 90% less bugs and headaches.
At the time of writing there are probably almost as many good VB programmers as there are C# programmers. This is because there are many more VB programmers than C# programmers. The 20% of VB programmers who are good is about same number as the 80% of C# programmers who are good.
In the near future, there will be less good VB programmers than C# programmers. This is because many of the good VB programmers are switching to C#. This is partly because they like the language better, but mostly because they like the culture better. As the cultural separation becomes more evident and self-reinforcing, it will accelerate until there are very few good VB programmers left.
VB programmers, on the average, know less about good object-oriented, distributed, loosely coupled application design and development than C# programmers, on average. This is because their language has not supported these notions, so their culture has grown without them. Although these notions are supported now in VB, they are more slowly being adopted than in the C# culture because of cultural inertia.

:)
Elitebruger
15-08-2007 11:29
Og igen, som en udtaler. hvilket pr. erfaring lyder meget rigtigt:

"It's really true, the syntax and culture of VB lulls people into a false sense of potency, they forget to use namespaces properly, they end up writing the most god-awful spaghetti code(particularly in a lot of web apps I have seen) and typing and naming conventions simply go out the window, simply because it has been made too easy for people."
--
Bruger påkrævet
En bruger er påkrævet for at oprette svar på Hardwareonline.dk
Du kan oprette en bruger her eller logge ind her

Log ind for at få flere funktioner