Kotlin vs. React Native: Which Is Better?

Kotlin vs. React Native: Which Is Better?

  • Kotlin, a programming language, pitched against React Native, a JavaScript library – let’s see what sticks and what slips.
  • Same app quality: This might not mean anything to some of you, but apps developed in React Native vs. apps developed in Kotlin feel the same.
  • If you compare an optimized Kotlin app with a React Native app, React Native will fall behind.
  • If your developer does not have apt knowledge about the native language (iOS or Android), which is something (he/she) was probably avoiding in the first place by choosing React Native, this will be a major problem.
  • Using React Native for its intended tasks performs quite well – but I think, this JavaScript library, with all its goods and glory, cannot outweigh Kotlin as a language.

This post covers the basics of the Kotlin programming language and compares it to the React Native JavaScript library for mobile application development.
Continue reading “Kotlin vs. React Native: Which Is Better?”

Introducing Immer: Immutability the easy way – Hacker Noon

  • The producer function receives one argument, the draft, which is a proxy to the current state you passed in.
  • The currentState will be untouched during this process.Because immer uses structural sharing, and our example producer above didn’t modify anything, the next state above is simply the state we started with.Let’s take look at what happens when we start modifying the draft in our producer.
  • It is not too bad in this simple case, but this process has to be repeated for every action, and on every level in which we want modify something.We have to make sure to return the existing state if the reducer doesn’t do anythingWith Immer, we only need to reason…
  • Both the original reducer and the new one behave exactly the same.No strings attachedThe idea to produce the next immutable state by modifying a temporarily draft isn’t new.
  • This will create a new function that will execute the producer when it’s passed in a state.

Immutable, structurally shared data structures are a great paradigm for storing state. Especially when combined with an event-sourcing architecture. However, there is a cost to pay. In a language…
Continue reading “Introducing Immer: Immutability the easy way – Hacker Noon”

Twilio with Fabrizio Moscon of HoxFon

  • Tell us about yourself, how did you get into programming, and what brought you get to React Native?
  • If you did not use React Native what would have been you second choice, maybe a Cordova implementation?
  • If you want to implement Calling in React Native what options do you have?
  • If someone want to implement Twilio, what do they need besides using the library to get it up and running with React Native?
  • What makes this good to work with React Native, as far as GraphQL or Graphcool?

This player is only available in HTML5 enabled browsers. Please update your browser or
download the episode

Continue reading “Twilio with Fabrizio Moscon of HoxFon”

Functional programming in Javascript is an antipattern

Functional programming in #Javascript is an antipattern:  by @a_dixon #ReactJS

  • But I imagine I’ve thought them a million times before and didn’t notice because it was all I knew.I don’t think there’s a way to avoid this kind of thinking when writing Javascript using any combination of React, Redux, ImmutableJS, lodash, and functional programming libraries like lodash/fp and ramda.I need the following in my head at all times:APIs for lodash, Immutable, lodash/fp, ramda, and native JS or some combinationmutable programming techniques when working with Javascript data structuresimmutable programming techniques for Immutable data structuresimmutable programming with mutable Javascript data structures when working with Redux or ReactIf I manage to keep that in my head, I still run into a tangle of questions like the ones above.
  • The only way I can find to avoid this is to not go down the path in the first place — don’t use ImmutableJS, immutable data structures, immutable data as a concept in Redux/React, or ramda, or lodash.
  • It was designed from the ground up as a functional programming language that operates on immutable data structures.
  • Unlike with a language that compiles to Javascript alone, you have the option of writing a Java-based server that supports multithreading.As an average Javascript/Node developer, it hasn’t been difficult for me to learn the language or the ecosystem.What makes Clojurescript easier?Run whatever code you want inside your editor.You can run any code in your editor with a keypress.
  • Clojurescript is a functional programming language from the ground up — implicit return statements, functions are first class, lambda expressions, etc.Use anything you want from Javascript.

After a few months writing Clojure I began writing Javascript again. As I was trying to write something ordinary, I had the following thoughts: They seemed unnecessary. But I imagine I’ve thought…
Continue reading “Functional programming in Javascript is an antipattern”

From React to Elm

  • From React to Elm | Sebastian's Blog
  • I have noticed that with Elm my workflow has changed substantially.

  • At some point in 2015 I heard about Elm and I was intrigued.

  • This kind of safety is everywhere in Elm.

  • The Elm compiler will pick up every single problem and offer very nice error messages to help resolve the issues.

I have been working in React full time for probably two and a half years now. I work for https://staxapp.io which is large application mostly built on React for the Front end. During this time I have enjoyed working with React very much, it is a great library for building front end applications.
Continue reading “From React to Elm”

Some Basics React.js beginner should know – dailycodebook

Some Basics #React.JS beginner should know | Daily Code Book

  • So always keep the thing in mind otherwise you will end-up with your awesome react code.
  • First thing you have to be clear, React.JS is not an MVC framework or any other kind of framework.
  • We round things out with Webpack for bundling our code, and NPM for package management, and we’re now fully JavaScript buzzword compliant 🙂
  • Many documentations are available online by using then you can set your environment and can start working with React.JS. but before starting big things you have to know some basics.
  • This is the language which makes hard stuff as easy as easy stuff, but sometime it makes easy stuff as hard as hard stuff, which you do by using simple jQuery or Javasript.

React.Js is an emerging programming thing for developers. This is the language which makes hard stuff as easy as easy stuff, but sometime it makes easy stuff as hard as hard stuff, which you do by using simple jQuery or Javasript. Many documentations are available online by using then you can set your environment and can start working with React.JS. but before starting big things you have to know some basics. I learnt some react.JS. sharing my points:
Continue reading “Some Basics React.js beginner should know – dailycodebook”

gaearon comments on fat Arrow vS Autobind VS bind();Bind();Bind();Bind();Bind()?

  • In React, components tend to be small, so Iâ d say if you have more than four or five event handlers, it may be a good time to split the components anyway.
  • Still I would say that if binding gets too tedious, you might have too many event handlers in a single component.
  • Only components that use state or have lifecycle methods need to be classes, the rest can be functions.
  • Itâ s tedious but usually you only want to do this for event handlers, and by convention you start them with handle* in React, so itâ s not too hard to remember to bind those.
  • If youâ re okay with using an experimental syntax proposal (currently stage 2 which means syntax may change, or it may even get dropped) , enable class properties proposal in Babel, and you can use handleChange = () => { syntax.

Yea, ES6 classes aren’t really fully baked without this feature in my opinion. At least the language finally has classes which is a step up from…
Continue reading “gaearon comments on fat Arrow vS Autobind VS bind();Bind();Bind();Bind();Bind()?”

Why GraphQL is the future — Building Apollo — Medium

Why GraphQL is the future – and what it means for you:  #ReactJS

  • Where REST has only an ad-hoc approach, GraphQL has a clean layer of abstraction
  • Companies turn to GraphQL because they realize that REST can’t help them solve these problems, but GraphQL can.
  • Using Facebook means using GraphQL.
  • Their REST API has gotten so complicated that it’s a significant drag on product development.
  • Facebook has been using GraphQL since 2012 – well before it was open-sourced in July of last year.

Read the full article, click here.

@ReactiveConf: “Why GraphQL is the future – and what it means for you: #ReactJS”

And what it means for you

Why GraphQL is the future — Building Apollo — Medium