Andy Bohn bio photo

Andy Bohn

Cornell physics graduate student, studying merging black holes, board games, and barrel strength whiskey.

Email

All Posts

2015

Almost always use std::vector

Common wisdom is you should use structures like linked lists instead of vectors when you expect to perform many insertions and deletions. Insertion in a list...

Deciphering C++ types

I was once like you. When encountering a type declaration like char const * const *, I’d either curl up in a ball clutching my office mate’s leg and crying, ...

82000 - the search is on

I recently became obsessed with a fairly unique integer sequence that I introduced and explained in an earlier post. The sequence is 2, 3, 4, 82000 and, to m...

Breaking Bad names

I’m currently binge re-re-watching the show Breaking Bad, when I starting thinking about the names used in the credits. All the names have highlighted in gre...

Operator-> in c++

I recently discovered an interesting fact about how operator->() operates differently than other overloads in C++. Consider the following code:

2, 3, 4, 82000, ?

I know what you’re thinking. “I need more arbitrary math in my life for the sake of being a nerd.” Alright, maybe you’ve never thought that, but I recently w...