Learn JavaScript – Telegram
Learn JavaScript
100K subscribers
843 photos
16 videos
476 files
108 links
JavaScript Training Courses

💳 Paid ads by: https://telega.io/c/JavaScript_Trainings

🔰 Linkedin: @Linkedin_Learning
🧿 Udemy: @Zero_To_Mastery
📦 Python: @LearnPython3
🔅 Web Development: @Webdev_Trainings
Download Telegram
This is a snippet from JavaScript. This pattern of passing boolean params to methods is called a "Boolean trap", and let me explain why it's called so...

Imagine you are reading the method or function call. You have no idea what each param means unless you go and open the function definition. It's a big blow to readability 🤕

Better patterns would be to use a config object, where we clearly indicate what each field does. In other languages, you would use similar syntaxes, such as a builder pattern in Java.

☝️ Do note that it is still acceptable to use Boolean arguments in some places, such as

user.setAdmin(true)

Here we clearly know what the Boolean is doing, and so it is acceptable
12👍3
⌨️ JavaScript Array CheatSheet

📱 Joint Learn JavaScript For more tutorials
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
14👍5
⌨️ Mastering JavaScript Arrays: From Basics To Best Practices
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
12👍5🔥3
🔅 Databases for Node.js Developers

📝 Get a brief introduction to databases, master the integration of different databases into your applications, and enhance your backend skill set.

🌐 Author: Daniel Khan
🔰 Level: Intermediate
Duration: 4h 4m

📋 Topics: Database Development, Node.js

🔗 Join Learn JavaScript for more courses
Please open Telegram to view this post
VIEW IN TELEGRAM
7
0. Introduction.zip
2 MB
📱Learn JavaScript
📱Databases for Node.js Developers
Please open Telegram to view this post
VIEW IN TELEGRAM
1. Course Setup.zip
19.4 MB
📱Learn JavaScript
📱Databases for Node.js Developers
Please open Telegram to view this post
VIEW IN TELEGRAM
2. Introduction to Databases.zip
20.7 MB
📱Learn JavaScript
📱Databases for Node.js Developers
Please open Telegram to view this post
VIEW IN TELEGRAM
1
Please open Telegram to view this post
VIEW IN TELEGRAM