I’ve been working on an Ember-based autocomplete view for a project I am working on, available in this gist. I posted a comment on Twitter for feedback to the approach/design etc to get some feedback. @trek graciously responded and we had a brief debate about UI libraries etc. I received no real guidance from anyone and I am still seeking such.
I want to make an important note that I am not trying to make a UI library etc, just a widget for a particular purpose. My intention is to not start this debate.
I’ve attempted this multiple times with multiple rewrites and I still end up at the same place. I assume that means I’m not wrong but I want to be sure and gauge others on their opinion.
Another note, the reason the majority of the code is in the view is because it belongs in the view. It’s all view state stuff etc. Of course I could break this out into templates and other views but until I need to re-use anything it’s just a waste of effort for this use case.