NDepend to the Rescue – Again

The last few years I’ve been working in Java, Kotlin, Ruby, Flutter and Delphi, but I’ve finally had the opportunity to return to .NET programming and my favourite language C#. I’ve been working feverishly on a WinForms project, but despite efforts to write clean code, I’ve taken shortcuts which I need to address before moving […]

Tracing in Rails

This post is about using TracePoint in Rails 5. It’s a reference for myself, but may be helpful to someone else as a solution. Any suggestions to improve the code are much appreciated. When working with a large, unfamiliar codebase, and not being up to speed with the business domain, I need all the help […]

Rebuilding the Rails IDE

Update 5 Now it’s getting interesting. I was able to get VSCode integrated shortly after LunarVim: Update 4 What a week! I swapped out the Scintilla and Monaco editors, excellent as they are, for LunarVim which contains many much needed plugins for development, such as an LSP for ruby. Another Ubuntu (WSL) console is used […]

GPT Chat Web Page

After avoiding front-end web development, I finally give in, I’m joining the party…well hopefully enough to be dangerous 🙂 I started with web development back in the IE 3 days. Nothing was compatible between browsers. The days of <blink> and scrolling marquees. Later I worked as an Internet Developer around the dot-com bust, using ASP […]

RAILS IDE

Update: I’ve rebuilt this from scratch, see here, but it is interesting to see the evolution. Recently I’ve been working as a Rails developer. I’ve always enjoyed Ruby and I’m grateful for the chance to learn more about this magical language. However, I found myself grappling with a huge code base, and an unfamiliar business […]

var var

I just learnt today that var in Java is not actually a language keyword. It is actually a reserved magic type name. You can use it as a variable: Why anyone would ever do that, apart from freaking out the code reviewer, I don’t know 🙂

Winforms Nostalgia

Had the chance to spoil myself today! I needed a tool to migrate and manage quotes from an old json format I had used in a Xamarin application. That provided the perfect excuse to jump back into C# and Winforms. It’s been a while, I must say, I’ve been in Java and Delphi a lot […]

Android Tip on Delphi Update

Recently I updated from Delphi 11 to Delphi 11.1 and was surprised to find my Android Application couldn’t deploy to the phone anymore. I was getting the following error: [PAClient Error] Error: E7688 Caused by: java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\22.0\lib\android\Release\google-play-billing.dex.jar In fact, there were lots of missing files: The solution was to right click on the […]

Leetcode – Integer to Roman

Name: Integer to RomanDifficulty: MediumDescription: Convert an integer to Roman Numerals Example: Input: num = 3 Output: “III Input: num = 58 Output: “LVIII” Input: num = 1994 Output: “MCMXCIV” Just used a simple approach for this one, it’s self-explanatory.

Leetcode – Remove Nth Node From End

Name: Remove Nth Node From End of ListDifficulty: MediumDescription: Remove the nth node from the end of the list, return the list Example: Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5] Input: head = [1], n = 1 Output: [] Input: head = [1,2], n = 1 Output: [1] Tried to do this in […]