SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Cleaning up code. Is writting again a option?

    I had been working with my team on a web app and going back n forth on designs and HTML layout changing on a large scale as we were heading for deadline. Now as deadline is gone. Lot of HTML is just wasted n to me it's a lot coz I know HTML n what's should be there n cleaning up will get too messy. So should I be doing clean code again or should I be more focus on enchaning it's UI and user experience?
    All those who wander aren't lost.

  2. #2
    SitePoint Addict dbr's Avatar
    Join Date
    Aug 2006
    Location
    Tucked away in the mountains...
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does it validate?
    That's a big and worthwhile part of cleaning up code, then I'd enhance the UI.

    And then if you want to consider what you have already done as simply a prototype, you could start over with a better UI and cleaner code.
    "Three components make an entrepreneur:
    the person, the idea, and the resources to make it happen."
    Anita Roddick ~British entrepreneur
    dbr founder of: ProximityCast.com

  3. #3
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,278
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I rewrite all the time. : )

    If this code is going to get used a lot in the future, you'll be saving yourself a lot of work if you rewrite now. Less code there is, the less there is to break.

  4. #4
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i just rewrite a page. before it was on 279 line code. now its 179 only
    All those who wander aren't lost.

  5. #5
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I guess rewritting is good. for two reason
    1. my guilt is not accepting that i do a work which i am paid for and its dirty n hard to read.
    2. its very hard to read.

    The only thing i get bothered with is my colleagues being an ass if there php/oracle coding get disturbed. coz they are not at all friendly
    All those who wander aren't lost.

  6. #6
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Assuming you don't disturb the PHP code blocks (which should be easy to see) and you have managed to reduce the bloat by more than a third it should probably also consume less bandwidth and save future major re-editing time.


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
  •