New & Upcoming Course Highlights: Introduction to Core Data & React Native

Read more about our new #ReactNative and #CoreData courses here:  #learntocode

  • Here’s a short list of what we’ve added recently, upcoming course highlights, and our weekly video update of What’s New at Treehouse.
  • React Native is a great option for creating performant iOS and Android applications that feel at home on their respective platforms, all while building on any previous web development experience.
  • In this course we will be building the ultimate superhero app.
  • By the end of this course you should have the confidence to build upon the app that we started and take it to the next level.
  • Saving data on your device is a fundamental part of building apps and in this course we’re going to learn how to use the Core Data framework to persist data between launches by building a simple to-do list app.

Every week, new courses and workshops are published to the growing Treehouse Library! Here’s a short list of what we’ve added recently, upcoming course highlights, and our weekly video update of What’s New at Treehouse.
Continue reading “New & Upcoming Course Highlights: Introduction to Core Data & React Native”

React.js Structures JavaScript for Easy Componentization  

  • JavaScript is in the midst of transforming development teams’ expectations for desktop, server and mobile apps.
  • Enhancements to JavaScript are enabling it to break free of the browser, while technologies such as Node.js and its package manager npm facilitate creation of portable front-end and back-end apps that rival those traditionally created for environments such as Windows, Linux and mobile devices.
  • Components encapsulate the necessary HTML, JavaScript and CSS for a particular component, and apps are built by composing components into larger components that encapsulate their own data and logic.
  • React and Facebook provide a number of recommendations and best practices to help developers build their apps, but developers ultimately shoulder the burden of building the app — creating or procuring the various components, designing the data architecture and testing plan, establishing the look and feel of the app, adapting to necessary display environments, and so forth.
  • Many of the ExtReact components leverage the data package to provide consistent buffering, sorting, filtering and pagination capabilities with minimal developer effort.

JavaScript is in the midst of transforming development teams’ expectations for desktop, server and mobile apps. Enhancements to JavaScript are enabling it to break free of the browser, while technologies such as Node.js and its package manager npm facilitate creation of portable front-end and back-end apps that rival those traditionally created for environments such as Windows, Linux and mobile devices.
Continue reading “React.js Structures JavaScript for Easy Componentization  “

Sneak peek for my synchronous rendering talk in #ReactNativeEU in 2 weeks.. a working PoC! …

  • Updates made to React components from the JavaScript thread are batched together periodically and sent over the React Native bridge to be performed in the native realm (eventually on the main thread).
  • If we had some way to render components directly from the native realm without going to the JavaScript realm, we could use this ability to remove the overhead in the above scenarios.
  • In JavaScript, a React component will be registered in the exact same way under a new registry called :

    From the native side, the would support two main actions: being created and updating its props.

  • Since the React logic for the synchronous components is still defined in JavaScript, when the component is registered in (usually on JavaScript initialization), we’re going to create a serializable template recipe of how to instantiate it from native.
  • We can eventually port all the core React Native components to be part of this family, just by moving any business logic they have in JavaScript to native.

rn-synchronous-render – Experiments with synchronous rendering in React Native
Continue reading “Sneak peek for my synchronous rendering talk in #ReactNativeEU in 2 weeks.. a working PoC! …”

React.js Structures JavaScript for Easy Componentization  

#reactjs Structures #JavaScript for easy componentization  @thenewstack

  • JavaScript is in the midst of transforming development teams’ expectations for desktop, server and mobile apps.
  • Enhancements to JavaScript are enabling it to break free of the browser, while technologies such as Node.js and its package manager npm facilitate creation of portable front-end and back-end apps that rival those traditionally created for environments such as Windows, Linux and mobile devices.
  • Components encapsulate the necessary HTML, JavaScript and CSS for a particular component, and apps are built by composing components into larger components that encapsulate their own data and logic.
  • React and Facebook provide a number of recommendations and best practices to help developers build their apps, but developers ultimately shoulder the burden of building the app — creating or procuring the various components, designing the data architecture and testing plan, establishing the look and feel of the app, adapting to necessary display environments, and so forth.
  • Many of the ExtReact components leverage the data package to provide consistent buffering, sorting, filtering and pagination capabilities with minimal developer effort.

JavaScript is in the midst of transforming development teams’ expectations for desktop, server and mobile apps. Enhancements to JavaScript are enabling it to break free of the browser, while technologies such as Node.js and its package manager npm facilitate creation of portable front-end and back-end apps that rival those traditionally created for environments such as Windows, Linux and mobile devices.
Continue reading “React.js Structures JavaScript for Easy Componentization  “

New on @eggheadio Convert a @reactjs app from using traditional CSS loaded from a file to “styled-components”.

  • In this lesson, we see how we can apply styles globally with the “injectGlobal” helper method in styled-components.
  • This method allows us to apply styles on the body element, which cannot be wrapped in a styled-component.

These lessons cover converting a React app from using traditional CSS loaded from a file to styled components.

Continue reading “New on @eggheadio Convert a @reactjs app from using traditional CSS loaded from a file to “styled-components”.”

React Ecosystem Setup — Step-By-Step Walkthrough

  • An issue with using a bundle instead of our source code is that it makes debugging more difficult, because the stack trace now refers to our bundle file.
  • Using the flag during development means webpack will watch our files and re-generate the bundle every time we save a change.
  • This code is telling webpack to test the files in our directory and look for the filenames matching the regex in the property.
  • Now we can use ES6 code and the bundle generated by webpack will contain only ES5 code.
  • We’ll have to add a term to our file to tell it that we’re writing React code.

Understand what React, Webpack, and Babel are doing and how to configure them yourself.
Continue reading “React Ecosystem Setup — Step-By-Step Walkthrough”

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”