ملاحظات امنیتی جهت کار با JavaScript در سال 2024
200, OK
https://thenewstack.io/5-javascript-security-best-practices-for-2024/ icon

5 JavaScript Security Best Practices for 2024

Any JavaScript web application needs to have a Content Security Policy (CSP), a browser security standard that dictates what the browser is allowed to load — whether that be a domain, subdomain, or resource. Without a CSP, hackers can exploit cross-site scripting vulnerabilities, potentially resulting in a data breach.

ملاحظات امنیتی جهت کار با JavaScript  در سال 2024
روش‌های مختلف تولید اعداد تصادفی در جاوا‌اسکریپت چقدر با هم متفاوتند؟
200, OK
https://www.bennadel.com/blog/4669-exploring-randomness-in-javascript.htm icon

Looking at these side-by-side randomly generated visualizations, neither of them seem substantively different from a distribution perspective. All to say, when generating a random color palette, there probably wasn't any need for me to use the Crypto module—I probably should have just stuck with Math. It's much faster and feels to be just as random. I'll leave the Crypto stuff to any client-side cryptography work (which I've never had to do).

روش‌های مختلف تولید اعداد تصادفی در جاوا‌اسکریپت چقدر با هم متفاوتند؟
نحوه بهینه سازی عملکرد MongoDB برای Node.js
200, OK
https://blog.appsignal.com/2023/11/15/how-to-optimize-mongodb-performance-for-nodejs.html icon

To update a document in MongoDB, I used to fetch it, update the values, and save back the entry. I would question the need for an update method. Looking back, it's evident that performance optimizations were hardly a concern when working on a personal project.

نحوه بهینه سازی عملکرد MongoDB برای Node.js