Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Stengo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
Stengo
10y ago
Convention does have its merits, though. Knowing a pattern makes reading and writing code much easier. So having structured, known ways to decouple views (or every other component for that matter) is valuable.
2.
▲
by
Stengo
10y ago
I think this gets to the heart of this discussion. Since the term 'controller' is so vague everybody has a different understanding. In iOS development there are UIViewControllers which are very tightly coupled to the UI, but are o
3.
▲
by
Stengo
10y ago
There are essentially two problems with combining the view and the controller: a) Writing tests for the combined class is incredibly hard. Since you are relying on the UI framework to call your code you have very little control over when so