logo
Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Tijs  
#1 Posted : Wednesday, November 12, 2008 6:45:18 PM(UTC)
Tijs

Rank: Sienn Developer

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 25
Man
Location: Netherlands

In order to get the maximum out of our developement platform and be able to get quicker support, we've have stated some guidelines below we recommend to follow:

1. Organize your code following the accepted formats, i.e. using 2 spaces to created depth:
Code:

Dim Correct as boolean = True
Try
  if Correct Then
    Correct = False
  end if
Catch 
  Correct = True
End try


2. Use variable names that correspond to the content or type of the variable, like:

Code:
Dim txtTextboxVariable as new Textbox = Nothing


avoid situations like

Code:
i= ((a * r) / integer1)


3. When communicating with a database or other external datasource make sure you build decent exception handling to avoid memory leaks and connections that stay open (use Try statements to avoid these)

4. When running a query make sure you make it run through the sql firewall like so:

(still to come)

5. When redirecting within a control (response.redirect), let the url run through the SEO URL Rewriting engine so that it will be optimized for SEO like so:

(still to come)

6. Be consistent in your syntax, there are a million ways to perform the same tasks, but for the sake of simplicity please use the same. For example please avoid binding strings together with different syntax:

Code:
query = query & "text"
query &= "text2"
query = query + "text2"
query = query + "text3" & "text4"

(more to come

Wanna join the discussion?! Login to your Sienn Forum forum account. New Registrations are disabled.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.