GithubHelp home page GithubHelp logo

ama's Introduction

Ask me anything!

My name is Dan Abramov.

I'm known for contributing to projects in React ecosystem and creating React Hot Loader and Redux.
This AMA is a good place to ask me personal or work-related questions.
Ask me anything!

Guidelines

  • Ensure your question hasn't already been answered.
  • Use a succinct title and description.
  • Bugs & feature requests should be opened on the relevant issue tracker.
  • Support questions are better asked on Stack Overflow.
  • Be civil and polite :)

Links

ama's People

Contributors

gaearon avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ama's Issues

Do you have any prefer ways to test a function that use many promises?

I always feel painful when test something like this:

import 'isomorphic-fetch';
import { normalize } from 'normalizr';
import { camelizeKeys } from 'humps';

export function callGetApi(endpoint, schema) {
  return fetch(endpoint)
    .then(response => {
      return response.json().then(json => ({ json, response }));
    })
    .then(({ json, response }) => {
      if (!response.ok) {
        return Promise.reject(json);
      }
      const camelizedJson = camelizeKeys(json);

      return normalize(camelizedJson, schema);
    });
}

I see you also suggest using mocha as test engine in redux. Do you have any prefer ways or examples to test a function like this?
Unit test with some mocks & stubs or any other ways?

Thanks

How did you become so good?

Any tips/advice/some of your aha-moments that made you look differently at code/problems?

What do you think make you a better developer than the average one?

Making things digitally

When did you start making things digitally?
When did you know it had become an important part of your life?

recommendations for using types with redux

Hi Dan,

I saw the issue mentioning that babel doesn't work well with flow, and that flow is not on the near term roadmap for redux. I also saw that some people have been contributing typescript definitions.

Do you have any pointers on how to use types with redux? This is coming from the perspective of migrating an app that is built with php, jquery, and pjax into react, redux, and immutable.

Thanks,
David

What do you think of the potential of this dev tool for Redux?

demo...

It still needs a few features like searching, panning, and zooming to be usable for large state trees. Also, a dockable component is a suggestion I got and I think it would indeed be nice to have a button in a corner to pop in/out the chart.

So I figured I'd ask your opinion about it since your talk at RE on Redux dev tools inspired me to release this one. What do you think?

demo code

Analysis and synthesis

What is the balance between analysis (taking things apart) and synthesis (putting things together) in your thinking process?
How do you express those gifts or skills outside of your open source work?

When are you moving to Seattle?

While eating lots of raw meat at a paris café, you, me, and my wife already figured out that Seattle is the place you and your wife would like to be.

Other reasons:

  1. I'm moving there in like 3 weeks.

Do you have any tips on how to migrate legacy webapps to webpack?

Say, you're working on a mature legacy SPA webapp based primary on jQuery with some newer features already implemented with React. The JavaScript code is structured in old-school modules (and there's a lot of them):

(function(global) {
  // ...
  global.MyModule = {...};
})(window);

Could you describe your approach on how to introduce CommonJS/ ES6/ Webpack modules to such project?

Thanks.

Google Award / Location / English

  1. How has winning the Grand Prize award from Google influenced your development as a programmer? You're already so young, and was quite a while ago...
  2. Have you ever considered relocating outside of Russia? It seems like the world could be your oyster (in terms of employment / travel opportunities) with so many successful open source projects under your belt in such a short period of time. (Edit, saw that you are in the process of moving to London -- why there?)
  3. Also curious about your mastery of the English language. Did you grow up with a parent who was a native speaker? Or perhaps only later in life move to Russia? Your written fluency is quite impressive, and the quality of your docs seem to shine in this fact.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.