There’s a type of mistake that every developer never forgets… the stupid ones 😅 Not “stupid” because they are complex — but because the situation was simple and obvious, yet the mistake still cost you a lot of time. In my Node.js journey, my first mistake was building a REST API and completely forgetting about CORS 😊 But the dumbest mistake I made in the beginning was copying and pasting entire Node.js projects… including the node_modules folder. Yes… you need the patience of a camel 😏 Three JavaScript files turning into 260MB… and I repeated that process multiple times before I finally learned about: npm install That’s when I understood something important: It’s not just about writing code — it’s about understanding how the ecosystem works. These “stupid” mistakes are the ones that stay with you the longest… and turn you into a better developer. #NodeJS #Programming #WebDevelopment #JavaScript #CodingLife #SoftwareDevelopment #LearnToCode #Debugging #Developers #TechJourney
CORS and npm install mistakes in Node.js
More Relevant Posts
-
JavaScript code runs inside a special environment called the JavaScript engine (like in a browser or Node.js). When you write code, the engine first reads it and understands its structure through a process called parsing. After that, the code is converted into a form (bytecode) that the computer can execute. During execution, the engine uses two main parts: the memory heap to store variables and data, and the call stack to manage function execution. It runs code line by line in a synchronous way, meaning one task at a time. For handling asynchronous tasks like timers, APIs, or events, JavaScript uses the event loop along with callback queues and Web APIs. This system ensures that tasks are executed smoothly without blocking the main thread, and finally, the result is shown in the browser or console. #JavaScript #NodeJS #WebDevelopment #Programming #Coding #Developer #Frontend #Backend #MERNStack #CodeNewbie
To view or add a comment, sign in
-
-
I noticed most Node.js logging solutions are either too heavy or too minimal. So I built my own — logpaint 🎨 A lightweight, zero-dependency colored logger with built-in levels and TypeScript support. Instead of adding another heavy logging library, I wanted something: • Minimal • Zero config • Typed • Colorful output • Runtime level switching 💻 Website - https://lnkd.in/gp3HgeBX 🔴 NPM - https://lnkd.in/gNuSPXd4 ♐ GitHub - https://lnkd.in/gVXkyu-P Would love feedback from fellow developers 🙌 What feature should I add next? #opensource #nodejs #typescript #javascript #buildinpublic #developers #webdev #programming
To view or add a comment, sign in
-
-
Quick update on my CLI project 👇 I was planning to publish it by now, but I’ve decided to delay the release a bit to make it more solid. Over the past few days, I’ve: • Improved the backend structure (clean, scalable folders) • Added a basic authentication system (JWT-based) • Made the starter feel closer to a real production setup Instead of rushing it out, I want this to be something developers can actually use and build on comfortably. Next steps: • Improve error handling & validation • Add a few more useful defaults What I am building : https://lnkd.in/gdiYgDaR Will share once it’s ready 🚀 #buildinpublic #webdevelopment #javascript #nodejs #nextjs #mern #developer #softwareengineering #devtools #opensource #programming #tech
To view or add a comment, sign in
-
-
One small JavaScript concept. Big real-world impact. If you don’t understand mutable vs immutable data, you’ll eventually hit bugs you didn’t expect. Especially in React. Mutable = flexible Immutable = safer Good developers know when to use each. Which causes more pain in real projects: mutation bugs or async bugs? 👇 #javascript #reactjs #frontenddevelopment #webdevelopment #softwareengineering #programming
To view or add a comment, sign in
-
-
🚀 JavaScript Event Loop: Your Async Superpower! 🌀 Confused how JS juggles multiple tasks on one single thread? 😵 Let's break it down visually! 1. Call Stack 📚: Runs your code line-by-line (sync stuff first!). 2. Web APIs 🌐: Handles async like setTimeout or fetch outside the stack. 3. Queues: • Microtask Queue ⚡ (Promises – VIP priority! Executes ASAP) • Callback Queue ⏳ (setTimeout – waits its turn) 4. Event Loop 🔄: Magic conductor! Checks empty stack → Microtasks → Callbacks. Pro Tip: Master this for smoother React hooks, Node servers, or any async magic! 💥 What’s your biggest Event Loop "aha" moment? Drop it below! 👇 #JavaScript #EventLoop #WebDev #ReactJS #NodeJS #Frontend #AsyncJS #CodingTips #Programming #DevCommunity #SoftwareEngineering #LearnToCode
To view or add a comment, sign in
-
-
JavaScript vs. TypeScript: The 'Cocomelon' Edition! Ever feel like your JavaScript code is a bit... chaotic? Like a toddler running around with no shoes? That’s where TypeScript comes in! Think of JavaScript as the fun, flexible playground where you can build anything quickly. It’s dynamic, it’s fast, but sometimes things get messy. TypeScript is like adding a 'Safety Helmet' and 'Rules' to that playground. It’s a superset of JavaScript that adds Static Typing. Why make the switch? Catch Bugs Early: Find errors while you type, not when the app crashes. Better Tooling: Enjoy super-powered autocompletion in VS Code. Scalability: It makes large projects much easier for teams to manage. Is your team Team JS or Team TS? Let's discuss below! #JavaScript #TypeScript #WebDevelopment #CodingLife #SoftwareEngineering #TechSimplified #Frontend #Programming
To view or add a comment, sign in
-
-
Problem: JavaScript’s `.sort()` mutates the array. Solution: Use `.toSorted()` instead. It returns a new sorted array. —— 👋 Join 30,000+ SWEs learning JS, React, Node.js, and Software Architecture: https://thetshaped.dev/ ——— 💾 Save this for later. ♻ Repost to help others find it. ➕ Follow Petar Ivanov + turn on notifications. #javascript #softwareengineering #programming
To view or add a comment, sign in
-
-
Most JavaScript developers are writing broken code. They just don't know it yet. I spent 2 years reviewing codebases for clients and startups. The same 6 ignored habits destroyed every single one. Here's what nobody teaches you in tutorials: → DON'T: use any in TypeScript. → DO: use unknown. Always. → DON'T: skip optional chaining. → DO: user?.address?.city — one line, zero crashes. → DON'T: write user.name, user.age, user.email everywhere. → DO: const { name, age, email } = user — one line, done. → DON'T: use for loops for everything. → DO: filter, map, reduce exist for a reason. Use them. → DON'T: use await with no error handling. → DO: every await needs a try/catch. Every single one. → DON'T: write 86400 in your code. → DO: const SECONDS_IN_A_DAY = 86400 — code that explains itself. Most devs only learn this after a painful production incident. You just learned it for free. Agree or disagree — drop your take below. #javascript #typescript #webdevelopment #softwaredevelopment #coding
To view or add a comment, sign in
-
Web Development Roadmap – Your Visual Guide to Full-Stack Mastery If you're navigating the world of web development, this roadmap breaks down exactly what you need to learn — from the ground up. Frontend Basics → HTML, CSS, JavaScript Modern Frameworks → React, Vue, Angular Backend & Databases → Node.js, Python, APIs, Databases Whether you're just starting out or brushing up on the fundamentals, this roadmap gives you a clear picture of the skills you need and how they connect. Save it, share it, and build step by step 📋📊 --- #WebDevelopment #FullStackDeveloper #FrontendDevelopment #BackendDevelopment #JavaScript #ReactJS #NodeJS #HTML5 #CSS3 #Programming #Coding #SoftwareDevelopment #TechSkills #DeveloperRoadmap
To view or add a comment, sign in
-
-
I wrote my first React component. Day 325 And it didn’t feel like JavaScript. It didn’t feel like HTML either. That’s what confused me. This mix of both… is JSX. At first, it felt strange. Until I realized something simple: JSX isn’t special. It’s just a function call. Every element → React.createElement Every component → a function returning UI That one idea changed everything. Then props made it click even more. Same component. Different data. Infinite variations. That’s when my thinking shifted. Earlier: “How do I build this page?” Now: “What components does this page need?” That’s what React is really about. Not syntax. Not JSX. But breaking UI into reusable pieces. Still early in React, but this shift made things much clearer. What was the moment React finally clicked for you? #ReactJS #JavaScript #FrontendDevelopment #JSX #WebDevelopment #SoftwareEngineering #Programming #BuildInPublic #DevelopersIndia #IndiaTech #DeveloperJourney #Consistency #Growthmindset #Nxtwave #CCBP #ShravanSays
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development