开发者

How to speed up Javascript development in Eclipse and JSPs?

开发者 https://www.devze.com 2023-02-28 03:38 出处:网络
in my everyday coding I work on J2EE projects where I deal with Javascript in JSP pages in Eclipse. I find it very annoying that every time I modify some JS code in a JSP or in a .js file, it takes a

in my everyday coding I work on J2EE projects where I deal with Javascript in JSP pages in Eclipse. I find it very annoying that every time I modify some JS code in a JSP or in a .js file, it takes a very long time to have it updated on the server. I've开发者_如何学C been a JS coder for a while and one of the things I enjoyed is the easyness of editing code, it just takes a page reload if you work on a static page. Anyway sometimes I cannot take this approach and I need to have the code working inside the JSP. So I was wondering if there is a way to speed this up... One of the things I noticed is that updates to JSP take a small amount of time when the project is small and they take more and more as the project size grows. How do I speed it up?


To solve this kind of problem, one of my general strategies or future goals is to get more into test-driven development.

I think I must learn how to cleverly mock things in my data storage layer, so that there is no database i/o or file i/o.

In a similar way, many resource-intensive parts in the business logic layer can be mocked. If you had isolated the tiers properly, you can develop JS and test locally.

0

精彩评论

暂无评论...
验证码 换一张
取 消