Slaying a UI Antipattern in React – JavaScript Inside – Medium

How to solve an UI anti pattern with React ? A great post by @sharifsbeat  #ReactJS

  • Setting the items to null instead of an empty array creates even more problems so that won’t help either.Stefan Oestreicher, Slaying a UI Antipattern in FantasylandSo we have to manually keep track of the current data status, making sure we don’t forget to set the correct loading, error and data…
  • Forgetting to keep the state in sync leads to a false representation in the UI.In Slaying a UI Antipattern in Fantasyland we are represented with a different way to think about the problem:type RemoteData e a = NotAsked | Loading | Failure e | Success aWe might have different states…
  • By modelling all possible states, we can resort to using daggy f.e., which enables us to handle the possible outcomes.const RemoteData = daggy.taggedSum({ NotAsked: [], Loading: [], Failure: [‘error’], Success: [‘items’],})// in our constructorthis.state = { items: RemoteData.NotAsked }(* Taken from Slaying a UI Antipattern in Fantasyland)By now we should…
  • Loader /What if we could take all these ideas and wrap them inside a React component, which takes care of all of this, without having to manually take care of the low level stuff.Michael Jackson wrote about the render-props concept in his Use a Render Prop!
  • Now we don’t have to think about if the UI is representing the proper state, all we need to do is tell Loader / what we want to see if the component is loading, has an error and has any data.Now that we have an idea of how Loader should…

The following write-up is based on Stefan Oestreichers blog post Slaying a UI Antipattern in Fantasyland which was originally influenced by Kris Jenkins excellent how Elm slays a UI antipattern. Just…
Continue reading “Slaying a UI Antipattern in React – JavaScript Inside – Medium”

Slaying a UI Antipattern in React – JavaScript Inside – Medium

  • Setting the items to null instead of an empty array creates even more problems so that won’t help either.Stefan Oestreicher, Slaying a UI Antipattern in FantasylandSo we have to manually keep track of the current data status, making sure we don’t forget to set the correct loading, error and data…
  • Forgetting to keep the state in sync leads to a false representation in the UI.In Slaying a UI Antipattern in Fantasyland we are represented with a different way to think about the problem:type RemoteData e a = NotAsked | Loading | Failure e | Success aWe might have different states…
  • By modelling all possible states, we can resort to using daggy f.e., which enables us to handle the possible outcomes.const RemoteData = daggy.taggedSum({ NotAsked: [], Loading: [], Failure: [‘error’], Success: [‘items’],})// in our constructorthis.state = { items: RemoteData.NotAsked }(* Taken from Slaying a UI Antipattern in Fantasyland)By now we should…
  • Loader /What if we could take all these ideas and wrap them inside a React component, which takes care of all of this, without having to manually take care of the low level stuff.Michael Jackson wrote about the render-props concept in his Use a Render Prop!
  • Now we don’t have to think about if the UI is representing the proper state, all we need to do is tell Loader / what we want to see if the component is loading, has an error and has any data.Now that we have an idea of how Loader should…

The following write-up is based on Stefan Oestreichers blog post Slaying a UI Antipattern in Fantasyland which was originally influenced by Kris Jenkins excellent how Elm slays a UI antipattern. Just…
Continue reading “Slaying a UI Antipattern in React – JavaScript Inside – Medium”

A Modern Cross-Platform approach to µServices in .NET — Pelotech

A Modern Cross-Platform Approach to µServices in .NET

  • 😉 – – Recently I moved the NYC from Seattle and although I love both cities it’s definitely been a different experience meeting people.
  • For example I was surprised to see that for the most part everything in these posts works the same in Windows, Linux, and macOS.
  • After a wonderful chat about people stuck in their ways and how you could bring modern style development and ops to people that are used to a stack that doesn’t really promote that, I wondered if it would be possible to get a quick micro style service running on docker…
  • The idea is that we’ll have a simple C# REST service where we can store and retrieve information about the organizations available web apps.
  • Then we’ll have a gRPC service that has information about the state of the service (things like online, offline, etc).

How did I come about to try this out? TLDR: This implementation came out of a conversation about modernizing a .NET shop to make use of modern micro-service paradigms. 😉
Continue reading “A Modern Cross-Platform approach to µServices in .NET — Pelotech”

Creating a Plugin System and Preact in Pictures

  • Preact is an implementation of the React API that’s significantly smaller and faster.
  • If you’ve ever wondered how the virtual dom and component model really work, this will be a great introduction that should prepare you for reading the source code of Preact or React.
  • After hearing this talk, you’ll have a great new tool for developing performance-critical UIs and a better mental model of how React works on the inside.
  • Creating a Plugin System with Apollo and the Coral Project by Riley Davis

    The Coral Project attempts to rethink how we create community online with open source tools and best practices.

  • This talk is about how we enabled development of third-party plugins with Apollo and GraphQL to help publishers adapt our commenting platform to meet their needs.

Come downtown for food, drink, talks, and socializing. We’ll be talking about ReactJS and related technologies. There is a lightrail stop at the corner of
Continue reading “Creating a Plugin System and Preact in Pictures”

SB Admin React – Medium

SB Admin React - a port of the famous Free Admin Bootstrap Theme to #ReactJS Theme

  • We have included Flot Chart and Morrisjs Chart.
  • We are excited to announce our most recent open source React.js theme, SB Admin React on startreact.com which includes both Full and Seed (Boilerplate) version.
  • Isomorphic application is one whose code can run on both (server and client).
  • Uses React bootstrap library for implementing responsive components.
  • Recharts library for easy implementation of Flot Charts and Morris.js .

We are excited to announce our most recent open source React.js theme, SB Admin React on startreact.com which includes both Full and Seed…
Continue reading “SB Admin React – Medium”

Performance Limitations of React Native and How to Overcome Them — Medium

Performance limitations of #ReactJS Native and how to overcome them:

  • Touch events originate in the native realm, since that’s where the device tracks the user’s finger.
  • Let’s remember the guideline stated earlier – In order to architect performant React Native apps, we must keep passes over the bridge to a minimum.
  • Lies one of the main keys to understanding React Native performance.
  • In order to understand the performance limitations of React Native, we must first get a glimpse into its inner workings.
  • Sounds promising, let’s update the native component directly and improve performance!

Read the full article, click here.


@ReactiveConf: “Performance limitations of #ReactJS Native and how to overcome them:”


React Native holds great promise in terms of excellent developer experience with Javascript and code reuse between platforms. The big…


Performance Limitations of React Native and How to Overcome Them — Medium