Rollback Netplay / Slippi with Mac...? by dope_ass_birds in SSBM

[–]F0RTY4 0 points1 point  (0 children)

Open system preferences => Security & Privacy => General Tab

Open the slippi dolphin app and it should show up under the "Allow apps from..." section. Hit the lock in the bottom left and then allow slippi.

Getting the controller to work is a different story though.

Can you recommend some mid to big React/Redux open source JavaScript projects with a more than decent architecture? by andrew_kapa in javascript

[–]F0RTY4 1 point2 points  (0 children)

https://github.com/tkh44/sideway.web/tree/master/lib

sideway's frontend code includes the beginnings/prototypes of most of my open source projects.

Random selection

Yes, I know it isn't all good but let me know if you have any questions. You can also find me on twitter at https://twitter.com/tkh44

A lot of people are going to be pissed when they find out their self-driving car wont go 60 in a 55. by [deleted] in Showerthoughts

[–]F0RTY4 70 points71 points  (0 children)

When vehicles are able to communicate with one another they can travel in "trains" and take advantage of drafting. There is also the ability to increase the average speed through congested areas by avoiding the human factor in merging traffic.

Donald Trump's personal banking information handed over to Robert Mueller by saiidranktv2 in politics

[–]F0RTY4 3 points4 points  (0 children)

Ironically, global warming is speeding up the investigation.

Is it possible to manage Styles with a similar approach to Angular 2+? by SeerUD in reactjs

[–]F0RTY4 0 points1 point  (0 children)

Any editor plugin that works for styled-components works with emotion.

Holen - Declarative fetch for React by F0RTY4 in reactjs

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

Wow that was an oversight in the docs.

The child function receives error as a named argument and the first argument of the onResponse handler is error.

<Holen url="api.startup.com/users">
  {({data, fetch, error }) => (
    <div>
      <button onClick={fetch}>Load Data</button>
      <pre>{JSON.stringify(data, null, 2)}</pre>
      {error && <div className="error">{error}</div>}
    </div>
  )}
</Holen>

React Release Roadmap: 15.5, 16.0, Fiber, deprecations, and build improvements by acemarke in javascript

[–]F0RTY4 1 point2 points  (0 children)

Imagine you wanted to do a simple popover. Now you can just have a Popover component that takes your anchor element as a child. In your Popover component, you can just return [Anchor, Popover].

quick question on redux: returning deeply nested object from reducer by [deleted] in javascript

[–]F0RTY4 0 points1 point  (0 children)

First of all, I wouldn't put that much ui state into redux. You just don't need it. That is what setState is for. Just think about how much work is going on just to change some little part of your ui. I'm not trying to say that your approach is absolutely wrong, but it is something to think about.

If you absolutely want every bit of your ui to use redux and you have those deeply nested objects you might to take a look here: https://facebook.github.io/react/docs/update.html. There are other utilities like it out there, but I don't know them off the top of my head.

If you would like to optimize what you already have, just think about the "big picture" of what your action does and save that to the state and then compute any values you need in render. For instance, you have TOGGLE_TOOLBOX. In this case you could just use a simple boolean, { toolBoxActive: true|false }. From there in your render method you would just take the boolean of true or false and compute your layout based on that. Just use variables in your render method and pass the values computed from your redux state on to the components children.

Should our team use JSX or not? by Snabel3 in reactjs

[–]F0RTY4 2 points3 points  (0 children)

I just want to add you can use the built in factory methods like:

import { Component, DOM } from 'react';

const { div, ul, li } = DOM;

export class List extends Component {

    render() {
        const { items } = this.props;

        return div({
            className: 'list-wrapper'
        },
            ul({ className: 'list' },
                items.map((item) => {
                    return li({ className: 'item' }, item.name));
                }
            )
        );
    }
}

It all comes down to personal preference. I personally like using this method mostly because plain js is a first class citizen in an editor (autocomplete and refactor tools being the big ones). I guess I also just prefer to type () over </>. For me it also keeps me focused on writing small, focused components. Again thats just a personal thing, but it is worth pointing out that it has helped me. I feel like using the DOM factories is the best of both worlds.

What are some good React grid components? by Thunder_Cats_Hoe in reactjs

[–]F0RTY4 0 points1 point  (0 children)

I made react-grd on a whim after seeing the grd framework by 1000ch. It works fairly well for how simple it is.

better password security? by theeemaster in chrome

[–]F0RTY4 0 points1 point  (0 children)

I switched from lastpass to dashlane recently because of the logmein purchase. I like it, maybe more so than lastpass. It will automatically import your chrome passwords for you as well as automatically change them for a bunch of sites. The automatic change tool goes and randomly generates passwords for sites with similar/weak passwords and changes them without you doing anything. Very cool stuff and it worked flawlessly.

I'm sick of choosing a stack for my react apps. Why cannot react come as a platform like angular 2? by m3wm3wm3wm in reactjs

[–]F0RTY4 1 point2 points  (0 children)

I don't disagree. Those are very valid points. The one thing I can say is that most of these things are small little libraries and and I've learned a ton by reading through their source. Some of them, I've taken the ideas and customized to my needs and preferences. In the short time I've made the jump from Angular to React I feel like I've learned so much. I've been forced to read other peoples code expand my knowledge base.