Posts: 1,429
Threads: 321
Joined: Oct 2010
Reputation:
0
What advice do you have for people who are wishing to create a user-friendly script?
My advice is to try and use dialogs where possible, they can take time to script but its well worth it in the long run.
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
About you advice, I dissagree. Dialogs can be a nasty thing when you need to do something quickly and you are in a vehicle for example....
My advice: lots of help messages. A user should NEVER need to think how to do something, unless that's the point of it.
Posts: 166
Threads: 0
Joined: Feb 2013
I've actually considered going one stage further than that, and never using "UPDATE" on user accounts at all (I considered this for the SQL port of y_users and may yet still implement it). Basically, whenever the user's data is saved, add a NEW row to the database with a timestamp, to be used along with the userid as an index. Then when they log in use "ORDER BY timestamp DESC LIMIT 1" (or whatever the exact SQL is) to only select the latest version of their account (indexes are used by both "WHERE" and "ORDER BY" clauses, so that would be the best way to do it).
This gives you (and the user if you so choose) a complete trackable account history. How this affects usability for them I don't know, the conversation kind of veered off slightly and I followed that. Sorry.
Don't worry about the number of rows created - if ******** can use SQL, your SA:MP server can do this!
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Can someone point me to SQLite performance tests? My domain is MySQL/PostgreSQL, and the threading is really big advantage for me when choosing between mysql or native sqlite. ******** had problem with php so they created hiphop, so I don't really believe MySQL (MariaDB DBMS now) is the best choice.
Posts: 166
Threads: 0
Joined: Feb 2013
HipHop IS PHP, and even if it wasn't that has nothing to do with MySQL so I don't see how you can draw that conclusion.