Wednesday, February 2, 2022
How to Move Subdirectory Into New Git Repository?
I have had to move one of the subdirectories of a Git repository to a new one. I needed to keep the commits history on the new repository. But, of course, only that relevant part of history for my subfolder. Looking on the Internet for a solution, I have found a lot of articles suggesting filter-branch, but it turns out it is not the best solution. At least for me.
Friday, January 7, 2022
How to Use PlatformIO Core?
PlatformIO provides an integrated development environment for developing embedded solutions supporting, as of the start of 2022, 51 platforms and 28 frameworks for over 1000 different boards. It is called PlatformIO IDE, and in my opinion, it is the best free and open-source solution for developing embedded solutions. Especially in comparison to such bad products like Arduino IDE.
Friday, November 12, 2021
Monday, September 20, 2021
CSS, SCSS and Sass Static Code Analysis
Cascading Style Sheets is the most widespread style sheet language. It is one of the three pillars of modern web development. Although CSS is not the most complicated language, it could still gain a lot from SAST (Static Analysis Software Testing) tools. The standard tool used for code analysis for CSS, or Sass used as a preprocessor, by all professionals is Stylelint.
Sunday, February 28, 2021
8 Git Best Practices
The purpose of version control systems is to keep a history of a file’s changes or a very complex system consisting of thousands of files. That is it. Nothing more. When using it on your own, you could use it as you want, as long as it still serves its purpose and you could recall a specific version in history. However, when using distributed version control systems (DVCS), like Git, you should decide on best practices, especially when using it as a team.
Wednesday, February 17, 2021
Static Code Analysis for Laravel
Today I will show you what type of static code analysis tools I use for Laravel based projects. With some configuration changes, one could use all of them with any PHP project, such as those using Symfony. Static code analysis is a source code structure analysis and test without running or compiling the code. Although it will not find all potential problems and bugs and replaces code review, it could be beneficial, especially in bigger teams.
Friday, August 28, 2020
Internet of Things - Let's Build Something!
Over a year ago, I had done a workshop about the Internet of Things. I had targeted this workshop for programmers working with a different technology stack and with a wide range of skills but with little or no knowledge of electronics and IoT in general. The idea behind this project was to create a small, working example of an IoT device and source code written for both the embedded device and the server-side. During prototyping, we used low-cost, ready-to-use, and easy-to-assemble modules.
Sunday, February 23, 2020
PHPUnit Code Coverage and SonarQube
SonarQube is a wonderful tool for static code analysis and code review. Of course, it is not an all in one tool which replaces all other tools used in code review toolchain. SonarQube has a whole section dedicated to code coverage, but it analyzes code coverage, not run any tests.