3 ms·
I recently wrote an embed widget for a client, a simple 5 field form with some dynamic drop-down changing and a date picker. 40/50 lines of js maybe with a simp
by mattmanser 10y ago
I recently wrote an embed widget for a client, a simple 5 field form with some dynamic drop-down changing and a date picker. 40/50 lines of js maybe with a simple date picker (pickadate I think).
The client showed me a couple of examples of what they wanted.
One used Angular to make the widget. For a 5 field form that transitions to a "thanks, your order is accepted" div.
Personally, I would consider firing any-one who thought using angular in that scenario is a sensible thing to do.
- bshimmin 10y agoSometimes this can be a case of Maslow's hammer, though - if you work for a shop where they've standardised on Angular (or whatever) as their go-to solution for everything, you can end up with massive overkill in some scenarios while, overall, it's probably still cost-effective and perhaps somewhat sensible to have a standardised approach. I say this as someone who is no fan of Angular or of this sort of attitude in general - but, on the other hand, I have many times seen the harm that results from in-house micro-frameworks (which tend to be poorly documented, poorly tested, overly specific, and a disaster waiting to happen when the in-house expert decides to get a job somewhere else).
- ehnto 10y agoCompletely agree, you don't need a framework at all for a task like that. We have had some pretty crazy implementations of simple static sites. One had not a single line of HTML as it was all template engine tags instead, that one was silly.