There is nothing wrong with working and liking your work. I have a passion for music and coding, working all day. Problem is that most people need to work for another reason; $$$ instead of passion, to avoid ending up in the streets. That's more like slavery.
It's a debug related question because it tests whether you realise "a" can be a getter. For the rest this line of code is so hideous, although it is accepted by the interpreter, it is in every aspect totally wrong to do such thing in your codebase.
This is a typical example of what is wrong and annoying with job interview questions. In a way it doesn't really matter if the line could possibly evaluate to true, it shouldn't be written in the first place. What in the world tells your NO answer about your skill to do the job you are applying for? That you're not smart enough? Come on, I'd be really pissed off with shit like this.
You might have bugs in the real world that are caused by language features or idiosyncrasies that are visible in this artificial, small (thus more easily understood) toy example.
I often find these toy examples or trick questions (also in the context of C++ inheritance, for example) very instructive.
So many false assumptions in this post. As if only 1 miner is trying to mine a block. There is simply no way to know whether you or someone else is going to mine that specific block, it's totally random.
> There are two ways to increase mining profitability: generate more revenue, or reduce expenses.
No. There are more ways. Mining the right coin at the right time and selling it at the right time for example.
Mining has a lot of common ground with investing in the stock market. It's not that simple.
There is no such thing as creating an original. Everyone and everything is inspired in some or many ways. You consciously or unconsciously select your source(s) of inspiration. The guitarist of Radiohead is not playing some never played before stuff, it's the basic guitar thing millions of guitarists play. Everybody is copying everybody, changing only slight bits.
The whole music industry is stolen. And the worse part of this issue is that Radiohead is not making a dollar less because of Lana Del Rey, instead they just want to make some more of of her.
For some reason most people in this world want to own too many things they never should own in the first place. Intellectual property should only come into play if it really harms the 'original' authors revenue because of a straight copy.
There's another twist. I'm a guitar player: I can play a guitar note literally fifty different ways (on a single guitar/amp combination, no effects), if 'different' means 'every one can be ABX tested against every other one using a typical normal person as listener'.
Anybody who's ever been into blues in any form knows it's how you play it. Folks who have been into blues have been some of the most successful musicians ever (see: Fleetwood Mac, pre Buckingham Nicks)
If you say 'love' or 'hate' in sincerity, does it matter that you've not come up with an innovative way to spell it? It's part of an expression of your intention.
Copyright seems a way to try and protect these intangible things by tying them to a more abstracted 'key', and there's the problem.
I've recently listened to the Pixies' 'Brick Is Red', off Surfer Rosa. If you defined their vocal melodies in terms of Hz rather than quantizing them to nearest chromatic note and sixteenth-note timing, you'd find the vocalizations were really REALLY distinct (and next to impossible to reproduce!)
Hanson are on record as saying that their hit 'Mmmbop' is never covered properly. They're absolutely right. The chorus words go into a really fast triplet feel that's not a straight subdivision of the beat, a triplet feel that's not doubled by other instruments, and to screw up that timing means you're screwing up something very fundamental to the hit quality of the song.
One of the basic problems here is boiling stuff down to abstractions that serve as 'keys'. 'Mmmbop' in sixteenth notes is not 'Mmmbop'. 'Brick Is Red' in MIDI is not 'Brick Is Red'.
Hmm, this feels very misleading. What is the correlation between Github stars and real world usage? This is not statistics, it's just 1 variable.. It almost feels like Vue.js is going to take over React just because it received more Github stars? I use React already for years, never gave it a star on Github, and I think many with me.
Even searching Github for 'import React from 'react' and 'import Vue from 'vue' results in similar percentages. Roughly 7-8 million projects in Github on React, under a million on Vue.
Despite the hype, Vue has been mostly a flat over the last 2 years with a slight upward bend, but only to the point where it begins to catch up with the old Angular 1.x.
See it in context. The fastest growing framework on npm right now for instance is Preact (as per official report posted by Lauri Voss last week), but Preacts userbase is so small that it could grow hundredfold with insane growth rates percentually without scratching a competitor. That also applies to Vue. React gets more users in a week than Vue in its entire lifespan.
Go 2 years back on that page and you see a clearer picture, yes it did grow, but relatively contained compared to its competitors, specifically React.
And is it any wonder to anyone? I really ask myself. Would you go back to a stryingly typed templating framework with a complex api and ever changing ruleset, reliant on dependency injection and all the other stuff we went through with Angular? I don't think anyone would. It rather looks like Vue is catching the last remaining Angular 1.x refugees, but there isn't an ever increasing supply of those.
To be fair, Vue did embrace JSX in it's 2.0 release. I think Vue is leaps and bounds ahead of Angular in elegance and usability. I like Vue, I just don't think it has the ecosystem that React has. Maybe it will catch up eventually.
I don't think it needs the ecosystem React has. It has all of the components you need to build excellent software - great debugging experiences, testing, routing, state management. At that point it doesn't really matter all that much what else you've got.
Honestly that is like saying Windows Phone doesn't need the apps.
React has a self sufficient cross platform eco system. I don't think people using primarily web frameworks even realize the implications of that yet. React works outside of the browser, and not just natively on mobile but literally everywhere. Imagine you use React as you always would to make a native command line application (https://github.com/Yomguithereal/react-blessed), but now you want to have a store or move things around, so you `npm install react-redux react-motion` and you just apply it (https://github.com/gaearon/react-blessed-hot-motion). Look at the code and try to picture the overhead if you had to do this in C++.
Being able to transfer code and knowledge, and seeing new renderers pop up for the wildest platforms each day, as well as official renderers made by big vendors (https://github.com/Microsoft/react-native-windows), the idea of a web-bound Angular-like framework seems odd in 2018. I wouldn't expect Vue to get the same kind of popularity without at least competing or doing something new.
Either way, it's not such an issue. It's not hard to build on React when you want react and Vue when you want vue. They're easy to pick up the concepts on.
Does this account for development done in Eastern Asia/China? It's my understanding that Chinese developers have heavily embraced vue over react and I don't know what limitations the great firewall has on frontend tools like npm or repositories such as github, maybe the stats are biased towards Western development.
Github and Npm are both used in China all the same. I don't know about firewall restrictions, many chinese companies publish directly on Github. React is the most used in China in polls as well (stateofJS), with some of the biggest names and websites using it. If China would be excluded in these stats, that would impact Reacts outlook more for sure, any exception one could make would directly affect React in the same way.
As it stands npms numbers coincide with all the other sources you could pull: projects on github, tracked project dependencies, size of eco system, job market, etc.