Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...C# version of DNNC# version of DNN
Previous
 
Next
New Post
10/31/2007 7:20 PM
 

If I hear one more person say "beautiful" in the same sentence when describing the C# language, I am going to puke.

Case sensitivity, curly braces, semi-colons to terminate a line of exectution, etc, etc. These are things that date back to the beginnings of programming languages. Why they are part of C# (a so called modern language) is beyond me. And there is nothing beautiful about those things at all, let alone being "intuitive".

I like both languages and I am proficient in both, use them both everyday. But I strongly disagree that C# is an "intuitive" or "beautiful" language.

One of the greatest things I have ever been a part of was at a mixed language development shop a few years ago. I would routinely hand over code to QA and documentation so that these groups could write their help and documentation on new or changed functionality. When ever I handed over VB.NET code, the majority of writers could draft their work just by reading the code. Handing them C# code almost always resulted in an influx of questions and meetings in order for them to do their job.

I understand most C# people don't like VB's verbosity, but I think it's one of the strongest benefits of VB.

 
New Post
10/31/2007 9:31 PM
 

There is actually a conversion of DNN to C# project. I just happened to stumble across it a few days ago.

http://www.codeproject.com/aspnet/ASPNETnuke.asp



Gary
 
New Post
11/1/2007 8:38 AM
 

Gary,

Check out the dates, they are pretty far behind the current version, highlighting one of the problems with trying to maintain 2 seperate code bases of a project.

I may be off, but I don't think there has been a release of that C# project in almost a year (Jan 07).

 
New Post
11/1/2007 12:36 PM
 

Ed,

Interesting points.  I can see how you don't like a MS language being called beautiful..  that was a bit of a strech, I'll admit.  However, any language I practically already know just by knowing a couple other languages (very very commonly known and used languages, java/c++) would have to be called intuitive by those folks. It's sort of like Yiddish.  If you know german, your're 90% there.  Maybe intiuitive isn't the right word afterall.

I like your description of VB as verbose.  Never used that particular word to describe it, but it definitely fits.  Hey, some people like hemingway, and those people would like VB!  I can see it being a matter of taste there.

It's strange, however, that you say that terminating semicolons and statement blocks defined by curly braces are outdated, though.  I can think of few modern OO languages (or non oo languages for that matter) that don't use some sort of statement terminator and statement block.  I always thought that VB's assumption that all statements were on their own line (unless you supply a line continuation character '_') was pretty unusual (and irritating).  Also, VB has something similar to the semicolon.  Basically the compiler terminates a statement when either it hits a new line (without encountering a terminating underscore), or when it hits a colon (ala the C# semicolon).  I'm sure you know this already, but some who read this may not.  One could imagine the compiler replacing all CR/LF characters with colons except where one finds an underscore.

Statement terminators encourage one to spread out one line of code to multiple lines to improve readability.   Having tell the compiler to add the next line to the previous line seems a bit strange, and discourages alterations to the code that are simply there to improve readability (like spacing out parameters to multiple lines so they fit on one screen.  Granted it's only one character, but it's something.

Regarding statement blocks, VB has Begin and End.  Begin and End tags do take a bit more work to type (if you're lazy), but they definitely make the code less visually symmetric(statement block characters don't line up perfectly because Begin and End have different lengths!).  I rely heavily on the curly braces to define scope and flow, and can do this by very quickly skimming through code.  I always put the curly brace on its own line personally, for this reason, but that's an entirely different subject and purely a matter of taste.

I wanted to try to stay away from specific gripes about VB, but I felt that warranted a response.  This is just the tip of the iceberg for me too (I like griping :-). I'm sure the C# gripes will soon flow :-)  There's plenty of room for improvemet in all things.

Anyway, this has been an interesting exchange so far!  Thanks for responding with such ferver!  It seems no one wants to support C# for use in DNN core, which is OK. As Stephen Colbert says, the market has spoken.

 
New Post
11/1/2007 1:24 PM
 

I think Paul Vick provides a great perspective on why VB is a great choice:

  • Visual Basic is the #1 .NET language (as reported by Forrester Research)
  • Visual Basic is the #1 downloaded and #1 registered Express Edition (topping the #2 position by 20%)
  • Visual Basic is the #1 MSDN language dev center and blog in terms of traffic
  • The Visual Basic Team blog is in the top 1% in readership of all MS bloggers (I don't know where I fall in that since I host independently.)

I personally find the lack of background compilation (and the attendant error notification), to be a major stumbling block for C# and one that I avoid whenever possible, but that is just my opinion which is just about as valid as any other opinion.

At the end of the day, nobody has shown any objective reason as to why an investment should be made to change the core.  Pretty much every reason comes down to a subjective personal preference of the individual making the comment. This too me seems to be a very poor reason to even consider making such a risky and time consuming change. 


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...C# version of DNNC# version of DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out