r/Python • • Dec 09 '10

new stand-alone web2py database abstraction layer

http://web2py.com/AlterEgo/default/show/272
18 Upvotes

82 comments sorted by

View all comments

Show parent comments

1

u/mdipierro Dec 09 '10

It is not true a single file is difficult to extend and maintain. The dal.py file for example is divided into sections seperated by comments. Almost all functions are grouped into classes.

So far the issue of license never came up because web2py allows commercial closed source distribution of apps developer with web2py. I can see that if you want to use ONLY the DAL, it may be better for you to have a MIT/BSD vs a GPL license.

The point is that I am happy if you use this for free as long as you contribute back by giving your work for free too (that is what GPL says). Anyway, I will think about LPGL.

2

u/[deleted] Dec 10 '10 edited Dec 10 '10

Do you actually believe a single file of 5 freaking KLOC is not difficult to extend and maintain?

His argument about the GPL not being as liberal as BSD/MIT is exactly that

use this for free as long as you contribute back by giving your work for free

So it takes away your freedom to hide other parts of your code that use that library.

One may want to prevent other people from seeing their code for a number of reasons, It's a choice one should be free to make

BTW the GPL doesn't require you to give your work for free it just requires you to redistribute your work along with your sourcecode along with the GPL license

2

u/mdipierro Dec 10 '10 edited Dec 10 '10

Do you actually believe a single file of 5 freaking KLOC is not difficult to extend and maintain?

Yes. I have been doing so for 3 years. It is just a database abstraction layer not a parallel hybrid monte carlo algorithm for lattice quantum chromodynamics in 4 dimensional SU(3).

0

u/[deleted] Dec 10 '10

So at what point of domain complexity do you pull the line and split that in a 10-15 file package or multiple packages even?

Why are then all other database abstraction layers I know of split in multiple packages (or equivalents in respective language)?

2

u/mdipierro Dec 10 '10

I split them then the components have a use independently of the whole. In this case they do not.

0

u/[deleted] Dec 10 '10

Then why wasn't web2py one 20 or whatever KLOC file up until now? Since it's only a web framework.

2

u/mdipierro Dec 10 '10

Because the individual web2py modules "have a use independently of the whole" web2py. You may want to import only the dal or only the template system or only the validators.

→ More replies (0)