If the bool
variable name starts with a verb, the code looks more readable.
9 posts tagged with #js ❌
About the variable names
📅 Created 4 months ago 👁️ 71
Timer app 🕗
📅 Created 1 year ago 👁️ 76
A simple 🕗 timer app
Lines98
📅 Created 1 year ago 👁️ 91
For all the old-schools, here is the Lines98 game.
Audio- and Video-content in ElectronJS
📅 Created 1 year ago 👁️ 108
A story of a really annoying bug.
Spoiler: reproducible only on production builds; locally works well 🤡
Color: what it really means?
📅 Created 5 years ago 👁️ 143
The color is fun. But smart color is way more fun. How to work with color in smart way in JS? How to translate from human language into RGB/HSL or vice versa?
Think reactive (the code)
📅 Created 6 years ago 👁️ 125
So we finished previous part with the reference to the code of the demo (GitHub page). It’s fully working version. But let’s recreate it from scratch.
Array methods (JS/TS)
📅 Created 6 years ago 👁️ 131
The instance of Array
(under the hood: the Array.prototype
) provides a bunch of methods for handling its content in functional way. Almost any array method can be substituted with another one.
Why? ― because JavaScript is so JavaScript.
Despite of we can, it doesn’t mean we have to. So let’s take a deeper look at array methods and decide what’s the proper use case for each of them.
Promises (part two): the legend of the lost Promise
📅 Created 7 years ago 👁️ 158
There is one trick with Promises that might lead to nasty consequences: you might lose the async job. How it happens and how to avoid it?
Async Javascript: tricks with Promises (part one)
📅 Created 7 years ago 👁️ 122
Promises provide a pretty nice interface for async programming in Javascript.