Question

I believe there is a common problem when programmers or software designers encode things which properly belong to the presentation as in the user interface into the data.

I'm sure it has a name everybody uses but just now when I wanted to suggest it as a topic for some people involved in data programming I couldn't think up any term that got useful Google hits.

One example of a problem of this sort would be including all your style information directly in your HTML.

One example of avoiding this problem would be keeping all your strings outside the code to allow localization and internationalization.

What do programmers usually call this fault?

(If this really belongs on programmers.SE feel free to migrate it.)

Was it helpful?

Solution

I don't know of a concise name for this smell but it obviously violates the principle of "separation of presentation and content" and it's a violation of "separation of concerns". Wikipedia mentions the HTML example in the article on SoC.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top