Lurker News

Comments (487) 78 threads

Show all comments

Showing thread 14 of 78

kurtvarner1 reply#
I've always wondered why all torrent sites look like ass. Nice job with this.
rplnt1 reply#
It's tracker sites that often look like ass.
jsprinkles3 replies#
Gazelle is awful, and far too many private trackers use it.
tbeseda1 reply#
Gazelle really is bad. Is there an alternative? Maybe Ruby or Python?

Continue this thread — 1 reply

danberger2 replies#
what's so awful about it?
arrakeen#
once upon a time, I thought it might be fun to hack on the gazelle project and give back to the community. so I grabbed the source from svn, opened one file, and promptly rm -fr'd.

I have nothing against the UX of gazelle, but the code is very, very bad PHP

phos1 reply#

  - Custom wrapper around MySQLi, which doesn't support parametrized queries
  - No separation of Model, View and Controller (in 10 lines, there's SQL, HTML, JS, PHP and if you get lucky, PHP generating JS or piecing together HTML)
  - Their idea of IRC integration is to write a bot in PHP, where different pages send it raw IRC commands to execute
  - is_numeric used for most SQL injection checks
  - User information stored in two tables (users_main, users_info), for no apparent reason
  - About 1/3 of the code is in a file named script_start.php, which defines a mess of global variables and functions
  - They store PHP-serialized data in MySQL TEXT fields
  - They store pipe-separated data in MySQL TEXT fields
I could go on, but you get the idea.
nddrylliog#
Interestingly, movies.ioi is a relatively clean rails app.

Sure, we still have to refactor our TMDb client into a separate lib, stuff like that. But otherwise good clean MVC.

kiranryali1 reply#
Is there anything better?

Continue this thread — 1 reply