Shopify Engineering Icon Shopify Engineering

How to write fast code in Ruby on Rails

If I had to pick one engineering team to write up how they make (and keep) Rails running fast, it’d be Shopify’s. What a treat! Part of Shopify’s success with Ruby on Rails is an emphasis on writing fast code. But, how do you really write fast code? Largely, that’s context sensitive to the problem you’re trying to solve. Let’s talk about a few ways to start writing faster code in Active Record, Rails, and Ruby.

read more

Go github.com

Muon – GPU based Electron on a diet

Muon is a lightweight alternative to Electron written in Golang in about ~300 LoC, using Ultralight instead of Chromium. Ultralight is a cross-platform WebKit rewrite using the GPU to target embeded desktop applications that resulted in a fast, lightweight, and low-memory HTML UI solution that blends the power of Chromium with the small footprint of Native UI. Between this, NodeGui, and Catalina’s support for React Native, Electron is getting squeezed on all sides.

read more

Hired Icon Hired – Sponsored

Is your salary competitive?

Hired’s 2019 State of Salaries Report reveals key trends to help answer the questions that are top of mind for tech talent today such as: Where is the next up and coming tech hub? Is my salary competitive? And, what are my tech skills really worth? If you’ve ever asked yourself questions like these and you’re looking for your next big career move, then join Hired and get the 2019 State of Salaries Report delivered directly to your inbox. It reveals key trends to help answer questions like these that are top of mind for today’s technical talent. Get the data and answers to questions that are top of mind for today’s tech talent, plus more when you join Hired - the #1 career marketplace for Software Engineers. Join Hired.

read more

logged by @logbot permalink

Vue.js n8n.io

An "open source" alternative to Zapier

n8n (a numeronym for “nodemation”) is a node-based workflow automation tool. The reason for the square quotes around “open source” is because it has a Commons Clause attached to its Apache 2.0 license, which means you can do anything you want with the source code except make money with it. Since n8n itself is built on open source tech such as TypeScript and Vue.js, this is a nice touch by the author in the FAQ: As n8n itself depends on and uses a lot of other Open Source projects it is only fair and in our interest to also help them. So it is planed to contribute a certain percentage of revenue/profit every month to these projects. How much exactly is not decided yet.

read more

Yaron Wittenstein gryphon.dev

Save yourself the pain by relearning to type

Did you know QWERTY was created in 1878?! I didn’t until I read this interesting piece by Yaron Wittenstein about how he found a new keyboard layout called Colemak that is much less RSI-inducing than QWERTY. QWERTY typing never felt elegant for me. If always felt like something just isn’t right. Typing is supposed to be fun, and with Colemak it’s much more fun. The motivation wasn’t to type faster than QWERTY but to make typing more fun and less effortless.

read more

macOS tyler.io

macOS 10.15 Vista

Tyler Hall: I completely realize and wholeheartedly own-up to the fact that I’m a geek and a Mac power user above and beyond what normal muggles will ever experience, nonetheless, this is the first-run experience I was greeted to this afternoon after upgrading to Catalina. I’m sure Catalina will be worth it in the end, but I’m going to sit this one out for a bit until the dust settles.

read more

Daniele Scasciafratte daniele.tech

Contribute to open source: the right way (Free 📘)

There’s probably nothing life-changing in here for those of us deep in the open source world, but I thought this was worth sharing just in case someone in your life could use a primer on what open source is all about and how to get involved. Have you ever wondered how the open source world exists thanks to the contribution of thousands of people all over the world? Is there a way to learn the skills to contribute at maximum, or to improve it?

read more

Philip Walton philipwalton.com

Cascading cache invalidation

Turns out one of our asset caching best practices (content hashes in filenames + far-future expiry) has a serious flaws in it: In practice, changes to one of your source files almost always invalidates more than one of your output files—and this happens because you’ve added revision hashes to your filenames. Philip goes on to explain why this happens and then proposes 3 possible solutions. Good stuff 👌

read more

Matt Mullenweg ma.tt

Debating OSS with DHH

Want to hear two of the top leaders in open source talk about their differing philosophies on open source and the modern web? The other week I ended up going back and forth in tweets with David Heinemeier Hansson, it wasn’t going anywhere but he graciously invited me to their podcast and we were able to expand the discussion in a way I found really refreshing and mind-opening. DHH and I have philosophies around work and open source that I believe overlap 95% or more, so… Here’s the Twitter conversation that started this debate on the Rework podcast.

read more

The Verge Icon The Verge

California has banned political deepfakes during election season

Colin Lecher reporting for The Verge: Last week, Gov. Gavin Newsom signed into law AB 730, which makes it a crime to distribute audio or video that gives a false, damaging impression of a politician’s words or actions. While the word “deepfake” doesn’t appear in the legislation, the bill clearly takes aim at doctored works. Lawmakers have raised concerns recently that distorted deepfake videos, like a slowed video of House Speaker Nancy Pelosi that appeared over the summer, could be used to influence elections in the future. This is the first (but likely not the last) piece of legislation aimed at fighting the potential impact of GANs Gone Wild. It’ll be interesting to watch this game play out. I think the only long-term, sustainable solution will emerge from the same arena where the problem began: technological advances.

read more

0:00 / 0:00