---
title: "Bento (@bento) | Hashnode"
description: "Frontend Developer. Read the latest articles by Bento on Hashnode."
url: "https://hashnode.com/@bento"
---

@bento

# Bento

@bento · Joined August 2021

Frontend Developer

## Comments

[This was a great read, it's funny and shows the chaos teams usually are. Congrats on the defeat!](https://hashnode.com/posts/how-to-lose-hackathon-in-7-steps/612e0f614e9d8114f8ade27f/comment/612e296a1dd572151d81d208)

Comment · Article · Aug 31, 2021 · [How to lose a hackathon in 7 steps](https://hashnode.com/posts/how-to-lose-hackathon-in-7-steps/612e0f614e9d8114f8ade27f)

[Thanks for the tips! If the cherry on the cake doesn't work. Add VS Code to path. Launch VS Code. Open the Command Palette \`Cmd+Shift+P\` Type \`shell\` to find the Shell Command: \`Install 'code' command in PATH command\`](https://hashnode.com/posts/15-useful-vscode-shortcuts-to-improve-your-productivity/61248d12663d427e19ff943e/comment/6124cc57663d427e19ffa08b)

Comment · Article · Aug 24, 2021 · [15 Useful VSCode shortcuts to improve your productivity](https://hashnode.com/posts/15-useful-vscode-shortcuts-to-improve-your-productivity/61248d12663d427e19ff943e)

[Apoorv Tyagi Indeed isPercentage() is but isPercentage isn't. In my opinion functions should be named to the actions they are taking and not what their return values will be, for example getUser, checkNaming, otherwise if you name the function isPercentage what will you name the return value? function isPercentage(val) { var isInRange = (val >= 0 && val <= 100); return isInRange; } const ??? = isPercentage(9); So the naming for the function above is bad 👎 as it implies a boolean type but is a function. Also, that function does not check if a value is a percentage, I'd expect that if a function is called isPercentage it would test if a string contains a value like % or a logic around it. Naming a function like this will lead to confusion and the point of the article is to leave things clean and with good practices, you advocate good practices and explain them in other points but this is not one of them. There's no such thing as boolean functions, it's just a function that returns a boolean. typeof(isPercentage) is function and not boolean.](https://hashnode.com/posts/javascript-clean-code-tips-and-good-practices/612221e8a5d08237f40e1bca/comment/61238b38b115357df05f1984#reply-6123c44d663d427e19ff86d3)

Reply · Article · Aug 23, 2021 · [Javascript Clean Code Tips & Good Practices](https://hashnode.com/posts/javascript-clean-code-tips-and-good-practices/612221e8a5d08237f40e1bca)

[Thank you for the article. It seems like point 14 example doesn't follow the rules you talk about yourself. For example: function isPercentage(val) { ... } This function should be named checkIfInRange or something that makes it more obvious that it is a function. To me as a developer something that is prefixed with is, will most likely be a boolean. In my opinion a better approach at this is: function checkIfInRange(amount) { return (amount >= 0 && amount <= 100); } const isInRange = checkIfInRange(78); console.log(isInRange); // true](https://hashnode.com/posts/javascript-clean-code-tips-and-good-practices/612221e8a5d08237f40e1bca/comment/61238b38b115357df05f1984)

Comment · Article · Aug 23, 2021 · [Javascript Clean Code Tips & Good Practices](https://hashnode.com/posts/javascript-clean-code-tips-and-good-practices/612221e8a5d08237f40e1bca)
