RSSAmplifier

Blog

Aleksey Hudochenkov

hudochenkov.comRSS feed ↗11 posts

Latest posts

Fixing Kodi freezing for a few seconds before playing

I use Kodi on Nvidia Shield to watch movies and TV shows. At some point, Kodi developed an issue: every time I press “play,” it freezes for 4 seconds as if nothing happens, then starts playing. It wasn’t a network issue. Reboots also didn’t help. The debug logs had no entries about what was happening during that time. I found a solution on a forum: contents of the’temp’ folder could mess up with…

App Defaults 2026

It's been a long time since I shared something online. I haven't posted on social media for a few years now, and haven't written a single blog post in 5 years. I've started reading more personal blogs and would like to share more on my own website. People like Robb , Sophie , and Anh have beautiful personal websites, and they are inspiring! To start easily, let's begin with the list of apps and…

The most underutilized linters feature: severity levels

Linters have many rules. Not all rules are equally helpful. Some rules prevent bugs in the code, some enforce good practices, and some enforce code style. Our configured linters usually are very vocal about “errors” in our code while our code is perfectly working. Just its style doesn’t follow specified guidelines. It results in constant unproductive noise from linters. Didn’t add a space — error.…

Keep npm dependencies up to date

Many developers have been in a situation when their project is stuck because of outdated dependencies. Security vulnerabilities are found in an old dependency. The Node.js version is getting out of life, and your project just couldn’t compile on the newer version. There are many deprecation warnings in the terminal and browser console. Forgotten dependencies often lead to painful upgrades, more…

Mouse disappointments with Mac

For years, I've been using a MacBook without any external peripherals. My hands started to get tired. I decided to try to use a mouse. I tried the Apple Magic Mouse a few times. It was a disaster. It was so uncomfortable. I've been using different mice for a long time with my gaming PC, so I know how a mouse could sit comfortably in my hand. Logitech MX Master 3 Then, I decided to try the Logitech…

Spaces indentation just like tabs in VS Code

I wrote before that tabs are more accessible as indentation than spaces. Unfortunately, it's not always possible to convert a project to a different indentation. I've struggled for years in situations like this. Luckily, I just discovered an extension for Visual Studio Code , which helps with this problem enormously. Stretchy Spaces extension allows changing the width of spaces used for…

Better experience with tabs

When people argue about indentation, usually, there is never an argument about the accessibility of a code. People see things differently, both by eyes and brains. Some people have to use a tab width of 1 or even 8 characters to be able to read code. I struggle to read code indented with two spaces. I'm not visually impaired, but for me, it is tough to see nesting when the indentation is too small…

Use parentheses for arrow function parameters

Many people prefer arrow functions for their conciseness. To make arrow functions even more concise, some developers prefer to avoid parentheses for an arrow function parameter if there is only one. Usually, it's enforced by ESLint rule arrow-parens or Prettier option arrowParens . While it looks nicer for these developers, it creates more work for all developers when they need to change a number…

Components with function declarations and TypeScript

For the React function component written with TypeScript, there is a type React.FC provided by @types/react : import React from 'react' ; interface Props { someProp ? : boolean ; } let MyComponent : React . FC < Props > = function ( { someProp , children } ) { return < > { someProp ? children : null } </ > ; } It takes care of the children prop, describes the return type, and also provides types…

React single-file components

The idea of having all component code in one file is not new. Vue.js and its Single-File Components populated it. In the React ecosystem, this idea is not very popular. Probably, because there is no official way to do it. A component in the React ecosystem usually consists of two files: logic/markup and styles. Logic and markup are JS and JSX, while styles could be anything: regular CSS, CSS…

Prefer function declarations

I've noticed for the last few years that developers tend to overuse arrow functions . It feels at times that people do it out of hype, or they avoid function declarations as we all avoid var now. There is nothing wrong with arrow functions. But they should not be used everywhere because it is possible to use them in most cases. For me, and for many other people, arrow functions are harder to read…