M
Matt Kruse
Since this topic has come up several times in other threads, I thought I'd
make a separate thread and gather opinions from (hopefully) a more varied
range of newsgroup participants.
What are your thoughts on the development and use of generalized, reusable
javascript libraries?
Discussion points:
1) Is the overhead of a 25k (for example) .js file too much for a typical
(public) web site? What if it's cached, and used on a number of pages? How
about if it's used on an Intranet? What if the library is 25k, but the user
only actually uses about 15k of the code? Is there a limit to acceptable
size of a reusable library?
2) Is it beneficial to create a generalized library that contains solutions
for a wide range of problems, and reuse that library on a number of pages?
Or should those pages only include the exact functions/code that it needs?
3) If a library can be created which will solve a complex problem in a way
that is reusable and can be implemented into a working page by users without
a lot of javascript knowledge, is this a valid and recommended thing to do?
Even if the library solves problems an individual user may never encounter
in their situation, causing the library to grow bigger than it needs to be
in the given situation?
4) What are the good points of developing reusable libraries? What are the
bad points? Which one outweighs the other, and in what situations might the
opposite be true?
I'm looking forward to hearing what others in this group think!
make a separate thread and gather opinions from (hopefully) a more varied
range of newsgroup participants.
What are your thoughts on the development and use of generalized, reusable
javascript libraries?
Discussion points:
1) Is the overhead of a 25k (for example) .js file too much for a typical
(public) web site? What if it's cached, and used on a number of pages? How
about if it's used on an Intranet? What if the library is 25k, but the user
only actually uses about 15k of the code? Is there a limit to acceptable
size of a reusable library?
2) Is it beneficial to create a generalized library that contains solutions
for a wide range of problems, and reuse that library on a number of pages?
Or should those pages only include the exact functions/code that it needs?
3) If a library can be created which will solve a complex problem in a way
that is reusable and can be implemented into a working page by users without
a lot of javascript knowledge, is this a valid and recommended thing to do?
Even if the library solves problems an individual user may never encounter
in their situation, causing the library to grow bigger than it needs to be
in the given situation?
4) What are the good points of developing reusable libraries? What are the
bad points? Which one outweighs the other, and in what situations might the
opposite be true?
I'm looking forward to hearing what others in this group think!