Tagged Questions
8
votes
4answers
357 views
Should database queries be abstracted out of the page itself?
When writing page generation in PHP, I often find myself writing a set of files littered with database queries. For example, I might have a query to fetch some data about a post directly from the ...
3
votes
1answer
407 views
How is the facade pattern different from abstraction layers?
I just read about the facade pattern and found this example where a client (user of a computer) invokes a startComputer() method which calls on all the complex stuff:
Source: wikipedia
/* Complex ...