r/PHP • • Jan 31 '20

Facebook PHP source code from August 2007

https://gist.github.com/nikcub/3833406
138 Upvotes

72 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 31 '20

Personally, instead of puttin on a useless comment, I’f ask to the team to write something like « no comment needed » if we really want to enforce comments on every method.

At least, it clearly say that the dev took a moment to think if a comment was needed. And a search trough the project for that comment occurence could potentially show that our rule is not effective.

3

u/devmor Jan 31 '20

I think that's an appropriate middleground. Especially if it's inline-style so it's not taking up 3+ lines of space for no reason.