Results 1 to 7 of 7

Thread: Useful Tips for Web Programming

  1. #1

    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. #2
    Join Date
    Feb 2009
    Location
    Queensland, Australia.
    Posts
    90
    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?

  3. #3
    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?

  4. 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 ).

  5. #5
    so do you guys code your applications using framework? any examples or demos of url developed using framework?

  6. #6
    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

  7. 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, 12:07 PM
  2. What programming...
    By Coelho in forum Community Building
    Replies: 6
    Last Post: 30 June, 2010, 20:42 PM
  3. Programming
    By Sbfc_ in forum Monetizing
    Replies: 3
    Last Post: 7 June, 2010, 09:18 AM
  4. What was your first programming language?
    By nick09 in forum Programming
    Replies: 29
    Last Post: 13 July, 2009, 17:02 PM
  5. programming language for web
    By Eon in forum Web Design
    Replies: 5
    Last Post: 22 June, 2009, 19: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
  •