Popular posts

JavaScript
React
Post image

Use React.memo() wisely

Updated January 28, 2023
React.memo() increases the performance of functional components by preventing useless renderings. But such performance tweaks must be applied wisely.
Continue reading ➞
Post image

5 JavaScript Bad Coding Habits to Unlearn Right Now

Overuse of implicit type conversion, old JavaScript tricks, polluting function scope, undefined & null, casual coding style ruin JavaScript code quality
Continue reading ➞
Post image

How to Use forEach() to Iterate an Array in JavaScript

forEach() in JavaScript calls the provided function on each array item with 3 arguments: item, index, the array itself. Learn how to use forEach().
Continue reading ➞
Post image

An Easy Guide to Object Rest/Spread Properties in JavaScript

Object spread allows easily to clone, merge, extend objects. While object rest collects rest of properties after destructuring.
Continue reading ➞
Post image

7 Architectural Attributes of a Reliable React Component

A detailed explanation of how to architecture React components based on single responsibility principle, encapsulation and composition.
Continue reading ➞
Post image

7 Tips to Handle undefined in JavaScript

A detailed article about 'undefined' keyword in JavaScript. 7 tips on how to handle correctly 'undefined' and increase code durability.
Continue reading ➞
Post image

Announcing Voca: The Ultimate JavaScript String Library

The Voca library offers helpful functions to make string manipulations comfortable: change case, trim, pad, slugifly, latinise, sprintf, truncate, escape and more.
Continue reading ➞
Post image

Make Your Swift Code Expressive: Addition Operator Use Cases

Posted November 16, 2016
Check + and += operators use cases for writing short and concise expressions: sum numbers & measurements, concat strings & arrays, date manipulations.
Continue reading ➞
Post image

How to Use Correctly 'self' Keyword in Swift

Posted November 9, 2016
Interesting dive into practices how to use 'self' keyword in Swift. Should you omit or always use 'self'? Find out the reasons and answer.
Continue reading ➞
Post image

Mastering Swift: Tips About Array and Dictionary Literals

Posted November 1, 2016
How to use Swift literals to initialize the 3 fundamental collection types: array, set and dictionary. Details about collection type inference.
Continue reading ➞