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
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 …
Continue reading “IoC containers beyond constructor injection”
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 …
Continue reading “Grid Time (or “Why are clocks in Europe lagging behind by 5 minutes?”)”
Smarter Every Day: A Real Life Haptic Glove
Carthage – A simple, decentralized dependency manager for Cocoa
Whilst checking out the aforementioned IMcD23/TabView and a few other iOS/macOS libraries I could not help by notice the lack of CocoaPods and the presense of Carthage. Apparently the community is now leaning more towards the latter. Carthage is intended to be the simplest way to add frameworks to your Cocoa application. Carthage builds your …
Continue reading “Carthage – A simple, decentralized dependency manager for Cocoa”
IMcD23/TabView – Easily add multiple tabs to your iOS app, styled similar to Safari for iPad.
There are two primary view controllers in this library: TabViewController and TabViewContainerViewController. A TabViewController contains an array of tabs, a visible tab, and some methods to add and remove tabs. A TabViewContainerViewController contains TabViewControllers. IMcD23/TabView (GitHub) → (via Louis D’hauwe)
Run your tests using Jest & Puppeteer with jest-puppeteer
With jest-puppeteer – and its included expect-puppeteer assertion library – it’s possible to use Puppeteer within your Jest tests. Writing integration test can be done using Puppeteer API but it can be complicated and hard because API is not designed for testing. To make it simpler, an expectPage() is automatically installed and available, it provides …
Continue reading “Run your tests using Jest & Puppeteer with jest-puppeteer“
30 seconds of CSS
Waymo 360° Experience: A Fully Self-Driving Journey
Waymo began as the Google self-driving car project in 2009. Today, we have the world’s only fleet of fully self-driving cars on public roads. Step into our 360° video and take control of the camera to see through the “eyes” of our car. Then, be one of the first in the world to take a …
Continue reading “Waymo 360° Experience: A Fully Self-Driving Journey”