News for hackers. Stuff that matters.
Re:What.cd's Gazelle on GitHub by wdewind on Wednesday July 10, 2013 @11:09AM (#6020218)
https://github.com/WhatCD/Gazelle/blob/master/classes/wiki.c...

Yeah, not to be negative, but it literally has SQL and HTML in one file. Ooof.

Re:What.cd's Gazelle on GitHub by kurrepalt on Wednesday July 10, 2013 @01:50PM (#6021556)
Yes, the thing I also noted first was that it doesn't have any bootstrap/router (only 'bootstrap' is the one that's included at the top of each .php-file, wordpress-style). Development must have been pure pain. :(

I really understand why people hate PHP so much when all they get to see is purely non-optimized shit. It generally has a really bad reputation which it doesn't deserve. Especially in HN-circles.

Re:What.cd's Gazelle on GitHub by wdewind on Wednesday July 10, 2013 @09:32PM (#6023984)
Yes I agree wholeheartedly. There are two very fair knocks against PHP: it's not the fastest, and the API uses somewhat inconsistent standards and conventions (isset vs. is_array for instance...so frustrating). But for the slowness aspect, it's not so slow that you are really hindered by this unless you are doing something that requires very intense performance, in which case why are you using a higher level language anyway. Pretty much the rest of its bad reputation is undeserved, and the downsides are on the level of give and take you get with any other language.
Re:What.cd's Gazelle on GitHub by mercurial on Wednesday July 10, 2013 @02:13PM (#6021748)
I guess coding standards where that locality trumped separation of concerns. Also, I find string interpolation in SQL kind of hot. Especially when magic quotes are deprecated.

I'm sure you can do nice things in PHP if you try hard enough, but you sure don't need to make any effort to do something absolutely terrible.