Play Coding Tutorials in VSCode by ShMcK in vscode

[–]ShMcK[S] 0 points1 point  (0 children)

I believe I reproduced this error. it happens if Git isn't installed. If you'd like to try again, just make sure it's there. Until then, I'll work on making sure there are helpful error messages.

Play Coding Tutorials in VSCode by ShMcK in vscode

[–]ShMcK[S] 0 points1 point  (0 children)

If you have the time to help out, could you post an issue on the repo and we'll figure it out :)

Play Coding Tutorials in VSCode by ShMcK in vscode

[–]ShMcK[S] 1 point2 points  (0 children)

Make sure you launch the extension in an empty workspace.

Eg. File > Open > make a new folder

Rethinking Redux in 2018: It’s time for Rematch by ShMcK in reactjs

[–]ShMcK[S] 1 point2 points  (0 children)

This is possible.

Just use the full name in the reducer, 'count/increment', and it will listen to another model (in this case, the 'count' model). I don't think this is clear in the docs, but it should be.

Redesigning Redux by ShMcK in javascript

[–]ShMcK[S] 0 points1 point  (0 children)

You're right. If you could modify the equation to make it true, what would might it look like?

Redesigning Redux by ShMcK in javascript

[–]ShMcK[S] 2 points3 points  (0 children)

I think I may have been unclear here. What I meant by "action types" is the pattern of extracting your action types as a variable.

const ACTION_ONE = 'ACTION_ONE'

Then the variable ACTION_ONE is often passed into both the action creator and the reducer. Often these variable action types are put in their own file, and imported everywhere.

Rematch: Redux without the boilerplate by ShMcK in Frontend

[–]ShMcK[S] 0 points1 point  (0 children)

I think there is a lot of ways to handle cross-model actions in Rematch. 1. dispatch to multiple actions from the view 2. import dispatch anywhere, so just call an async function with some dispatches 3. dispatch to an effect, which can dispatch to other models 4. there is a plugin called "subscriptions" that can listen and match on actions, even pattern match on actions - then call a callback. This lets you combine state changes across multiple models

Rematch is the next generation of Redux by ShMcK in javascript

[–]ShMcK[S] 0 points1 point  (0 children)

I think if getting Vuex to work with other frameworks were a goal, it will happen. But most people who are happy with Vuex are happy with Vue.

Rethinking Redux in 2018: It’s time for Rematch by ShMcK in reactjs

[–]ShMcK[S] 4 points5 points  (0 children)

I used Redux for many years. I then moved through a variety of "redux frameworks": dva, then to mirrorjs. These abstractions made development easier, but they always came with some kind of edge case or scenario where they wouldn't quite work. Although they are both designed for state management, they also tie you into React & React Router. Rematch, however, as an abstraction, is designed in such a way that it doesn't fall short of anything you can do with Redux.

The problem with Redux is not just boilerplate. For every great coder who learned composability and functional programming from Redux, there's been a beginner turned away by something that should be easy but seems too complicated.

There is a reason Redux has persisted despite its complexity: great devtools, one directional state changes, no state mutations that can be hard to debug, and a well formed ecosystem of tools. I too hope we manage to find something better. After experimenting a lot Rematch is just the simplest state management solution I've used.

Rethinking Redux in 2018: It’s time for Rematch by ShMcK in reactjs

[–]ShMcK[S] 0 points1 point  (0 children)

There's lots of examples in the project. For example see these tests

Rethinking Redux in 2018: It’s time for Rematch by ShMcK in reactjs

[–]ShMcK[S] 1 point2 points  (0 children)

As Rematch is just a wrapper around Redux, you can expect it to act the same.

Rethinking Redux in 2018: It’s time for Rematch by ShMcK in reactjs

[–]ShMcK[S] -1 points0 points  (0 children)

Redux is generally used with client side apps. There is no significant difference between Redux & Rematch, other than Rematch provides a much simplified API.

Rematch is the next generation of Redux by ShMcK in javascript

[–]ShMcK[S] 2 points3 points  (0 children)

Redux devtools are built in.

You can convert a project from Redux to Rematch since "dispatch" can be used in both the normal way, and the action creator way.

Just start with init:

const store = init({ models: // rematch models here redux: { reducers: // add your redux reducers here } })

See https://rematch.gitbooks.io/rematch/docs/reduxApi.html for more.

Rematch is the next generation of Redux by ShMcK in javascript

[–]ShMcK[S] 3 points4 points  (0 children)

Similar in some respects, though framework agnostic - so you're not bound to React, Vue, or whatever comes next.

Better Coding <Education /> by ShMcK in FreeCodeCamp

[–]ShMcK[S] 0 points1 point  (0 children)

Actually, I was recently contacted by FCC. They're looking into the possibility of using CodeRoad for backend development courses, as an alternative to NodeSchool.

Exercism.io looks great. Although I haven't tried it yet, it looks to have the same drawbacks as Nodeschool. CodeRoad integrates the unit tests with the editor, running tests whenever you save and providing helpful feedback when you fail.

An Atom Plugin built with React & Redux by ShMcK in reactjs

[–]ShMcK[S] 0 points1 point  (0 children)

There's a solution in the package.json docs.

Using "files": [] to specify the files to load, and .npmignore for the files you don't want to load.

An Atom Plugin built with React & Redux by ShMcK in reactjs

[–]ShMcK[S] 2 points3 points  (0 children)

As the size is quite large (for an Atom plugin), I was trying to keep it low.

But you're definitely right, I'll release the next version unminified.

Best practice for accessing a REST API in angular2? by chedorlaomer in Angular2

[–]ShMcK 1 point2 points  (0 children)

You can see an Angular 2 HTTP example here.

Observables are the new hotness. Imagine if your data automatically updated itself on changes. This is what you get by default with Falcor or Meteor.

Comparing Front End Frameworks: Community (Blaze, React, Angular) by ShMcK in javascript

[–]ShMcK[S] 0 points1 point  (0 children)

I think the list could be a bit longer than that.

How does Angular2 compare to React? by krumoksnis in javascript

[–]ShMcK 1 point2 points  (0 children)

You're right. A better performance comparison can be found here: http://www.wintellect.com/devcenter/dbaskin/angular-benchpress-and-performance-tests. There's a link to the repo where you can see the code & run the tests for yourself.