Hi, I’m JC 👨‍💻

Welcome to my little space in the internet where I write about software, work, and maybe a bit of philosophy.

Practicing Functional Programming with ChatGPT

I’ve been working on Leetcode questions for the past few days, and whenever possible, I’ve been experimenting with functional programming approaches, despite the fact that it might be slower compared to imperative programming. As an example, when I tackled Leetcode question 49 - Group Anagrams, I chose to implement a functional programming solution. Below, you’ll find the code I came up with, including how I usually setup my test class for Leetcode purposes....

September 29, 2023 Â· JC

A reminder to write more

In the past month, I’ve come across the two pieces of advice that practically convey the same message, to me at least. Don’t just say you have read books. Show that through them you have learned to think better, to be a more discriminating and reflective person. Books are the training weights of the mind. They are very helpful, but it would be a bad mistake to suppose that one has made progress simply by having internalized their contents....

September 28, 2023 Â· JC

Testing Data Manipulating Scripts Using Groovy and Testcontainers

How do you write automated tests for scripts? This question popped in my head when I had to write a script that deletes data in my previous job. Sure I could just run a container in the background but I wanted the setup to be easy for my coworkers. I also said to myself that no way will I write “a simple script” that deletes data without writing tests for it....

April 28, 2022 Â· JC

Porting Real-World Software Development Sample Code to Kotlin

Context I’ve wanted to use Kotlin for the longest time. For my day job, I tried to use Kotlin for tests and prototypes when I could, but it didn’t really catch on with the rest of my coworkers. So me learning Kotlin has been put on the back burner. Due to life changes brought by the pandemic, I managed to get a bit of time for personal endeavors. I decided to try and give Kotlin a shot again....

November 23, 2021 Â· JC