Bennett Hardwick

8 pages tagged with "beginner"

Creating a blazing fast static website without Gatsby or JavaScript

June 09, 2020 - 1242 words - 6 mins
Gatsby, React, and static websites are all rage at the moment. Though they aren’t without their flaws, for the most part, I’ve been riding the bandwagon. Over the last year I’ve been working daily helping maintain a large Gatsby site, working on a Gatsby personal site and enjoying flexing my Gatsby merch . Read More…

Don't use boxed trait objects for struct internals

December 24, 2019 - 1279 words - 7 mins
When writing a struct with the intention of it being reused, it’s important not to use boxed trait objects to represent interior data. Namely, this is because turning an object into a Box<dyn Trait> loses a lot of type information about the object which is difficult to get back should the developer consuming your struct need it. Read More…

Why you should be force pushing your branches

May 27, 2019 - 834 words - 4 mins
A lot of people hate force pushing. I hear the same argument over and over again, that needing to force push to a branch means you’ve done something wrong. I detest this! In fact, I’d argue that needing to force push to a branch means you’ve done everything right! Read More…

8 Vim tips and tricks for advanced beginners

January 06, 2019 - 1977 words - 10 mins
A few weeks ago, I saw this post by Robert Hearton which outlined a few programming projects for advanced-beginners. It talked about the idea of the “valley of despair”, and offered up some ways that might help you get out of it. Read More…

Speeding up Arch Linux AUR build times

April 17, 2018 - 274 words - 2 mins
I have a T440s that runs Arch Linux. It’s the computer that I use at University and I spend a lot of time programming on it. One of the things that I hate about it however, is the amount of time it takes to build a package from the AUR. Read More…

Fixing broken Japanese fonts on Arch Linux

March 30, 2018 - 435 words - 3 mins
Setting up fonts for Japanese and other non-latin languages can be a bit difficult on Arch Linux. I find that every time I configure a new system I forget how to make it work perfectly, and I end up wasting hours trying to find the right answers. Read More…

Making Typescript packages JavaScript friendly

February 06, 2018 - 579 words - 3 mins
I don’t know about you, but when I first started using Typescript it was an absolute game changer for me. Even for simple projects, where I’d be writing less than 100 lines of JavaScript, I’d always opt-in to using Typescript instead. Read More…

Parameters go backwards in C

October 31, 2017 - 345 words - 2 mins
The funny thing about C, is that it gets harder the longer you spend trying to learn it. In the beginning, C seems like an incredibly simple language. Hell, there’s only 32 keywords! But as soon as you nail the basics, it’s difficulty increases exponentially. Read More…