Thoughts on Application State

Mat Warger Articles, AWS, JavaScript, React 1 Comment

Use Redux! Use MobX! Just use `setState`!
Redux is functional! Mobx is reactive! `setState` is built-in!
But Redux has so much boilerplate! But MobX is more difficult to debug! But `setState` doesnโ€™t scale!
Why donโ€™t you just use Rematch to abstract the Redux boilerplate? Do I use redux-thunk? redux-saga? redux-observable?
How about using Unstated? How about just using the Context API?

:head-explodes:

There are a lot of options for developers regarding how and when to use state management libraries (SML).

Remember those last two articles (The Joy of Forms with React and Formik &ย One Router to Rule Them All: React Router) about the massively underplayed game library? There was a third part to comeโ€Šโ€”โ€Ša follow-up meant to implement an example of state management for an application. The application was small, granted, but this somewhat contrived example would tie it all up. Itโ€™d be the cherry on top. It would complete the rule of threes.ย ๐Ÿ˜‰

There is not going to be another tutorial about which state library we can use to better manage our game library. Rather, in this post, weโ€™re going to look at how and why you might use a library to manage your applicationโ€™s state, and why that particular application is a perfect example of when you might not need a SML at all.

What’s New in JUnit 5.1

Billy Korando Articles, Development Technologies & Tools, Effective Automated Testing With Spring Series, Java Leave a Comment

It is hard to believe that JUnit 5 has been out for five months! Already we have our first feature release. There are quite a few changes in 5.1 and you can see them all in the release notes. In this article, we focus on a few of the changes that I think are the most impactful to the day-to-day tasks of writing automated tests…

Core ML

Core ML After Dark

Derek Andre Articles, Development Technologies & Tools, Machine Learning, Mobile, Tutorial Leave a Comment

So you’ve made this great social media app, and you are about to sit back and wait for the money to roll in. But, there is a problem: people keep trying to upload nude photos to it.

What if we could have a trained machine learning model that could detect not safe for work (NSFW) content and do it on a iOS device, before any image would be uploaded to a server?

Developing this trained machine learning model is way out of scope for this blog post. Luckily, the good people at Yahoo have already done this with theirย open-sourced trained Caffe models. The question now is, how can we use this on an iOS device?

In this post: The sultry side of your iPhone can collide with acceptable use policies. We introduce a machine learning solution that can help your application decide what is truly too hot for the internet using Core ML on iOS…

Managing Docker Containers with OpenShift and Kubernetes

Casey Justus Articles, AWS, Cloud, Development Technologies & Tools, DevOps, Docker, Microservices, openshiftseries Leave a Comment

For the last few years, Docker containers have been all the rage in the DevOps world. After all, whatโ€™s not to like? They allow you to strip out 99% of stuff in your VM and just deploy your code.

Containers can save resources, speed deployment, scale well and offer more fault tolerance. But how do you manage them?

In my experience, the Docker Machine and Docker Swarm stack hasnโ€™t lived up my to expectations. It has a limited API, no support for monitoring and logging, and much more manual scaling. AWSโ€™s EC2 containers scale well, but youโ€™ll be locked into Amazon.

In my opinion, the best current stack for Docker containers includes Kubernetes and OpenShift. In this blog I will give a brief introduction to Kubernetes + OpenShift with an eye for what they do well…