Re:JavaScript is not suitable for large web apps
by Arelius on Thursday June 14, 2012 @06:19PM
(#4113816)
Ok, seriously, I'm sort of sick of the file-stew meme in software development these days. Our editors aren't particularly designed for the one-file-per-function method of development that's been ohh-so-common. Serious, if a file is under a hundred lines of code, it probably doesn't need to be a separate file, it only undermines the grouping value that files are useful for.
[ Parent
| on HN ]
Re:JavaScript is not suitable for large web apps
by voidr on Friday June 15, 2012 @01:16AM
(#4115150)
I usually do the following:
- if function A and B are always used together, than they are one file.
- if linecount gets to big, split A and B into separate files
- if function C is shared between modules than it belongs in it's own file
So far it worked out great.