Results 1 to 7 of 7

Thread: Useful Tips for Web Programming

  1. #1
    sturat's Avatar
    sturat is offline Article Marketing Guru
    Join Date
    Dec 2008
    Posts
    332
    Blog Entries
    11
    Thanks
    197
    Thanked 158 Times in 83 Posts

    Useful Tips for Web Programming

    A good web developer is not the one who has excelled in web programming and programming languages, but the one who can create usable, logical and coherent codes. There are several tips and guidelines that programmers use so as to produce quality and functional codes, no matter what the language used is: C ++ , Visual Basic, Java or PHP.
    1. Avoid repeating the same variable: when the program is complex and big. Although many developers claim that this is a waste of memory, if the program needs debugging the same variables could prove seriously confusing to the debugger.
    2. Variables should be declared in the same place: This can prove really helpful to the developer when he needs to check if a particular variable is declared. It is easier to keep track of them this way. It is recommended to define the variables under the function declaration.
    3. Declare only used functions and variables: You don’t need to complicate things by declaring unnecessary or irrelevant variables.
    4. Avoid Labels: Although some programs, such as Basic, allow you to use several labels, it is recommended not to, because that can weigh heavily on the operational system.
    5. Use commenting: The main web developer might be able to see the logic of programming but this doesn’t necessarily apply to everyone else who might be involved in the coding process. Commenting helps the identification of logic when needed.
    6. Use Frameworks such as Symphony, or RoR: Frameworks can help you do different things at once and lay out the applications in a functional and maintainable way.

    I’d like to see some tips from your side.
    Thanks

  2. Thanked by:

    Aziz (10 November, 2009), LogicFlux (11 February, 2009), Shenron (29 April, 2009), WebEvader (28 March, 2009), Will.Spencer (11 February, 2009)

  3. #2
    A12Alex is offline Newbie Net Builder
    Join Date
    Feb 2009
    Location
    Queensland, Australia.
    Posts
    90
    Blog Entries
    1
    Thanks
    15
    Thanked 9 Times in 6 Posts
    Nice tips, but one thing though... I didn't really get what you fully meant by this:
    Quote Originally Posted by sturat View Post
    Avoid Labels: Although some programs, such as Basic, allow you to use several labels, it is recommended not to, because that can weigh heavily on the operational system.
    Are you saying that labels could cause compatibility issues or something else?

  4. #3
    jane0109 is offline Unknown Net Builder
    Join Date
    Feb 2009
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post
    I would like to comment on variables, yes I only do variables in one place only which is the topmost of the codes. Well for the Labels, hmmmm, would it be slower if you used more labels than the usual ones?

  5. #4
    CodeBorn's Avatar
    CodeBorn is offline Unknown Net Builder
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use Frameworks such as Symphony, or RoR: Frameworks can help you do different things at once and lay out the applications in a functional and maintainable way.
    You can always do coding in multi-frame text editors with syntax highlighting - no need to use frameworks ( in most cases you will Uninstall them, so - better not to start ).

  6. #5
    Derek's Avatar
    Derek is offline Newbie Net Builder
    Join Date
    Jan 2009
    Location
    Singapore
    Posts
    123
    Thanks
    4
    Thanked 5 Times in 4 Posts
    so do you guys code your applications using framework? any examples or demos of url developed using framework?

  7. #6
    Duegar is offline Newbie Net Builder
    Join Date
    Jan 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Great tips, few general things I like to add from my experience:
    - protect your code from security vulnerabilities: basic ones include SQL injections, XSS, etc
    - take care in designing the database backend (if you have one) because if not it will bite you further down the track
    - release application early and iterate later

    You can always do coding in multi-frame text editors with syntax highlighting - no need to use frameworks ( in most cases you will Uninstall them, so - better not to start ).
    I think the OP was refering to a framework as to speed up development (eg ruby on rails, ASP.NET) not a development tool.

    Cheers

  8. #7
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by Duegar View Post
    - take care in designing the database backend (if you have one) because if not it will bite you further down the track
    Oh yes! Slow queries will kill SQL performance.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

Similar Threads

  1. Which Programming Language do you know?
    By Aytac01 in forum Programming
    Replies: 48
    Last Post: 27 September, 2014, 13:07 PM
  2. What programming...
    By Coelho in forum Community Building
    Replies: 6
    Last Post: 30 June, 2010, 21:42 PM
  3. Programming
    By Sbfc_ in forum Monetizing
    Replies: 3
    Last Post: 7 June, 2010, 10:18 AM
  4. What was your first programming language?
    By nick09 in forum Programming
    Replies: 29
    Last Post: 13 July, 2009, 18:02 PM
  5. programming language for web
    By Eon in forum Web Design
    Replies: 5
    Last Post: 22 June, 2009, 20:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •