I agree that this is one of the most useful things that you can do and one of the most commonly overlooked for whatever reason. I can't underestimate the number of times I've worked with someone who is looking in seemingly random places to solve an error instead of tracing backwards from the error message in front of their face.
HN user
alevans4
I agree. JSX is supported but in my experience, very rarely used.
I spend a good amount a time answering questions in the Vue StackOverflow tags. While this is documented, it's nevertheless something a huge amount of people stumble over. I'd say the change detection caveats are right behind "this" issues (which isn't really a Vue issue, just javascript) in terms of the most common problems I see in Vue code.
They moved it. It's under List Rendering now in the guide. I have no idea why. https://vuejs.org/v2/guide/list.html#Object-Change-Detection...
Not yet as far as I know.
Vue templates are compiled into render functions. They are checked when the template is compiled. If you are using a build process, then that would be at build time.
You nailed it :) You could also destructure the passed properties in the scoped slot (scope="{list}") so you could just use "option in list".
1. The MobX-like functionality is moreso simply a native feature of Vue. All data values are converted into observed values. A render is triggered by changes to data. I believe Evan himself basically said React + MobX = Vue. Using a render function was just a choice. It could just as easily have been written with a template.
2. Again, this was basically just a choice for the example. The spinner could be defined in a module and imported/registered locally. Codepen/JSFiddle just isn't the greatest place for that kind of example.
3. Scoped slots are a way for a component to expose internal data to elements contained in a slot (content thats contained within the component but defined by it's parent). I agree, its initially one of the more confusing concepts in Vue.
Here is an example of that code implemented in Vue.
https://codepen.io/Kradek/pen/JyLPaL?editors=1010
I really haven't run into anything I could do in React that I couldn't do in Vue. What I mainly miss in Vue is react-native.
There is no way to get typing in the template currently that I am aware of. There are various libraries that help with Typescript integration like https://github.com/itsFrank/vue-typescript, but you cannot currently write Typescript as the language in a single page component (again that I am aware of). I'm definitely hoping this is coming this year.
What is the purpose of the opacity fade at the bottom? Stylistic? I'd really rather be able to see everything clearly. Looks like there is some good content otherwise.
Their decision to dump the data right into the controllers and not have some interface with services always puzzled me too and was the reason I rolled my own instead of using angularFire.
Would be awesome if this had stages for industrial environments.
Underscore has groupBy and some of the others you may be looking for.
I agree. Was interested enough to click through and start to read, stopped when I couldn't find a definition.
Am I missing something or did the date change? Looks like this happens on April 8th, 2013.
It seems to me that disappointment in the current state of campaign finance reform and interest in how a campaign dealt with the current reality are not mutually exclusive.
Doesn't seem that difficult. Raiding guilds in Everquest and WoW pulled this off for years with 40 players and more.
"we will unleash hell and shiver on you". Oh Anonymous, you make me laugh.
Impressive. My initial reaction watching the clip is that he got the sound right (loud). I've stood near the runway as a real Blackbird took off and could feel my chest rattle from the sound as it rolled by.
My parents, who are 70 and 66, both primarily use an iPad for computing these days. My mother's main email client is her iPad. When they went on vacation late last year, both brought their iPads along to allow them to communicate, find things, etc. It's gone way beyond expensive toy.
I tend to agree with this, but in the circles I run in where it was used it's also spelled 'wut'. I was a little confused when I first saw it here on HN as 'wat'.
Agreed. I don't know why people run without Adblock.
Is there an older story on the internet than a software project overruns budget or doesn't get finished? I'd be more interested to see something like, software project costs $18M and here's where we went wrong, or software project costs $18M and here's why the client got their money's worth.
I had to enable three sites in NoScript just to be able to see the blog post.
Looks like lightning.