? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor PhilETaylor - open - 4 May 2017
avatar PhilETaylor PhilETaylor - change - 4 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2017
Category Libraries
avatar PhilETaylor PhilETaylor - change - 4 May 2017
Labels Added: ?
avatar PhilETaylor PhilETaylor - change - 4 May 2017
Title
Document use of @ error surpressor
Document use of @ error suppressor
avatar PhilETaylor PhilETaylor - edited - 4 May 2017
avatar zero-24
zero-24 - comment - 4 May 2017

isn't this comment true for all 3 usages of the @ in that method?

avatar PhilETaylor
PhilETaylor - comment - 4 May 2017

True - moved to docblock now

avatar zero-24
zero-24 - comment - 4 May 2017

I have just also added the missing *. Thanks.

avatar PhilETaylor
PhilETaylor - comment - 4 May 2017

cool no worries.

I just dont want someone (aka without experience/without context) seeing all the error suppressing, and refactoring it in the future...

avatar elkuku
elkuku - comment - 4 May 2017

I have tested this item successfully on 92f4714

I believe you have an extra blank line - @zero-24 might want to correct that? ?

? for expanding the "docs"


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15814.

avatar elkuku elkuku - test_item - 4 May 2017 - Tested successfully
avatar csthomas
csthomas - comment - 4 May 2017

I have tested this item successfully on b2cee32

For me it is OK


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15814.

avatar csthomas csthomas - test_item - 4 May 2017 - Tested successfully
avatar elkuku
elkuku - comment - 4 May 2017

I have tested this item successfully on b2cee32


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15814.

avatar elkuku elkuku - test_item - 4 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 May 2017

RTC after two successful tests.

avatar rdeutz
rdeutz - comment - 5 May 2017

@PhilETaylor please provide at least one sentence to explain what this is about, will make my life a bit easier

avatar rdeutz rdeutz - change - 5 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-05 16:30:43
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 5 May 2017
avatar rdeutz rdeutz - merge - 5 May 2017
avatar PhilETaylor
PhilETaylor - comment - 5 May 2017

It will make no difference whatsoever to you or your life... now.

In 2 years time when some newbie refactors or removed the @ supressor and all hell breaks loose, then you would have been grateful of notes to stop a newbie refactoring/removing @ suppresors.

In my life, EVERY SINGLE use of an @surpressor should be documented as to why its being used, as 99% of the time you are doing something wrong if you are using one. This use case is one of the 1% where its perfectly ok to use it, documenting that is better too.

Like many experienced developers - I have wasted hours and hours debugging issues hidden by someone just using @ all throughout their code without knowing what they were doing.

Notes/Documentation that stops developers in 2 years misunderstanding and creating issues is also a good thing. How many times has Joomla released bugs based on flawed understanding of the original intentions.

avatar rdeutz
rdeutz - comment - 5 May 2017

What are you talking about? I asked for one sentence explaining what this PR is about.

avatar brianteeman
brianteeman - comment - 5 May 2017

add inline documentation so that someone doesn't refactor to remove @ error suppression in the future.

a one line description as requested ;)

avatar PhilETaylor
PhilETaylor - comment - 5 May 2017

What are you talking about? I asked for one sentence explaining what this PR is about.

No you never. You made no reference to "the PR" ... One assumed you meant you wanted to know generally what it was about.

So when I receive an email from you, out of context, how am I meant to know what you want :)

screen shot 2017-05-05 at 18 17 48

avatar elkuku
elkuku - comment - 5 May 2017

As title says?...

avatar rdeutz
rdeutz - comment - 5 May 2017

When I comment on a PR I am usually not speaking about the football match last weekend :-) Anyway, I hope you got the point.

avatar PhilETaylor
PhilETaylor - comment - 5 May 2017

Anyway, I hope you got the point.

That you were too lazy to read. Yup. Got that thanks.

avatar PhilETaylor PhilETaylor - change - 5 May 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 5 May 2017
avatar rdeutz
rdeutz - comment - 5 May 2017

Seems not so I need to explain it a bit more. You added a link to another PR, why you made this PR was part of a discussion within the PR. So I had to figure out why you made this PR. Check if the intention and the PR are inline. I did it and I merged the PR. If that is lazy, then I don't know.

Add a Comment

Login with GitHub to post a comment