Should there be a 'lib' folder for 3rd party code libraries?

21.4% 3
71.4% 10
7.1% 1

14 Datum 2009-07-23 16:33

Forums / Cotonti / Core Labs / Archive / Poll: New folder in main package

Add a folder to Cotonti's core package for 3rd party code libraries

GHengeveld
#1 2009-07-23 16:33
While developing the new PFS system I was faced with the implementation of an external (3rd party) code library. This package should remain as it is, so it's best placed in its own folder. My idea is to differ from the coding guide and add a new folder for external libraries. This would be most logically named 'lib' or 'libraries'. This folder should then be used for 3rd party code packages such as API libraries (s.a. Flickr, Facebook etc), a Flash upload system (SWFupload) and dynamic thumbnail generation with SLIR. It's actually much like the current 'js' folder, which also contains external code (jQuery), but only javascript files.

My personal preference goes to /lib as it would then reside next to the /js folder and because 3rd party code isn't necessarily used for the 'system' itself (could be used only for plugins or modules).

Dit bericht is bewerkt door Koradhil (2009-07-23 16:42, 14 jaren ago)
Sergeich Online
#2 2009-07-23 17:16
agree
Trustmaster
#3 2009-07-23 19:27
Agreed on /lib.
May the Source be with you!
esclkm
#4 2009-08-14 04:40
may be all JS replace into this folder?
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
GHengeveld
#5 2009-08-14 04:51
/lib is more than a collection of JS files, it's supposed to be used only for non-Cotonti 3rd party code. jQuery could be placed in /lib though.
Kilandor
#6 2009-08-14 11:12
Well I have a plan on moving uploadify to more of a plugin anyways that i've seen the workings, as it will be a bit more logical and allow it to be used else where, and or even replaced.