2 ms·
I think this two comments are good one. --- from the blog Garrett Says: February 2nd, 2012 at 3:19 pm At one of my last companies, all of our web GUI pages w
by eugenejen 15y ago
I think this two comments are good one.
--- from the blog
Garrett Says:
February 2nd, 2012 at 3:19 pm
At one of my last companies, all of our web GUI pages were structured that if you passed in a parameter to the query the result you got back was effectively the same data, but as a JSON dump. This was used internally by some of our own implementation and tools, and allowed the whole website to be scripted. Written by hackers, used by everybody. Its also good practice, too, because it allows for the separation of UI and data. As long as the UI logic is separate, you can validate the entire data-processing component through automated testing, leaving only the UI processing code to be tested manually as that actually requires a human to look at and see if things are working correctly.
Good design leading to better quality and testability.
esr Says:
February 2nd, 2012 at 3:22 pm
>Good design leading to better quality and testability.
Damn. Garret, can you email me more details? That sounds like a good case study for the second edition of TAOUP.
- lurker17 15y agoI read this technique in the Pragmatic Programmers' "Agile Web Applications with Rails" 5 years ago. It was already standard then.