Open in app

Sign In

Write

Sign In

Jonathan Hsu
Jonathan Hsu

5.4K Followers

Home

About

Published in Code 85

·Pinned

How to Use Handlebars with Netlify Serverless Functions

Less code, faster results, easier maintenance — Netlify Serverless Functions (or simply Functions for short) have been a game changer. Before, in order to build an HTML template, populate it with data, and have it be web-accessible required setting up some sort of server, such as ExpressJS or perhaps diving into something like React. I always felt…

Programming

5 min read

How to Use Handlebars with Netlify Serverless Functions
How to Use Handlebars with Netlify Serverless Functions
Programming

5 min read


Pinned

You Need to Cancel and Resubscribe to Medium

A simple way to support your favorite content creators — Starting in August 2021, Medium introduced a new membership renewal program. Simply put, if somebody becomes a paid subscriber through your membership link, then you get rewarded. It’s an affiliate link—nothing special. Medium had made many changes to its partner program in 2021 so I didn’t pay much attention and…

Medium

2 min read

You Need to Cancel and Resubscribe to Medium
You Need to Cancel and Resubscribe to Medium
Medium

2 min read


Published in Code 85

·Feb 11, 2022

Replace Equality Expressions with indexOf() in JavaScript

Simplify your conditions and improve readability — Let’s put ourselves in a fictitious scenario where a message prints only during the hours of 8AM, 10AM, and 2PM. The code block might look something like this… const d = new Date(); const hour = d.getHours() + 1; if(hour === 8 || hour === 10 || hour === 14)…

JavaScript

2 min read

Replace Equality Expressions with indexOf() in JavaScript
Replace Equality Expressions with indexOf() in JavaScript
JavaScript

2 min read


Published in Code 85

·Oct 31, 2021

What is While-True-Break in Python?

When you should create an infinite loop — Iteration structures—code blocks that repeat—are an absolute fundamental tool. Previous articles have discussed iteration structures at a more basic level, but this article will introduce a specific implementation. What is a While Loop How to Pick Between a While and For Loop We will introduce and explore an intentionally designed…

Programming

3 min read

What is While-True-Break in Python?
What is While-True-Break in Python?
Programming

3 min read


Published in Code 85

·Oct 19, 2021

The Best Way to Request User Input in Python

Take advantage of the PyInputPlus Module — Requesting user input is a topic of frequent discussion. There are lots of opinions and strategies out there, but it’s important to be willing to change. …

Programming

2 min read

The Best Way to Request User Input in Python
The Best Way to Request User Input in Python
Programming

2 min read


Published in Code 85

·Oct 18, 2021

How to Add Values to the Middle of a List in Python

Learn to use the insert() method — Manipulating lists is a critical skill for any budding Pythonista. 9 out of 10 times, adding data to a list is done using the append() method, which adds the value to the end of a list. However, sometimes we need to add a value in the middle of a list. …

Python

2 min read

How to Add Values to the Middle of a List in Python
How to Add Values to the Middle of a List in Python
Python

2 min read


Published in Code 85

·Sep 20, 2021

Data Science Made Easy with Mito

A simple and free spreadsheet tool — Whether you are an IT professional, upstart business manager, or looking for a change in profession, you’re sure to run across the need to import, manipulate, and digest data sets. For me, data science is not a primary function of my day-to-day. So I want the most bang for my…

Programming

3 min read

Data Science Made Easy with Mito
Data Science Made Easy with Mito
Programming

3 min read


Published in Code 85

·Sep 13, 2021

How to Merge Dictionaries in Python

Three strategies to consolidate dictionaries — Merging data—often referred to as a union operation—is a common task in programming. When it comes to merging dictionaries, there are multiple strategies that you can choose from. In this article, we’ll detail three different strategies, one of which is brand new in version 3.9 and by far the easiest…

Technology

3 min read

How to Merge Dictionaries in Python
How to Merge Dictionaries in Python
Technology

3 min read


Published in Code 85

·Sep 7, 2021

How to Remove a Prefix from a String in Python

The old way and the new way — Nothing warms my heart more than string manipulation — yes, this is sarcasm. Managing strings is not glamorous, it’s not mentally rewarding, but it is a common requirement. Therefore, I do my best to find built-in tools or build reusable tools for the same task. Removing prefixes is one such…

Programming

2 min read

How to Remove a Prefix from a String in Python
How to Remove a Prefix from a String in Python
Programming

2 min read


Sep 6, 2021

My Favorite Gmail Productivity Hack

A simple spam filter and account manager — I rarely share my productivity hacks. Not because I’m stingy, but because everybody has their own flavor. Last time I shared an easy way to setup window snapping for vertical monitors. …

Productivity

2 min read

My Favorite Gmail Productivity Hack
My Favorite Gmail Productivity Hack
Productivity

2 min read

Jonathan Hsu

Jonathan Hsu

5.4K Followers

Top writer with 2.5M+ views. https://medium.com/@jhsu98/membership

Following
  • Shirley Lee

    Shirley Lee

  • John Gruber

    John Gruber

  • Tony Stubblebine

    Tony Stubblebine

  • Marc Kirk

    Marc Kirk

  • Jelena Jovanoski

    Jelena Jovanoski

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech