Open in app

Sign In

Write

Sign In

Ronald Chen
Ronald Chen

70 Followers

Home

About

Published in

Battlefy

·Apr 18, 2022

Streams are weirder than you think

Streams are a simple concept, but they are actually really weird if think about it. What is a stream? A stream is a sequence of elements. An example of a stream is file, where each element is a byte. Element type is weird Element types could be… …an array of block sized bytes, for performance reasons …entire JavaScript…

Software Development

2 min read

Streams are weirder than you think
Streams are weirder than you think
Software Development

2 min read


Published in

Battlefy

·Apr 11, 2022

How to sneak in a XSS exploit in 4 steps or how to detect said attempt

Cross-site scripting (XSS) attacks are very serious. When fully exploited, it gives one full control of user account on websites. Imagine somebody gaining access to your bank account and transfering all the money out. From the bank’s perspective, this would be a perfectly fine legitimate operation from the account owner. …

Software Development

4 min read

Software Development

4 min read


Published in

Battlefy

·Apr 4, 2022

Don’t let this one problem ruin your user’s experience

Building great online experiences is hard and it is due to the one critical limitation that system designers fear the most, latency. The latency for a request from San Francisco to New York City compared to a CPU cycle is eight orders of magnitude! This difference in latency causes a…

Web Development

5 min read

Don’t let this one problem ruin your user’s experience
Don’t let this one problem ruin your user’s experience
Web Development

5 min read


Published in

Battlefy

·Mar 28, 2022

3 bad REST endpoint designs

While REST defines useful constraints, there are still plenty of way to shoot yourself in the foot. Let’s consider an use-case and attempt to write a REST endpoint for it. We’ll strawman some bad designs in order to get to a final good one. Sample use-case Let’s say we are tasked to…

Rest

3 min read

3 bad REST endpoint designs
3 bad REST endpoint designs
Rest

3 min read


Published in

Battlefy

·Mar 21, 2022

Capitalizing on consensus for the greater good

Tell me if this sounds familiar. You are in agile retrospective and everybody has brought up the same pain point. The single action item is to resolve the pain point, it has been assigned to an owner. Then in the next retrospective everybody brings up the same pain point. …

Consensus

3 min read

Capitalizing on consensus for the greater good
Capitalizing on consensus for the greater good
Consensus

3 min read


Published in

Battlefy

·Mar 14, 2022

Parallel programming in Node.js is so slick

Naysayers will say Node.js isn’t for serious work as its single threaded, and while it is true the JavaScript event loop is indeed single threaded, this is a performance advantage. Node.js …

Multithreading

3 min read

Parallel programming in Node.js is so slick
Parallel programming in Node.js is so slick
Multithreading

3 min read


Published in

Battlefy

·Mar 7, 2022

How to handle any production outage

This is a general outline of an incident response playbook to handle and recover from a production outage. This document won’t be perfectly applicable to your own production system, but can be used as a starting point to write your own incident response playbook. Production system assumptions We will start with an outline…

Production

7 min read

How to handle any production outage
How to handle any production outage
Production

7 min read


Published in

Battlefy

·Feb 28, 2022

Prettier is brutal, but the future of AI?

Prettier is an opinionated code formatter that intentionally has few options. While prettier will never add/remove code, it will brutally reformat all the whitespace around the code to a fixed style. At times Prettier will reshuffle multiple lines just because a variable name got longer by 1 character. This seems…

JavaScript

3 min read

JavaScript

3 min read


Published in

Battlefy

·Feb 21, 2022

How to think about TypeScript

TypeScript is a superset of JavaScript, if one avoids certain features. Under the hood, transpiling TypeScript to JavaScript is simply removing the type annotations. In other words, the actual running code isn’t anymore powerful than JavaScript itself.

Software Development

3 min read

How to think about TypeScript
How to think about TypeScript
Software Development

3 min read


Published in

Battlefy

·Feb 14, 2022

Understand two levels of abstraction above and below you

As software developers, we are constantly moving up and down the ladder of abstraction. Junior developers tend to get lost and get stuck when they attempt to solve problems at the wrong level of abstraction. …

Software Development

2 min read

Understand two levels of abstraction above and below you
Understand two levels of abstraction above and below you
Software Development

2 min read

Ronald Chen

Ronald Chen

70 Followers

Principal developer at Battlefy

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams