Blogs / Personal blogs

Brandon Smith

brandons.me

Code and words enthusiast. Staff-level engineer available for contracting and consulting.

Popular posts
5
Total points
2,470
HN comments
1,061
Rank
#633 personal

Visit brandons.me → RSS feedOn Hacker News Feb 2020 – Apr 2021

Software Engineering 5Programming Languages 2Databases & Data 1Career & Management 1

2

Write code. Not too much. Mostly functions.

There’s a well-known quote by author Michael Pollan: “Eat food. Not too much. Mostly plants.” I like it because it doesn’t attempt to be dogmatic: it encapsulates some basic guiding principles that get you 90% of the way there 90% of the time. Wikipedia describes the book the quote is from (emphasis mine):

3

Why Rust strings seem hard

Lately I’ve been seeing lots of anecdotes from people trying to get into Rust who get really hung up on strings (&str, String, and their relationship). Beyond Rust’s usual challenges around ownership, there can be an added layer of frustration because strings are so easy in the great majority of languages. You just…

5

Three Types of Data

In my work I’ve developed a mental framework related to data modeling, which has helped greatly both when coming up with a model and when making decisions down the road about how to use that model. Here I will establish three different categories of data in software: Constants, State, and Cached Values. By “data” I…