Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
241.
▲
by
mjw
17y ago
I wonder what this guy thinks about Scala, which was named after this concept of a Scala(ble) language...
242.
▲
by
mjw
17y ago
Just noticed this. Agreed, although I think we may be working from different definitions of MVC. I read it as a broad (but still useful) term describing a class of related architectural patterns designed to decouple presentational logic fro
243.
▲
by
mjw
17y ago
You appeared to be making a hard assertion that "The MVC abstraction ... cuts the wrong way for a client-server application" Implying that there's something fundamental about MVC-like patterns which makes them unsuitable for client-server a
244.
▲
by
mjw
17y ago
Genuinely interested here in what you'd propose as an alternative. Separating model logic from presentational logic helps me a lot in client side code. Then the 'two models' problem seems inescapable if you want to divide the load of model-
245.
▲
by
mjw
18y ago
Sorry it bolloxed my formatting. Note to these people: tell us how your code formatting works, somewhere near the goddamn input field
246.
▲
by
mjw
18y ago
OK. Like so: module SpecialBehavioursForClass def extended(klass) klass.class_eval { ...do anything you like to classes including these behaviours as though you're in their class definition block itself... } end def special_clas
247.
▲
by
mjw
18y ago
(where by 'one langauge' i obviously mean one of Ruby and Python)
248.
▲
by
mjw
18y ago
Ruby doesn't have metaclasses, this is true. It won't let you subclass 'class'. However it will let you subclass 'Module', which is the superclass of Class, and you can use this to achieve similar ends if not quite as elegantly. The way cla