Vue-Model

Languages and libraries

frontend javascript library

SHOW HN2017

109points
44comments
#411of 2,242 in 2017
Top 19%of 2017 by points

How HN took it

MixedNo clear lean

3 positive, 6 neutral or asking, 1 mixed, 7 critical, out of 17 comments about the project. Thread score -0.07.

Design: 1 for, 6 againstIdea: 2 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple, elegant model layer that fills a gap for SPA developers

    From 1 comment
    • I'm usually a Django backend developer doing the whole server-rendered static html type sites, but I've attempted to venture into the world of single page apps a few times. The…
      davidscolgan on HN
  • Familiar to backend developers

    From 1 comment
    • As a backend developer let me tell you this looks so familiar. This is a good thing because the frontend MVCs did quite clicked for me yet.
      tudorconstantin on HN

Objections

  • Unsaved edits persist in global model state; needs form handling

    From 2 comments
    • But how do I know when to fetch? With my approach global state is not modified until the user explicitly does it. Modifying customer.name and not saving it will persist until the…
      IgorPartola on HN
    • In my apps customer will be a global via VueX. If I go to the Edit Customer view, change customer.name, but don’t save, the change will be visible throughout the rest of the app:…
      IgorPartola on HN
  • Naming conflicts with existing 'vue model' name

    From 1 comment
    • I like it but the naming is rather weird. 'vue model' is heavily used in the vueniverse.
      28inch on HN
  • Violates single responsibility principle per critics

    From 2 comments
    • There are many better ways to manage front end state that don't actively encourage violating SOLID principles, SRP and OCP in particular. Obviously no one cares about SOLID…
      lucisferre on HN
    • You happily embrace violations of single responsibility?
      lucisferre on HN

Requests

  • Add form handling and reset support

    From 2 comments
    • In my apps customer will be a global via VueX. If I go to the Edit Customer view, change customer.name, but don’t save, the change will be visible throughout the rest of the app:…
      IgorPartola on HN
    • > And if I go to the edit view, make changes, then exit without saving, then go back, the view should be reset. This is business logic and it's dependent of the UI. If you have a…
      DanitaBaires on HN
  • Add WebSocket updates from the server

    From 1 comment
    • In my apps customer will be a global via VueX. If I go to the Edit Customer view, change customer.name, but don’t save, the change will be visible throughout the rest of the app:…
      IgorPartola on HN
  • Support repository pattern

    From 1 comment
    • I like this, but I feel that a repository pattern would be better suited (Repo.update(model) vs model.update(), model being ).
      archseer on HN

Questions

  • Is it production-ready or a toy project?

    From 1 comment
    • Nice. Will give it a whirl in my next project. Question for the author: is this "production-ready", or is it a toy project? If I start using this, do I have to worry about you…
      enraged_camel on HN
  • What happens when fields change without saving?

    From 1 comment
    • What exactly happens when the user modifies the field customer.name but doesn’t hit save/trigger customer.http.update()? I usually resolve this by mirroring customer.name to…
      IgorPartola on HN

Alternatives named

  • Vuex

    From 2 comments
    • Neat! Is this meant to replace Vuex / some other store?
      ElatedOwl on HN
    • Thanks for saying that. It sounds like you and I are quite similar. I've never built a full SPA because I it's _so_ much easier and faster for me to build "traditional" apps.…
      aarondf on HN
  • Ember

    From 2 comments
    • If you’re looking for something more Django flavored for your spa, there’s always Ember[0] [0] https://emberjs.com/
      Rifu on HN
    • You might wanna look into EmberCLI. It's not as trendy or popular as Vue or React (rendering speed is a big reason), but it might be what you're looking for.
      drspacemonkey on HN
  • Feathers.js

    From 1 comment
    • @author: please take a look at http://feathersjs.com - your work is very interesting, but you should make it a layer on top of a modular backend service and feathers would be a…
      softwarelimits on HN
  • Laravel Spark

    From 1 comment
    • Laravel Spark has similar functionality without the need for a plugin which makes it more reusable. https://spark.laravel.com/docs/4.0/forms
      hellovue on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/15461000)