HNHacker News
TopNewBestAskShowJobs

alevans4

33 karma · joined November 14, 2011

submissionscomments
alevans4··on Ask HN: What is your best advice for a junior software developer?
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.
alevans4··on A curated list of things related to Vue.js
I agree. JSX is supported but in my experience, very rarely used.
alevans4··on A curated list of things related to Vue.js
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.
alevans4··on A curated list of things related to Vue.js
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...
alevans4··on Vue.js vs. React
Not yet as far as I know.
alevans4··on Vue.js vs. React
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.
alevans4··on Vue.js vs. React
You nailed it :) You could also destructure the passed properties in the scoped slot (scope="{list}") so you could just use "option in list".
alevans4··on Vue.js vs. React
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.

alevans4··on Vue.js vs. React
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.

alevans4··on Vue in 2016
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.
alevans4··on Intro to jQuery: Learn jQuery with Street Fighter and Hadoukens
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.
alevans4··on AngularFire - A real-time backend for AngularJS from Firebase
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.
alevans4··on Quickly generate product screenshots in realistic environments
Would be awesome if this had stages for industrial environments.
alevans4··on LINQ Ruined My Favorite Interview Question
Underscore has groupBy and some of the others you may be looking for.
alevans4··on Why Professors at San Jose State Won't Use a Harvard Professor's MOOC
I agree. Was interested enough to click through and start to read, stopped when I couldn't find a definition.
alevans4··on RapidShare will delete free users' data over 5GB tonight
Am I missing something or did the date change? Looks like this happens on April 8th, 2013.
alevans4··on Meet the Obama campaign's $250 million fundraising platform
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.
alevans4··on Minecraft experiment devolves into devastating resource war
Doesn't seem that difficult. Raiding guilds in Everquest and WoW pulled this off for years with 40 players and more.
alevans4··on Anonymous hacks RCom servers, warns Indian government against web censorship
"we will unleash hell and shiver on you". Oh Anonymous, you make me laugh.
alevans4··on R/C SR-71
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.
alevans4··on Coding Horror - Welcome to the Post PC Era
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.
alevans4··on WAT Driven Development
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'.
alevans4··on Middle-aged prodigies: Seven poster children over 40
Agreed. I don't know why people run without Adblock.
alevans4··on This site cost $18m to make
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.
alevans4··on Writing Eloquent JavaScript Without CoffeeScript
I had to enable three sites in NoScript just to be able to see the blog post.
alevans4··on Space Station time lapse
Looks like lightning.