Building a Sync Bridge
Adapting event-driven APIs to Promises in JavaScriptEvent-driven architecture (EDA) is a powerful way of building loosely coupled, performant, scalable apps on the web. It enables rich experiences like push notifications, collaborative editing and multiplayer, and other real-time interactions, and encourages modularity.But sometimes the model is inconsistent with what we as
Read more75+ Handpicked Programming Articles Across Medium (April-June 2023)
Better Programming Issue #93Welcome to the latest issue of Coffee Bytes, a newsletter featuring a diverse set of programming stories across Medium to help you get inspired and code throughout this week.This edition spans from Mojo, the buzzing new programming language that seemingly everyone is talking about, to the latest goodies announced
Read moreHow Observability Changed My (developer) Life
Photo by Ben Blennerhassett on UnsplashRecently I was thinking what was the single most important thing that changed my point of view on programming other than switching from PHP to Kotlin, and that thing is observability. I’ll try to share my journey with the concept and provide some experiences and recommendations
Read moreAn Introduction to Parallel and Distributed Training in Deep Learning
The amount of existing research and technology is overwhelming sometimes. This is why this series of articles was created — to make the information accessible to beginners.So you are training a deep neural network, and it’s slow. But you have multiple GPUs and/or computers available.How do you utilize them? How do you
Read moreStreamlining Form Validation in Your JavaScript Stack
How a great schema makes you write less codeImage by authorModern web applications often intensively deal with accepting and storing user-generated data. The interaction can happen by submitting forms, uploading files, or any other form of interactivity. Data validation is crucial to ensuring that the application functions correctly and securely. However, having
Read moreService Container: A Portable Way of Testing Your Application in the Pipeline
A guide on how to use service container in GitHub Actions workflowsContinue reading on Better Programming »
Read moreCosine power approximation to Gaussian density
Years ago I wrote about how you can make a decent approximation to the Gaussian density by shifting and scaling the cosine function. This observation dates back at least as far as 1961. Turns out you can do even better by raising the cosine term to a power. Not only
Read moreGiving advice? Simplicity is king.
Photo by Elena Popova on UnsplashI played Go quite a lot. I switched to Chess recently and have played it way more for the last half a year.As I was playing Go, one of the frustrating things was that I had difficulty figuring out which move was bad and why.It’s a little bit
Read moreTo Write or Not to Write (Code)?
What does it mean to be technical, and how it helps Engineering ManagersRobot Thinker, by MidJourneyA common topic in engineering leadership is the need for technical Engineering Managers (EMs). Do they need to code or not? What should their technical contribution be?While contexts vary, and there are no right and
Read moreBuy one, get one free
The two latest blog post have elaborated on the fact that when a function satisfies a second order differential equation, once you’ve evaluated the function and its derivative you get the second derivative for free, or at least for cheap. Sometimes functions are so closely related that software libraries bundle
Read more