Monday, November 25, 2019

Read - Understand - Assimilate

There's no place like Legacy Code!

And you know it becomes legacy as soon as new moon rises. Even if you have written it yourself!
It is no easy task to understand alien (or alientated) code. The best IDEs are optimaized to write code and they fail to help you read and understand the code.
I have already posted on OpenGrok, that can be used to search huge codebase in milliseconds. It has become even better, that now you can set it up in 2 minutes with docker. With OpenGrok you can search repeated code phrases, common patterns in several codebases.
But to understand concepts in a given project can be hard. Even though UML diagrams can be generated from source code, you usually get a huge and messy diagram with endless web of connections.
There is though a refreshing new tool on the stage called Sourcetrail.
The clean and intuitive design makes it easy to adopt, and you can browse your legacy project asap based on its maven project file. Some shortcuts are a bit strange to me (e.g.: CTRL+z is back), but in the long run it has no relevance.
It has recently become free as beer, but please, support it with donation of any amount - it is worth every penny!

Thursday, August 22, 2019

Firmware upgrade on ThinkPad

I do not know what could have been the last thing causing that much headache as the HDMI problem of my current laptop. After a succesful system update the external monitor was not recognized and stayed in a disconnected state. I spent some hours browsing false-positive forums hunting for a solution. Then I gave up and turned to the problem of updating the BIOS which in turn happened to be the solution to my display problem.
I was inspired by an article how easy it is to upgrade firmware on Linux nowdays. Of course my ThinkPad 13 is not supported by that... But at least it ignited my curiousity. Downloading the .iso image from the manufacturer's site was easy. To burn it on a pendrive - that was something! Lots of tool around the world to burn images, but noone tells you to unpack the .iso image first to a .img file. That was the missing link that I have learned from this video.
The main parts:
Thanks nixcraftcom!