Re:Friends don't let friends use Eclipse
by geetee on Tuesday November 12, 2013 @12:10PM
(#6719045)
Gotta ask. Why do you have a 12K line JS file?
[ Parent
| on HN ]
Re:Friends don't let friends use Eclipse
by davidjgraph on Tuesday November 12, 2013 @12:11PM
(#6719061)
Because it's a relatively large JavaScript library. Total line count is in the several hundreds of thousands.
The file in question is for this class http://jgraph.github.io/mxgraph/docs/js-api/files/view/mxGra....
1) It's the main public API to the the library, there's no logical way to split it.
2) We'd have a couple of thousand, very-annoyed-cos-they-paid-quite-a-lot-for-it customers, frankly, go apeshit if we split the file and broke their app on the next update because we wanted to switch IDE...
This is a third party library or your own? Why can't you break it into multiple files and concat them with a build step?
Re:Friends don't let friends use Eclipse
by philliphaydon on Tuesday November 12, 2013 @12:22PM
(#6719165)
He could if he wanted to, but he doesn't want to have a maintainable library.
To clarify, you feel that using Eclipse is more work than breaking a file into multiple shards and setting up a build process to recombine them?
(I'm not trying to be snarky and I apologize if the above comes off that way.)
Well yeah, if you have to use one specific editor because the file is larger than most can handle that should be a signal that the file is the problem.
I for one think that developing a project in multiple files that can all be understood on their own is the only sane way to develop at all, regardless of editor choice.
Re:Friends don't let friends use Eclipse
by WalterSear on Tuesday November 12, 2013 @01:57PM
(#6720002)
Contemporary javascript development without a build step?
Re:Friends don't let friends use Eclipse
by nickdoesdesign on Tuesday November 12, 2013 @12:48PM
(#6719368)
Even if it isnt a part of the normal build, a separate one that does that would help immensely. AMD makes this ridiculously easy, and grunt etc will help him even further.