Better HN
topnewbestaskshowjobs
Log inSign up

alevans4

33 karma · joined Nov 14, 2011 (15y ago) · 28 submissions

Submissions

comment 8y ago · link · parent

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.

2.

Introducing the GraphQL Guide(blog.graphql.guide ↗)

6 points · by alevans4 · 8y ago · discuss

comment 9y ago · link · parent

I agree. JSX is supported but in my experience, very rarely used.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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...

comment 9y ago · link · parent

Not yet as far as I know.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

You nailed it :) You could also destructure the passed properties in the scoped slot (scope="{list}") so you could just use "option in list".

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

Would be awesome if this had stages for industrial environments.

comment 13y ago · link · parent

Underscore has groupBy and some of the others you may be looking for.

comment 13y ago · link · parent

I agree. Was interested enough to click through and start to read, stopped when I couldn't find a definition.

comment 13y ago · link · parent

Am I missing something or did the date change? Looks like this happens on April 8th, 2013.

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

Doesn't seem that difficult. Raiding guilds in Everquest and WoW pulled this off for years with 40 players and more.

comment 14y ago · link · parent

"we will unleash hell and shiver on you". Oh Anonymous, you make me laugh.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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'.

comment 14y ago · link · parent

Agreed. I don't know why people run without Adblock.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

I had to enable three sites in NoScript just to be able to see the blog post.

comment 15y ago · link · parent

Looks like lightning.