Echo JS 0.11.0

<~>

tracker1 comments

tracker1 3578 days ago. link 2 points ▲ ▼
No, I'm not opposed to the Class-oriented interface though... I think it makes writing stateful components easier.  I'm pretty pragmatic about it, I'd rather have clean code that makes sense than subscribe to dogma. That said, I do tend to favor the functional render component most of the time.
tracker1 3580 days ago. link 1 point ▲ ▼
I could see this for lighter more trivial bits that one might otherwise reach for jQuery for...
tracker1 3580 days ago. link 1 point ▲ ▼
I mean direct render method components... you don't have to inherit from Component or use the legacy method at all if you don't want to.

    export default MyComponent(props, context) {
      return <div>Hello {props.name}!</div>
    }
tracker1 3582 days ago. link 1 point ▲ ▼
I happen to like React because it's functional representation all the way down, and I tend to like JSX in my JS vs. weird DSL in templating system in my HTML referenced with JS.  But that's just me.

I can see the appeal of Vue.. and frankly, can see the appeal of Polymer as well.  However, I find React feels better when I've used it.
tracker1 3588 days ago. link 1 point ▲ ▼
The one point that rings true to me is "Focusing on poor metrics such as “issues closed” or “commits per day”"...

I was on the verge of being fired (I moved on to another position before that happened), because my issues list didn't have as many closed items as other developers.

Despite the fact that I'd literally removed over 20kb of code from the project (the prior month) with mild refactoring, using better techniques and all the code I did refactor/add was 100% tested.  I also helped a lot of the other developers in the group, and had to participate in the meetings for two teams.  But no, the issues closed ruled the roost so to speak.
tracker1 3588 days ago. link 1 point ▲ ▼
I start with AirBnB, and make a couple of tweaks, but mostly in tact.  I don't agree with everything, but for teams, it mostly makes sense.
tracker1 3592 days ago. link 2 points ▲ ▼
Why not adopt the Node API for the `onHttpRequest` method, it already seems similar, but the parameters are out of order.
tracker1 3592 days ago. link 1 point ▲ ▼
Mistake towards the top, in the second code segment...

    someModule(param, (result, error) => {

should be

    someModule(param, (error, result) => {

Node-style CJS async methods should *always* have error first in the response... those few API interfaces that don't cause issues with other libraries.
tracker1 3599 days ago. link 1 point ▲ ▼
One point of contention in these articles... TypeScript is not an advantage or disadvantage... you can use it with React too if you really want to.
[more]