staticinstance

Adventures in Functional JavaScript

Follow me on GitHub

Reading Material

The Humble Programmer - Edsger Dijkstra

Code Splitting with Webpack

webpack.github.io/docs/code-splitting.html

Lisk

Decentralized JavaScript Applications

Lisk mainnet is now launched and doing very well, take a look here http://coinmarketcap.com/

This is something I'll be keeping my eye on since they just raised almost 6 million dollars for the project

Launch is expected to be on April 11, 2016 (launch has been delayed until end of April...early May)

I set up a delegate node in order to forge on the testnet. It was a relatively simple process. Instructions are linked below.

YoBit launched Lisk "I owe you's" at 20X the ICO price https://yobit.net/en/trade/LISK/BTC

lisk.io

voting tool

setting up a lisk delegate on the test network

HowTo: Free SSL Certificate Creation and Configuration

HowTo: Non-Free SSL Certificate Creation and Configuration

https://github.com/LiskHQ

Functional Reactive Programming in JavaScript

Inspired by the elmish project, I've been wanting to try out a couple new libraries:

ramdajs.com

https://github.com/paldepind/flyd

https://github.com/ccorcos/elmish

https://github.com/Reactive-Extensions/RxJS

React Component Plugins

I've started a project that allows for injected components in React applications. I call the injected components "plugins". The plugins are editable in place via the codemirror text editor and on the fly compiling by Babel. I will be updating the project as much as possible to clean things up and refactor as I find better ways to do things. Please take a look and let me know if you have any suggestions.

react-redux-component-injection-example

working example

Here are some useful links to some of the libraries used in this project:

Node

React

Webpack

Redux

Testing React Components With Jest

I needed to start testing my React projects so I created a starter kit for testing React components with Jest. At first I wasn't able to get it working due to the out of date documentation on the Jest website. I took a look at the github repo and found this pull request https://github.com/facebook/jest/pull/630 which helped get me up and running. Take a look at the project below.

react-jest-starter-kit

Update: As I began testing with Jest, I found out about Airbnb's new library called Enzyme. It's looking pretty nice. While checking it out I found an issue and became a contibutor to the project!

I'll be switching over to mocha / chai since that's what most people are using and there is much more documentation for these libraries.

Working With Elm

I've been hearing about the Elm programming language a lot lately. Recently, I was watching the videos from ReactConf 2016 and saw a couple of presentations on Elm. Now I'm learning it since, it sounds similar to, but may be even better than React. More to come...

Here are some useful links:

elm-lang.org/

elm-by-example.org

Thinking about GraphQL

GraphQL is a hot topic these days. I've been wanting to try it out, I like hapi.js and today I found a project that just might help. hapi-graphql

Take a look at the source on github: hapi-graphql-starter-kit

Next, I will add the graphiql interface.

Here is my project running: graphql.staticinstance.io

Use the get version with the following as the query:

{user(id:"2"){id,name}}

Now that I have a server running I'll need to create a client using React and Relay.

https://github.com/relayjs/relay-starter-kit

https://github.com/facebook/relay

Use Relay in dev mode without compiling your query strings ahead of time

Libraries I have yet to take a look at

http://amplifyjs.com/

https://github.com/systemjs/systemjs