Working with symlinked packages in React Native

For an RN app I’m co-developing we have several repos that work together. One of the repos acts a library for other repos to use. During development, in order to test a few things out, we sometimes need to have the local dev version of the library repo work with one of the other repos …

Introducing Flutter, Google’s new Mobile UI Framework

Recently Google announced Flutter, their mobile UI framework that “helps developers craft high-quality native interfaces for both iOS and Android”. Flutter targets the sweet spot of mobile development: performance and platform integrations of native mobile, with high-velocity development and multi-platform reach of portable UI toolkits. Here’s a simple Hello World app: import ‘package:flutter/material.dart’; void main() …

Unlearning Toxic Behaviors in a Code Review Culture

Sandya Sankarram recently tweeted out this nice list of behaviors to avoid in code reviews: Behaviors to avoid in code reviews: – stating opinion as fact – avalanche of comments – asking devs to fix problems they didn’t cause – judgemental questions – sarcasm@sandyaaaas #AlterConf pic.twitter.com/LX1AeG4JOk — Rachel Thomas (@math_rachel) December 10, 2017 In an …

Trigger macOS notifications from the CLI with node-notifier-cli

$ notify -t “Hello” -m “My Message” -s –open http://github.com $ notify -t “Agent Coulson” –icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg $ notify -m “My Message” -s Glass $ echo “My Message” | notify -t “Hello” Installation per NPM/Yarn: yarn global add node-notifier-cli TIP: As with many packages you can also run it using the aforementioned npx: npx -p …

Making a Deep Copy of an Object in JavaScript

In JavaScript, when cloning an object via Object.assign({}, obj) or by destructuring it (e.g.{…obj}, only shallow copies are created. Surma has explored some unusual ways – other than JSON.parse(JSON.stringify(obj)); to create an actual deep copy: MessageChannel History API Notification API (told you they were unusual ;)) Deep-copying in JavaScript →

Dribble Inspired Todo Empty State Transition implemented in React Native

Ooh this is nice. Uses a simple Animated.Value which is animated from 0 to 1. Said value is only defined once – in a wrapping component – and is passed on to the various children as a prop. react-native-todo-empty-state-transition →

IoC containers beyond constructor injection

Talk by Hannes Van De Vreken, as given at the recent phpCE conference in Poland: Did you know your IoC container can do a whole lot more than just constructor injection? Besides that it is actually packed with features. Inflectors, resolving callbacks, aliasing, method invocation to name a few. In this talk you will learn …

Grid Time (or “Why are clocks in Europe lagging behind by 5 minutes?”)

Yesterday I heard on the news that clocks in Europe have started to lag behind on the official time. The culprit is a fluctuation in Europe’s electricity grid. Clocks, like the ones in your microwave, that are reliant on Grid Time are affected by these fluctuations: Grid Time is a time measurement which is based …