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...Option Strict?Option Strict?
Previous
 
Next
New Post
6/8/2007 8:29 PM
 

I apologize if this has already been explained elsewhere.  I am evaluating DNN to use as the foundation of the next generation of our web applications.

We've been using .Net since 1.0 and just this year released a 3 year from-the-ground up rewrite of our main ASP.Net application (35,000 Members, 3,000 concurrent active users at peak) using SQL 2005 and ASP.Net 2.0 - started when 2.0 was Beta 1.  We used Enterprise Library 1.1 (ported to the 2.0 framework) as our foundational framework.  So we do have a great deal of expirience and knowledge about enterprise web applications and .Net in general.  We are also a VB.Net shop and proud of it!  Hopefully I'll avoid some flaming by getting that out of the way.

DNN seems like just an amazing app and I've been excitied with each new cool feature I discover.  However, while purusing web.config I was surprised to see that Option Strict is not enabled.  By enabling Option Strict, VB.Net becomes the equal of C# in raw performance on various operations.  Plus it helps to enforce tight code discipline.

Performance Tips and Tricks in .NET Applications

Option Explicit and Option Strict in Visual Basic .NET or in Visual Basic 2005

CompilationSection.Strict Property

VB vs. C# MSIL Code Generation: Are the results equal?

As a long-time developer I'm well aware of the compromises that must be made and choices that are hard to reverse, so my intent here is not to knock DNN in the slightest.

I'm just curious as to the reasoning behind this decision and if there are plans to enable Option Strict in the future?

Thanks!

 

 

 

 
New Post
6/8/2007 11:40 PM
 

I was surprised at that also and have gotten into the practice of placing both Option Strict On and Option Explicit On at the top of all of my own VB code.  Otherwise I'm bound to miss a type declaration of type cast somewhere along the way.  Unfortunately, I've seen a lot of third-party modules and even some of the core code that relies on implicit typecasting.  I'm afraid that turning these options on in web.config would break some of the dynamically compiled modules which are becomming more common now.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/9/2007 9:38 AM
 

This can also be enabled in project properties as well as in the options for Visual Studio, instead of including it on every code page.

Unfortunately, it defaults to off.

 
New Post
6/11/2007 11:32 AM
 

Ed DeGagne wrote

This can also be enabled in project properties as well as in the options for Visual Studio, instead of including it on every code page.

Unfortunately, it defaults to off.

Unfortunately, this is not true for the VS 2005 Web Site "project".  A web site project uses the ASP.Net compilier, not the VS compilier, so setting the default in VS (which is one of the first things I do when I install VS) effects everything but web site projects.  You still have to set strict to "true" in web.config to enable the option.

 
New Post
6/11/2007 11:52 AM
 

As bill mentioned I too believe that turning it on would break a large number of third pary modules and my guess is that is one of the reasons that it is not on.  Also, I do believe there are some core pieces that would not function either.

I personally would hope that the core team would move to allowing it to be set, but I can also see many circumstances where it might not be possible.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Option Strict?Option Strict?


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