Learn a topic daily

Learn a topic daily This is the page where I can share a topic daily from any programming language and their frameworks

19/04/2022



Is it a function? Use a verb!

handleThat()
goToThatRoute()
doThatOtherThing()

Is it a boolean?

const isUserAuthenticated = true
const hasAccessRights = false
const isFunctionAllowed = true

Is it a number?

const valueOfProduct = 10
const greaterThanOrherValue = 23
const ageOfTheUser = 31

Is it a string?

Express the string into the variable name:

const userAuthenticationMessage = "You must be authenticated in order to see this screen"

const errorFetchRequestMessage = "We are sorry! There was an error our side".

HTML Tip โšกPrevent content from being pasted in HTML editable element. using "onpaste" HTML event. It is mostly used to p...
18/04/2022

HTML Tip โšก

Prevent content from being pasted in HTML editable element. using "onpaste" HTML event. It is mostly used to prevent users from pasting passwords in forms.

๐Ÿ๐ŸŽ ๐ฏ๐ž๐ซ๐ฒ ๐ฉ๐ซ๐จ๐ฆ๐ข๐ฌ๐ข๐ง๐  ๐Ž๐ฉ๐ž๐ง ๐’๐จ๐ฎ๐ซ๐œ๐ž ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ๐ฌ ๐ฒ๐จ๐ฎ ๐ก๐š๐ฏ๐ž๐งโ€™๐ญ ๐ก๐ž๐š๐ซ๐ ๐จ๐Ÿ!๐Ÿญ)๐—ง๐—›๐—˜ ๐—™๐—จ๐—–๐—ž (70.2k โญ)The F**k is a magnificent app, that corr...
17/04/2022

๐Ÿ๐ŸŽ ๐ฏ๐ž๐ซ๐ฒ ๐ฉ๐ซ๐จ๐ฆ๐ข๐ฌ๐ข๐ง๐  ๐Ž๐ฉ๐ž๐ง ๐’๐จ๐ฎ๐ซ๐œ๐ž ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ๐ฌ ๐ฒ๐จ๐ฎ ๐ก๐š๐ฏ๐ž๐งโ€™๐ญ ๐ก๐ž๐š๐ซ๐ ๐จ๐Ÿ!

๐Ÿญ)๐—ง๐—›๐—˜ ๐—™๐—จ๐—–๐—ž (70.2k โญ)
The F**k is a magnificent app, that corrects errors in previous console commands.
Link: https://lnkd.in/eNkQp_vR

๐Ÿฎ)๐—ฃ๐—”๐—ฅ๐—ง๐—ฌ๐—ง๐—ข๐—ช๐—ก (7.2K โญ)
Partytown is a lazy-loaded library to help relocate resource-intensive scripts into a web worker, and off of the main thread. Its goal is to help speed up sites by dedicating the main thread to your code and offloading third-party scripts to a web worker.
Link: https://lnkd.in/ey5U6ZMY

๐Ÿฏ)๐—ง๐—ฅ๐—ฃ๐—– (5k โญ)
tRPC allows you to easily build & consume fully typesafe APIs, without schemas or code generation.
Link: https://lnkd.in/ekvFAf54

๐Ÿฐ)๐— ๐—ฎ๐—ป๐˜๐—ถ๐—ป๐—ฒ (10k โญ)
Build fully functional accessible web applications faster than ever โ€“ Mantine includes more than 120 customizable components and hooks to cover you in any situation.
Link: https://lnkd.in/e_krNrMd

๐Ÿฑ)๐——๐—”๐—™๐—ก๐—ข ๐—๐—ฆ (3.3k โญ)
Danfo.js is a javascript package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It is heavily inspired by Pandas library.
Link: https://lnkd.in/eghGYyUK

๐Ÿฒ)๐—ฆ๐—จ๐—ฃ๐—˜๐—ฅ๐—ง๐—ข๐—ž๐—˜๐—ก๐—ฆ (5.7K โญ)
Add secure login and session management to your apps. SDKs are available for popular languages and front-end frameworks.
Link: https://lnkd.in/eew-fPDB

๐Ÿณ)๐— ๐—˜๐—œ๐—Ÿ๐—œ๐—ฆ๐—˜๐—”๐—ฅ๐—–๐—› (26Kโญ )
It is a powerful, fast, open-source, easy to use, and deploy search engine. Both searching and indexing are highly customizable. Features such as typo-tolerance, filters, and synonyms are provided out-of-the-box.
Link: https://lnkd.in/e5Qegs5M

๐Ÿด) ๐—ก๐—ข๐—–๐—ข๐——๐—• (26.1kโญ )
The Open Source Airtable Alternative, Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart spreadsheet.
Link: https://lnkd.in/eApNrX8v

๐Ÿต)๐—›๐—ข๐—ฃ๐—ฃ๐—ฆ๐—–๐—ข๐—ง๐—–๐—› (42.6K โญ)
It is a lightweight, web-based API development suite. It was built from the ground up with ease of use and accessibility in mind providing all the functionality needed for API developers with minimalist, unobtrusive UI.
Link: https://lnkd.in/eN4-svmQ

๐Ÿญ๐Ÿฌ)๐—”๐— ๐—ฃ๐—Ÿ๐—œ๐—–๐—”๐—ง๐—œ๐—ข๐—ก (7K โญ)
Amplication is an openโ€‘source development tool. It helps professional Node.js developers develop quality Node.js applications without spending time on repetitive coding tasks.
LINK: https://lnkd.in/enFWVFtK

Some of the best free open-source alternatives of the paid application in the market.

Magnificent app which corrects your previous console command. - GitHub - nvbn/thef**k: Magnificent app which corrects your previous console command.

Javascript Tips๐Ÿ’กFOR LOOP VS FOR-OF LOOPIf you just need to iterate through data items of an iterable (also if you need t...
15/04/2022

Javascript Tips๐Ÿ’ก

FOR LOOP VS FOR-OF LOOP

If you just need to iterate through data items of an iterable (also if you need to apply some changes maybe) for-of is an obvious choice.

๐Ÿ’ก ๐š‚๐š๐š›๐š’๐š—๐š๐šœ ๐š’๐š— ๐™น๐šŠ๐šŸ๐šŠ๐šœ๐šŒ๐š›๐š’๐š™๐š! ๐Ÿ’ก๐™ท๐šŽ๐š›๐šŽ ๐š’๐šœ ๐šŠ ๐š‹๐š›๐š’๐šŽ๐š ๐šŽ๐šก๐š™๐š•๐šŠ๐š—๐šŠ๐š๐š’๐š˜๐š— ๐š๐š˜๐š› ๐šœ๐š˜๐š–๐šŽ ๐š˜๐š ๐š๐š‘๐šŽ ๐šŒ๐š˜๐š—๐š๐šž๐šœ๐š’๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š–๐šŽ๐š๐š‘๐š˜๐š๐šœ. ๐šƒ๐š‘๐šŽ ๐š›๐šŽ๐šœ๐š ๐šŠ๐š›๐šŽ ๐šŒ๐š•๐šŽ๐šŠ๐š›๐š•๐šข ๐š๐šŽ๐š–...
08/04/2022

๐Ÿ’ก ๐š‚๐š๐š›๐š’๐š—๐š๐šœ ๐š’๐š— ๐™น๐šŠ๐šŸ๐šŠ๐šœ๐šŒ๐š›๐š’๐š™๐š! ๐Ÿ’ก

๐™ท๐šŽ๐š›๐šŽ ๐š’๐šœ ๐šŠ ๐š‹๐š›๐š’๐šŽ๐š ๐šŽ๐šก๐š™๐š•๐šŠ๐š—๐šŠ๐š๐š’๐š˜๐š— ๐š๐š˜๐š› ๐šœ๐š˜๐š–๐šŽ ๐š˜๐š ๐š๐š‘๐šŽ ๐šŒ๐š˜๐š—๐š๐šž๐šœ๐š’๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š–๐šŽ๐š๐š‘๐š˜๐š๐šœ. ๐šƒ๐š‘๐šŽ ๐š›๐šŽ๐šœ๐š ๐šŠ๐š›๐šŽ ๐šŒ๐š•๐šŽ๐šŠ๐š›๐š•๐šข ๐š๐šŽ๐š–๐š˜๐š—๐šœ๐š๐š›๐šŠ๐š๐šŽ๐š ๐š ๐š’๐š๐š‘๐š’๐š— ๐š๐š‘๐šŽ ๐šŽ๐šก๐šŠ๐š–๐š™๐š•๐šŽ ๐š‹๐šŽ๐š•๐š˜๐š .

โœ” ๐šƒ๐š‘๐šŽ ๐ฌ๐ฅ๐ข๐œ๐ž() ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐šŽ๐šก๐š๐š›๐šŠ๐šŒ๐š๐šœ ๐šŠ ๐šœ๐šŽ๐šŒ๐š๐š’๐š˜๐š— ๐š˜๐š ๐šŠ ๐šœ๐š๐š›๐š’๐š—๐š ๐šŠ๐š—๐š ๐š›๐šŽ๐š๐šž๐š›๐š—๐šœ ๐š’๐š ๐šŠ๐šœ ๐šŠ ๐š—๐šŽ๐š  ๐šœ๐š๐š›๐š’๐š—๐š, ๐š ๐š’๐š๐š‘๐š˜๐šž๐š ๐š–๐š˜๐š๐š’๐š๐šข๐š’๐š—๐š ๐š๐š‘๐šŽ ๐š˜๐š›๐š’๐š๐š’๐š—๐šŠ๐š• ๐šœ๐š๐š›๐š’๐š—๐š.

โœ” ๐šƒ๐š‘๐šŽ ๐ฌ๐ฎ๐›๐ฌ๐ญ๐ซ๐ข๐ง๐ () ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐š›๐šŽ๐š๐šž๐š›๐š—๐šœ ๐š๐š‘๐šŽ ๐š™๐šŠ๐š›๐š ๐š˜๐š ๐š๐š‘๐šŽ ๐šœ๐š๐š›๐š’๐š—๐š ๐š‹๐šŽ๐š๐š ๐šŽ๐šŽ๐š— ๐š๐š‘๐šŽ ๐šœ๐š๐šŠ๐š›๐š ๐šŠ๐š—๐š ๐šŽ๐š—๐š ๐š’๐š—๐š๐šŽ๐šก๐šŽ๐šœ, ๐š˜๐š› ๐š๐š˜ ๐š๐š‘๐šŽ ๐šŽ๐š—๐š ๐š˜๐š ๐š๐š‘๐šŽ ๐šœ๐š๐š›๐š’๐š—๐š.

โœ” ๐šƒ๐š‘๐šŽ ๐ฌ๐ฎ๐›๐ฌ๐ญ๐ซ() ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐š›๐šŽ๐š๐šž๐š›๐š—๐šœ ๐šŠ ๐š™๐š˜๐š›๐š๐š’๐š˜๐š— ๐š˜๐š ๐š๐š‘๐šŽ ๐šœ๐š๐š›๐š’๐š—๐š, ๐šœ๐š๐šŠ๐š›๐š๐š’๐š—๐š ๐šŠ๐š ๐š๐š‘๐šŽ ๐šœ๐š™๐šŽ๐šŒ๐š’๐š๐š’๐šŽ๐š ๐š’๐š—๐š๐šŽ๐šก ๐šŠ๐š—๐š ๐šŽ๐šก๐š๐šŽ๐š—๐š๐š’๐š—๐š ๐š๐š˜๐š› ๐šŠ ๐š๐š’๐šŸ๐šŽ๐š— ๐š—๐šž๐š–๐š‹๐šŽ๐š› ๐š˜๐š ๐šŒ๐š‘๐šŠ๐š›๐šŠ๐šŒ๐š๐šŽ๐š›๐šœ ๐šŠ๐š๐š๐šŽ๐š›๐š ๐šŠ๐š›๐š๐šœ.

โœ” ๐šƒ๐š‘๐šŽ ๐ซ๐ž๐ฉ๐ฅ๐š๐œ๐ž() ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐š›๐šŽ๐š๐šž๐š›๐š—๐šœ ๐šŠ ๐š—๐šŽ๐š  ๐šœ๐š๐š›๐š’๐š—๐š ๐š ๐š’๐š๐š‘ ๐šœ๐š˜๐š–๐šŽ ๐š˜๐š› ๐šŠ๐š•๐š• ๐š–๐šŠ๐š๐šŒ๐š‘๐šŽ๐šœ ๐š˜๐š ๐šŠ ๐š™๐šŠ๐š๐š๐šŽ๐š›๐š— ๐š›๐šŽ๐š™๐š•๐šŠ๐šŒ๐šŽ๐š ๐š‹๐šข ๐šŠ ๐š›๐šŽ๐š™๐š•๐šŠ๐šŒ๐šŽ๐š–๐šŽ๐š—๐š. ๐šƒ๐š‘๐šŽ ๐š™๐šŠ๐š๐š๐šŽ๐š›๐š— ๐šŒ๐šŠ๐š— ๐š‹๐šŽ ๐šŠ ๐šœ๐š๐š›๐š’๐š—๐š ๐š˜๐š› ๐šŠ ๐š๐šŽ๐š๐™ด๐šก๐š™, ๐šŠ๐š—๐š ๐š๐š‘๐šŽ ๐š›๐šŽ๐š™๐š•๐šŠ๐šŒ๐šŽ๐š–๐šŽ๐š—๐š ๐šŒ๐šŠ๐š— ๐š‹๐šŽ ๐šŠ ๐šœ๐š๐š›๐š’๐š—๐š ๐š˜๐š› ๐šŠ ๐š๐šž๐š—๐šŒ๐š๐š’๐š˜๐š— ๐š๐š˜ ๐š‹๐šŽ ๐šŒ๐šŠ๐š•๐š•๐šŽ๐š ๐š๐š˜๐š› ๐šŽ๐šŠ๐šŒ๐š‘ ๐š–๐šŠ๐š๐šŒ๐š‘. ๐™ธ๐š ๐š™๐šŠ๐š๐š๐šŽ๐š›๐š— ๐š’๐šœ ๐šŠ ๐šœ๐š๐š›๐š’๐š—๐š, ๐š˜๐š—๐š•๐šข ๐š๐š‘๐šŽ ๐š๐š’๐š›๐šœ๐š ๐š˜๐šŒ๐šŒ๐šž๐š›๐š›๐šŽ๐š—๐šŒ๐šŽ ๐š ๐š’๐š•๐š• ๐š‹๐šŽ ๐š›๐šŽ๐š™๐š•๐šŠ๐šŒ๐šŽ๐š. ๐šƒ๐š‘๐šŽ ๐š˜๐š›๐š’๐š๐š’๐š—๐šŠ๐š• ๐šœ๐š๐š›๐š’๐š—๐š ๐š’๐šœ ๐š•๐šŽ๐š๐š ๐šž๐š—๐šŒ๐š‘๐šŠ๐š—๐š๐šŽ๐š.

โœ” ๐šƒ๐š‘๐šŽ ๐ฉ๐š๐๐’๐ญ๐š๐ซ๐ญ() ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐š™๐šŠ๐š๐šœ ๐š๐š‘๐šŽ ๐šŒ๐šž๐š›๐š›๐šŽ๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š ๐š’๐š๐š‘ ๐šŠ๐š—๐š˜๐š๐š‘๐šŽ๐š› ๐šœ๐š๐š›๐š’๐š—๐š (๐š–๐šž๐š•๐š๐š’๐š™๐š•๐šŽ ๐š๐š’๐š–๐šŽ๐šœ, ๐š’๐š ๐š—๐šŽ๐šŽ๐š๐šŽ๐š) ๐šž๐š—๐š๐š’๐š• ๐š๐š‘๐šŽ ๐š›๐šŽ๐šœ๐šž๐š•๐š๐š’๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š›๐šŽ๐šŠ๐šŒ๐š‘๐šŽ๐šœ ๐š๐š‘๐šŽ ๐š๐š’๐šŸ๐šŽ๐š— ๐š•๐šŽ๐š—๐š๐š๐š‘. ๐šƒ๐š‘๐šŽ ๐š™๐šŠ๐š๐š๐š’๐š—๐š ๐š’๐šœ ๐šŠ๐š™๐š™๐š•๐š’๐šŽ๐š ๐š๐š›๐š˜๐š– ๐š๐š‘๐šŽ ๐šœ๐š๐šŠ๐š›๐š ๐š˜๐š ๐š๐š‘๐šŽ ๐šŒ๐šž๐š›๐š›๐šŽ๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š.

โœ” ๐šƒ๐š‘๐šŽ ๐ฉ๐š๐๐„๐ง๐() ๐š–๐šŽ๐š๐š‘๐š˜๐š ๐š™๐šŠ๐š๐šœ ๐š๐š‘๐šŽ ๐šŒ๐šž๐š›๐š›๐šŽ๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š ๐š’๐š๐š‘ ๐šŠ ๐š๐š’๐šŸ๐šŽ๐š— ๐šœ๐š๐š›๐š’๐š—๐š (๐š›๐šŽ๐š™๐šŽ๐šŠ๐š๐šŽ๐š, ๐š’๐š ๐š—๐šŽ๐šŽ๐š๐šŽ๐š) ๐šœ๐š˜ ๐š๐š‘๐šŠ๐š ๐š๐š‘๐šŽ ๐š›๐šŽ๐šœ๐šž๐š•๐š๐š’๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š ๐š›๐šŽ๐šŠ๐šŒ๐š‘๐šŽ๐šœ ๐šŠ ๐š๐š’๐šŸ๐šŽ๐š— ๐š•๐šŽ๐š—๐š๐š๐š‘. ๐šƒ๐š‘๐šŽ ๐š™๐šŠ๐š๐š๐š’๐š—๐š ๐š’๐šœ ๐šŠ๐š™๐š™๐š•๐š’๐šŽ๐š ๐š๐š›๐š˜๐š– ๐š๐š‘๐šŽ ๐šŽ๐š—๐š ๐š˜๐š ๐š๐š‘๐šŽ ๐šŒ๐šž๐š›๐š›๐šŽ๐š—๐š ๐šœ๐š๐š›๐š’๐š—๐š.

๐Ÿ”ต ๐‡๐“๐Œ๐‹ ๐“๐ข๐ฉ: ๐Ÿ”ต๐˜๐จ๐ฎ ๐œ๐š๐ง ๐ฎ๐ฌ๐ž ๐๐ž๐œ๐จ๐๐ข๐ง๐  ๐š๐ฌ๐ฒ๐ง๐œ ๐š๐ญ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž ๐ญ๐จ ๐ข๐ฆ๐ฉ๐ซ๐จ๐ฏ๐ž ๐ญ๐ก๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž.The decoding="async" attribute will tell th...
07/04/2022

๐Ÿ”ต ๐‡๐“๐Œ๐‹ ๐“๐ข๐ฉ: ๐Ÿ”ต

๐˜๐จ๐ฎ ๐œ๐š๐ง ๐ฎ๐ฌ๐ž ๐๐ž๐œ๐จ๐๐ข๐ง๐  ๐š๐ฌ๐ฒ๐ง๐œ ๐š๐ญ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž ๐ญ๐จ ๐ข๐ฆ๐ฉ๐ซ๐จ๐ฏ๐ž ๐ญ๐ก๐ž ๐ฉ๐ž๐ซ๐Ÿ๐จ๐ซ๐ฆ๐š๐ง๐œ๐ž.

The decoding="async" attribute will tell the browser that it is OK for image decoding to be done at a later moment so that the browser can continue displaying content even if the images are not fully loaded.

๐“๐ก๐ž๐ซ๐ž ๐š๐ซ๐ž ๐Ÿ‘ ๐š๐œ๐œ๐ž๐ฉ๐ญ๐ž๐ ๐ฏ๐š๐ฅ๐ฎ๐ž๐ฌ ๐Ÿ๐จ๐ซ ๐ญ๐ก๐ž ๐๐ž๐œ๐จ๐๐ข๐ง๐  ๐š๐ญ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž:
1- ๐ฌ๐ฒ๐ง๐œ: the rendering will continue only after the image is ready; preferred for a "complete experience".

2- ๐š๐ฌ๐ฒ๐ง๐œ: continue the rendering and as soon as image decoding is complete, the browser will update the presentation; preferred
for performance.

3- ๐š๐ฎ๐ญ๐จ: will let the browser do what it determines is best approach (not sure who it decides that)

Web 1.0 vs Web 2.0 vs Web 3.0
06/04/2022

Web 1.0 vs Web 2.0 vs Web 3.0

Flex Align Content ๐Ÿ‘Œ
04/04/2022

Flex Align Content ๐Ÿ‘Œ


JavaScript Tip: Short Circuit OperatorShort circuit operator (&&) always return something. If left side is truthy then d...
29/03/2022

JavaScript Tip: Short Circuit Operator

Short circuit operator (&&) always return something. If left side is truthy then do the stuff of right side and return it otherwise returns the left side itself.

So, never use something which return a value in the left side of short circuit operator.

In the first example, whenever it gets falsy value it doesn't go to the right side but return the 0 from left side. What if you use that operator in jsx? It'll return value (0) in Jsx and show 0 in specific HTML Section).

How can we avoid this?
Always use boolean on the left side of the short circuit operator. Whenever it gets falsy value it return false and doesn't affect on Jsx.

Thanks

JSON doesn't support comments. So here's how I comment npm scripts in package.json. ๐Ÿ˜Ž
26/03/2022

JSON doesn't support comments.

So here's how I comment npm scripts in package.json. ๐Ÿ˜Ž

Address

137/6, Wasir Uddin Road, Middle Paikpara, Mirpur/1
Dhaka
1216

Alerts

Be the first to know and let us send you an email when Learn a topic daily posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Learn a topic daily:

Share