6 ms·
There are castles with no gates. I think problem is that current dynamic websites are sort of crippled already. Right now even simple shopping app requires UI
by jkot 12y ago
There are castles with no gates.
I think problem is that current dynamic websites are sort of crippled already. Right now even simple shopping app requires UI based on HTML + web. Not a chance to use command line, some automated devices etc... In future we might see radically simplified protocols/webservices for more universal access.
- Diederich 12y agoI hear what you're saying, but it doesn't have to be so. All of the web apps I make at work are all javascript in a page apps. But before I start doing any of that, I make a REST API. 100% of the interaction between javascript and the web server is REST. There are many reasons for this, but a key one is that it allows easy command-line or programatic interaction. Much easier than with traditional, server generated web apps.
- sbilstein 12y agoSame here. Increasingly products I work on do almost no server side templating; frontend templates call REST services that I can test with curl, postman, or other tools.
- tsax 12y agoAre there any downsides to this design?
- sbilstein 12y agoNot really, you can achieve this using a Rails (or rails-like thing like Play) very easily and use in their built CSRF, SSL, etc. but this type of design also makes it easy to build from scratch (which may lead you down the path of reinventing things). SPA + restful endpoints makes it easy to pick a library centric approach vs. a framework approach but it certainly does not preclude you from using a framework. I guess people who disable javascript don't get to use your site...but I don't really care about that segment of the population.
- Diederich 12y agoI've also found it easier to secure my apps. The attack surface seems to be much smaller.
- vinceguidry 12y ago> There are castles with no gates. Like, real castles?
- jkot 12y agoYes. Some towers in Ireland have entrance on 3th floor. And Meteora monasteries are build on top of rocks, with only crane access.