Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Feedback > Sorting by vote results in events/compos?
2013-01-20 06:48
tlr

Registered: Sep 2003
Posts: 1791
Sorting by vote results in events/compos?

Could we have automatic sorting by results per compo in the event view?
That would be nice in compos with on-line voting like in the crack intro music compo.
2013-01-20 09:31
CreaMD

Registered: Dec 2001
Posts: 3057
Not good for compos which don't have results based on CSDB voting. That means all party compos and all other online compos.

It would best implement simple javascrit layer allowing to sort table columns according to user desires. It's simplest to implement over the existing code.

roman

2013-01-20 10:20
chatGPZ

Registered: Dec 2001
Posts: 11390
voting.php/ctrl-a/delete
2013-01-20 15:27
Burglar

Registered: Dec 2004
Posts: 1105
Quote:
It would best implement simple javascrit layer allowing to sort table columns according to user desires. It's simplest to implement over the existing code.

even more spaghetti?!
2013-01-20 21:25
CreaMD

Registered: Dec 2001
Posts: 3057
What do you mean, Enno?
2013-01-21 03:26
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
dont let a vote/rank list tell you what is good or not.
listen to all and make up your own mind.

music is subjective, some like this, some like that.
its the most impossible to vote on, thats why eurovision song contest is such a mess..
2013-01-21 20:31
Burglar

Registered: Dec 2004
Posts: 1105
creamd, monkeypatching a rather big system as csdb on the frontend, which has no ajax-like framework or anything is a bad idea. it will create more spaghetti code and make csdb codebase harder to maintain.
2013-01-21 21:05
CreaMD

Registered: Dec 2001
Posts: 3057
Aha. So you think adding a completely separate layer that just does sortable on something that has sortable data in it is making a code less maintaineable? It seems pretty weird to me. To me it makes the code completely intact because it added on presentation layer. If this site is combination of PHP with html and doesn't use some sort of MVC philosophy then it's of course a bit less comfortably designed and then adding anything to it makes it harder to maintain.

You are right about one thing though.. having ajax/framework around some parts of the site (espcially around editing parts) would be really comfortable.
2013-01-22 08:19
Burglar

Registered: Dec 2004
Posts: 1105
it's a matter of knowing, not just thinking.

http://en.wikipedia.org/wiki/Monkey_patch#Pitfalls
http://www.nczonline.net/blog/2010/03/02/maintainable-javascrip..

2013-01-22 09:05
CreaMD

Registered: Dec 2001
Posts: 3057
I'm not sure if you understand the concept of the solution I proposed or just generally dislike the idea of solving the problems like that.

In this particular case. It's just one additional class added to the table (it would be just that in case this site was using e.g. standard jquery UI library). let's call the class "sorttable". That's all. It should work out of the box and can be re-useable all over the site. How does it break existing code or make it un-mantaineable in future. The table, (that is any table, and actually every table) has columns and heads. It's just adding sort of intepretation of the results for those who need it, it doesn't change the functionality of the site any way. It will still work without javascript and it will still work even when you add more columns or change practically anything in the table

You would prefer to make the whole sort thing in the code so it fits into the existing concept of how things work. That way you can still use ajax to make the update faster. Ok I don't mind. But I don't expect That solution coming anytime soon.

p.s.: only checked the links you provided briefly. I admit thjat you made interesting point. Ability to maintain order is one of my missing features... apart from many others.
2013-01-22 09:25
ChristopherJam

Registered: Aug 2004
Posts: 1409
Burglar, this wouldn't be a monkey patch - the CSDb codebase would be entirely unaffected, and none of its code or classes would be overridden.

The JS in question is loaded by the browser, and would act on the page content after CSDb delivers it.

The 'Don’t modify objects you don’t own' article you linked to isn't applicable either - no changes are being made to any JS library classes; the only thing a sorttable plugin does is reorder some DOM elements.

I'm in favour of it.
 
... 8 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Mike
Didi/Laxity
t0m3000/hf^boom!^ibx
rikib80
Jammer
Higgie/Kraze/Slackers
DanPhillips
Guests online: 130
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.6)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 The Demo Coder  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 What Is The Matrix 2  (9.6)
Top onefile Demos
1 Layers  (9.7)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 Morph  (9.5)
7 Dawnfall V1.1  (9.5)
8 Libertongo  (9.5)
9 Katzen-Video.mp4  (9.5)
10 Onscreen 5k  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Fairlight  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.0)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.047 sec.