-
Website
http://buildingbrowsergames.com -
Original page
http://buildingbrowsergames.com/2008/07/07/reducing-repetition-ph/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
gabrielbianconi
1 comment · 1 points
-
Luke
82 comments · 1 points
-
spatlabor
1 comment · 1 points
-
HughCompton
2 comments · 1 points
-
obat jerawat
1 comment · 1 points
-
-
Popular Threads
Actually if you try to keep your code dry you could also expand this principle to cover your database design, too. Why not only have one stats table instead of three or more? Simply call one column "type" again (with ENUM) to choose which stats you want to select, add, delete or update. I haven't read the whole code absolutely attentively, but I ran over it ;) . The tables seem to be pretty exactly the same.
Greetings from FEtMab
Sepp