Hacker News new | ask | show | jobs
by p3rry 3043 days ago
Absolutely, i will even double quote it, "The thing about programming is that the devil is in the details". Actually the problem is that in my workplace we keep on creating few mini apps where i get the html done by any ui dev which usually take 3-4 hours or something. After that sometimes pluging it into a framework takes too much time, even though there are few api calls only. I was wondering if there is any simple SPA framework available where i can just add a simple controller and few routes and voila app is ready.
1 comments

In the general case, it's not really possible. However in specific cases it is. The key is in the fact that code reduces repetition. If it turns out that you build a lot of really similar SPAs, then you can write code that makes it very quick to churn out those SPAs. The problem is that nobody can write a general tool for that -- you need to think hard about your use cases and optimise the code to churn out those use cases. A good contractor may be able to build such a system. It would be costly up front, but could pay for itself over time -- as long as you get the analysis right and the SPAs really are similar.

This is pretty much how frameworks come into being. No (sane) programmer sets out to build a general purpose framework. Instead they start building code for a particular purpose. The framework is well suited for that purpose. Over time they add more generality to it until it's useful by a wide group of people. But the important thing to understand is that it's always going to be a more or less awkward fit for anything other than the original purpose. There was a great quote I saw somewhere that Rails is the perfect tool if you want to build BandCamp.

It's kind of unfortunate because what you really want is something simple so that you don't need expensive talent to use it. But the only way to get the simple thing is if you have the expensive talent to build it. But that's programming...