5 ms·
The code example he gave in ruby and PHP demonstrate perfectly that the PHP version is verbose (not to mention that the ruby code isn't the most concise one). I
by kailuowang 13y ago
The code example he gave in ruby and PHP demonstrate perfectly that the PHP version is verbose (not to mention that the ruby code isn't the most concise one). It could be just me, who, as a develop, is sensitive to every single unnecessary characters in the code, which happens a lot in that couple lines of php code.
- memla 13y agoThat example is framework specific. Change the php framework to laravel and this: $topic = $this->get('model.Topic')->find($topic_id); $this->get('guardian')->ensureVisible($topic); becomes this: $topic = Topic::find($topicId); Guardian::ensureVisible($topic);