143 points · by fadymak · 10y ago · 44 comments
2. BOTH react and Vue can be learnt in a day
3. BOTH can seem daunting when you're making production app (Vuex, redux, webpack, Vue-router, react-router...)
So, I don't not agree with 'learning curve' that's thrown at React. Both Vue and React are amazing. If you want to use them properly, you as a developer has to spend the time to learn.
Facebook really should have named the Virtual DOM something different to avoid this confusion. The "Virtual DOM" is not an alternative to the DOM (which would be impossible), it is just a string diffing algorithm to minimize the number of DOM mutations required.
2 and 3 are entirely subjective.
I learnt it/redux/react-router on Saturday.
<input type="radio"
name="branch"
:id="branch"
:value="branch"
v-model="currentBranch">
<label :for="branch">{{branch}}</label>
I'm using React to avoid having to use a markup DSL (á la Angular), not because of the Virtual DOM. That's just a bonus.So you pretty much end up with the same level of complexity as more complicated solutions in the real world context.
Disclaimer: I'm the author.
The Heroku instance is currently overwhelmed with all the traffic. You can download the code from the GitHub repository here: https://github.com/coligo-io/real-time-analytics-node-socket...
and run it using: node app.js
- Events / actions as main abstraction.
- Support for degradation for old devices, browsers, corporate networks.
- WebSocket is not very good at multiplexing. One discrete TCP connection per socket (opposite direction of what HTTP/2 is going)
- Binary support inside JSON (`Buffer` etc)
A lot of people look at SocketIO as a client-side only library, but it's not. It has connection implementors written on the server side to support things like multiplexing over one channel.
Were you able to implement auto-reconnect with backoff? That's one of the most important features that something like Socket.io gives you.
It's really common for web sockets not to work through corporate content filters and old load balancers.
If you can block them (ie: the user needs to login), you don't need to wrory.
Not Microsoft. It's unsupported as of 2 months ago.