Skip to main content

grammar - An error message should display or should 'be' displayed?


If the writer means to say that an error message should 'appear' can he phrase the sentence as 'When user clicks the button, an error message should display' or is it more correct to say 'When user clicks the button, an error message should BE displayed'?


English is not my native language and I don't know grammar much but I have a feeling that first sentence is wrong i.e. error message should display because 'display' is an action (verb) that has to be performed on an object. I've never seen the use of word display like this.


Can someone please point out to an article which supports the argument that we can not say 'error message should display' and it should rather be 'should be displayed'? provided my understanding is right. Please correct me if I'm wrong.



Answer



Reg is right that the middle construction "the message should display" is grammatical and would be understood; but it is not how "display" is usually used in English.


"Display" is normally transitive, though the subject can be either the person or thing that causes the message to appear ("the program displays a message") or the surface or medium on which the message appears ("The screen was displaying a warning message").


The only intransitive use I can think of is the special sense of birds or animals showing some prominent feature as part of combat or mating rituals: we can say "The cock displayed to the hen".


Comments

Popular posts from this blog

Is there a word/phrase for "unperformant"?

As a software engineer, I need to sometimes describe a piece of code as something that lacks performance or was not written with performance in mind. Example: This kind of coding style leads to unmaintainable and unperformant code. Based on my Google searches, this isn't a real word. What is the correct way to describe this? EDIT My usage of "performance" here is in regard to speed and efficiency. For example, the better the performance of code the faster the application runs. My question and example target the negative definition, which is in reference to preventing inefficient coding practices. Answer This kind of coding style leads to unmaintainable and unperformant code. In my opinion, reads more easily as: This coding style leads to unmaintainable and poorly performing code. The key to well-written documentation and reports lies in ease of understanding. Adding poorly understood words such as performant decreases that ease. In addressing the use of such a poorly ...

Is 'efficate' a word in English?

I routinely hear the word "efficate" being used. For example, "The most powerful way to efficate a change in the system is to participate." I do not find entries for this word in common English dictionaries, but I do not have an unabridged dictionary. I have checked the OED (I'm not sure if it is considered unabridged), and it has no entry for "efficate". It does have an entry for "efficiate", which is used in the same way. Wordnik has an entry for "efficate" with over 1800 hits, thus providing some evidence for the frequency of use. I personally like the word and find the meaning very clear and obvious when others use it. If it's not currently an "officially documented" word, perhaps its continued use will result in it being better documented.