Like, in a good way.
The first month of this year has been busy. Way too busy. I somehow seem to keep getting myself in this state at work. But now that it's February, things have calmed down.
This past week was my company's semi-annual company meeting that we traditionally have done in person, but it's been remote ever since COVID happened. As it stands now, this is the last virtual company meeting week, and I am so excited for when I'll get to see so many of my co-workers in person again.
Monday was actually kind of nice. I went into the office and two of my friends were there too. We got smoothies in the afternoon, and we goofed around and didn't work too hard.A bunch of other friends were also going to come in on Tuesday, so we all planned to grab Tacos. At the end of the day I thought, "Wow, this might be the best virtual company meeting yet!"
Then on Tuesday morning, I learned that one of those co-workers tested positive for COVID, so I stayed home for the rest of the week out of an abundance of caution. I never ended up catching COVID from that, but I was pretty bummed about having to stay home.
I wanted to make the most of the week though, so I went for a run on Tuesday, which was the first time in months that I've been running. I did a simple strength workout on Wednesday, and I went on a longer run on Thursday. I also bought groceries and cooked every night. And even though I was kind of sore, my body felt good.
I wasn't terribly invested in all of the work meetings throughout the week. There was a point in time where I would get so motivated every time the CEO spoke, talking about the growth we saw year over year and how every single person contributes to that. And I wanted to do more. Apparently I had been working at "snail pace", so I must have felt like I needed to do more. But I didn't. I have never ever been told that I wasn't getting enough work done.
And now, while I get so much more done every week, so much that people tell me that they can't believe how many tickets I keep cranking through, I still have lingering feelings that it's not enough. Not because I care so much about the company, but because I just have these expectations for myself.
I'm still working on letting go. I'll probably struggle with overworking until the day I quit my job. But this week was okay. This week I took breaks and put exercise and good food and social interactions and even household chores above my work. And I'm finding that when my mind isn't so mentally drained from work, that it's possible to find some time to read and work on my personal projects. And that feels really good.
I've heard that a lot of programmers sometimes get "in the zone". They're working on implementing something new, and they've got all these ideas in their brain and they're just pounding out lines and lines of code, and the hours just melt by. They don't want to get up. They just want to keep coding until they're done, even if it's past End-Of-Day.
I mentioned a few posts ago that I don't really get in the zone when I'm writing code. But I think the closest I ever get to feeling that way is when I'm done making all my code changes and I start making commits. Git commits.
I don't think I have strong opinions about too many things in the tech space, but I care a lot about commit messages. Every time there's a new dev on my team, and I review one of their PRs for the first time, I always point them to How to Write a Commit Message. I know I'm never going to get the hundreds of developers at the company to abide by these guidelines, but damnit I'm gonna try.
I rarely ever make a pull request with just one commit in it. I start with a gigantic diff, and I try to break it apart into smaller, easier to digest pieces. "Okay, first, I'll commit changes I made to the schema of this table, and then I'll make this change to the model layer, and then I'll work on the controller,..." When I make bug fixes, I start by adding a commit that adds a failing assertion, and I commit it by itself:
Exposes a bug in the code. This will fail as of this commit
The order matters too. If I made changes to five different files, what order do I want the reviewer to look at them in? I want to be able to guide the person, and not have them feeling overwhelmed because there are so many changes. I want them to know why I made certain choices in the code, and what parts of my change I feel unsure about.
The act of organizing everything helps me find places in my code that could be improved as well. Does this method need better documentation? Can I easily read this from top to bottom?
And I'll even throw in pointers for looking at a diff:
Look at this diff with the -w option, and you'll see that the only things I changed here were whitespace.
Use the --color-moved flag to see that I didn't add any new logic, just moved it from one spot to another.
And when I can't make something easy to digest, I'll say that too
This diff is kind of a mess, so I'd just recommend looking at the method in the file itself.
In the end, if I'm happy with everything, it feels like I've created something beautiful. At least to me.
Sometimes I wonder, is it really worth it for me to take an extra four hours just for committing? I know for a fact that some people I work with don't even read the commits. They just look at the full diff in bitbucket. And then I get a comment like this:
Why did you remove this line?
And in my head I'm thinking "Well if you read the commit message that went along with it, you'd know exactly why I removed it >.>"
But this scenario is slowly becoming less and less common.
A few weeks ago, everyone on my team was tasked to find an example of good documentation in the code. And one of my co-workers brought up my 30+ commit pull request, and said that even though it was large, it was very easy to follow. It was easy to see which parts of it were simple, and which other parts required a more thorough review. I think I spent a whole day putting those commits together, and it made me feel so good to know that it made a difference. For me, it was one of the most thoughtful comments I've ever gotten about my code.
The other day my friend asked me what I've been listening to lately. The answer to that is usually a lot of Top 40. I like pop music. I've liked pop music ever since I was in high school, when I became obsessed with American Idol. So I've always wanted to write about music that I enjoy listening to. I miss the days when people would put what they were reading/watching/listening to in their blog posts or status updates. That was just part of the blog engine. (Maybe I should make that part of my blog engine. One day)
Anyway, here are six songs that I've been enjoying lately.
I had accidentally reverted my nginx configuration file to an old version, and it had remnants of my old SSL cert. This was causing the file to be invalid.
Anyway, it should be fixed now and it should renew automatically in the future 🤞
My birthday was about a month ago, and it wasn't very exciting, but in the midst of all the happy birthday messages, one person reacted with 💃. Man, I hadn't felt like that since my sabbatical.
As much as I wish I could go back to that sabbatical, I know that I've still got at least another year of working full-time. I'll get back to my creative endeavors when the time feels right. For now, I'm just relaxing and trying to find time to get some dance games in.
, , \ \ O/ O/ /V /V `/\ `/\ L \. /L\\.