---
title: "andrei (@kernel) | Hashnode"
description: "andrei (@kernel) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@kernel"
---

@kernel

# andrei

@kernel · Joined January 2021

## Comments

[Man, good job on writing and puttin you out there, but I made an account just to reply on this. Hate to see things overused just because they're shiny. I noted there was some legacy code that was using loops and wasn't really efficient with the tools we have nowadays. You replaced one completely fine loop with two loops and a ton of allocations. for is not freaking outdated. I think you meant to say "pretty" or "easier to follow", because the "modern" version is way, way less efficient than the original.](https://hashnode.com/posts/refactoring-old-code/5fffe819c162d710c9b14a49/comment/60005b74c162d710c9b154ae)

Comment · Article · Jan 14, 2021 · [Refactoring old code](https://hashnode.com/posts/refactoring-old-code/5fffe819c162d710c9b14a49)
