How to have a maintainable and manageable Javascript code base
        Posted  
        
            by 
                dade
            
        on Programmers
        
        See other posts from Programmers
        
            or by dade
        
        
        
        Published on 2012-09-25T02:37:46Z
        Indexed on 
            2012/09/25
            3:49 UTC
        
        
        Read the original article
        Hit count: 404
        
I am starting a new job soon as a frontend developer. The App I would be working on is 100% Javascript on the client side. all the server returns is an index page that loads all the Javascript files needed by the app.
Now here is the problem:
The whole of the application is built around having functions wrapped to different namespaces. And from what I see, a simple function like rendering the HTML of a page can be accomplished by having a call to 2 or more functions across different namespace...
My initial thought was "this does not feel like the perfect solution" and I can just envisage a lot of issues with maintaining the code and extending it down the line.
Now I would soon start working on taking the project forward and would like to have suggestions on good case practices when it comes to writing and managing a relatively large amount of javascript code.
© Programmers or respective owner