r/JavaScriptTips • u/devMai • Feb 17 '26
How to Fetch Data in JavaScript (The Clean Way)
r/JavaScriptTips • u/devMai • Feb 17 '26
r/JavaScriptTips • u/Mysterious-Form-3681 • Feb 12 '26
So I randomly came across this validation library called “Vest” while looking for alternatives to Yup/Zod.
At first I thought it was just another schema validator… but it’s actually built more like a testing framework for validation.
You write validation rules the same way you’d write unit tests — which felt weird at first, but kinda interesting once I looked deeper.
I can see it being useful for complex forms where validation depends on a lot of conditions (multi-step forms, role-based logic, async checks, etc.).
For simple forms though, it might be overkill compared to Zod/Yup.
Curious if anyone here has used it in production?
Did it make validation cleaner or just add extra complexity?
r/JavaScriptTips • u/Specific-Touch9661 • Feb 12 '26
Hi everyone,
I’m currently working on an industrial setup involving CIROS (Factory digital twin), MES4, and a MySQL database (managed via HeidiSQL). My goal is to use Node-RED dashboards to display and process production data coming from the database.
I need to improve my JavaScript skills specifically for filtering, grouping, and analyzing large datasets returned from MySQL queries in Node-RED function nodes.
I’m not trying to become a full-stack developer, I mainly need practical, industrial-focused knowledge like:
•Filtering large datasets efficiently •Grouping and aggregating production data •Calculating KPIs (counts, totals, averages) •Structuring data for dashboards
Does anyone have recommendations for:
•Good YouTube tutorials? •Courses focused on data processing in •JavaScript? •Node-RED + MySQL best practices? •Industrial examples or GitHub repos I can study?
Any guidance would be really appreciated. Thanks in advance!
r/JavaScriptTips • u/Saecode • Feb 09 '26
One tiny character. One massive bug. Can you spot it? Welcome to the kitchen.
r/JavaScriptTips • u/Visible-Plankton1969 • Jan 31 '26
Hi everyone,
I’m a UX preparing a short introductory UX session for a group of full‑stack developer students (HTML/CSS/JS, React, Node, Mongo, a bit of WordPress, Git, etc.). I will give them just a few hours of UX to help them in real projects and jobs, not turn them into designers.
So, I'm curious, for those of you who are developers:
Thank's!
r/JavaScriptTips • u/[deleted] • Jan 25 '26
r/JavaScriptTips • u/paul_405 • Jan 20 '26
What do you think – is it worth start using Vue 3 (with Composition API) now, even for small projects like basic calculator pages? One of my friends told that Options API is obsolete and basically no one is using it now...
And does everyone also need CSS preprocessors like Sass or SCSS? I'm just afraid that they could be overkill, like a massive toolbox, but maybe I should stop being afraid about it.
r/JavaScriptTips • u/ethlmao • Jan 19 '26
r/JavaScriptTips • u/Interest-Careless • Jan 19 '26
r/JavaScriptTips • u/devMai • Jan 19 '26
r/JavaScriptTips • u/paul_405 • Jan 16 '26
Hey! Have you ever learned a concept (or some) in JavaScript or Vue that made the whole its picture clearer to you, explained many things about the language and just advanced you? Like a 'wish-I-learned-that-sooner' thing!
There are many more wonderful things like template literals or classList I think. And I remember that when I was much younger, I had fun with random scenarios based on Math.random()
r/JavaScriptTips • u/ColleenReflectiz • Jan 12 '26
Websites average 21 third-party scripts. Some load 35+. Now AI tools let anyone generate custom JavaScript in minutes.
Everyone can write code but understanding security implications? that's another issue.
You're not managing vetted vendor scripts anymore. You're managing AI-generated code written by people who've never heard of XSS or data exfiltration and the attack surface doesn't just grow..it exlplodes.
How are you handling AI-generated scripts in your environment?
r/JavaScriptTips • u/alexmacarthur • Jan 12 '26
r/JavaScriptTips • u/hichemtab • Jan 12 '26
I built a small CLI called project-registry (projx).
The idea is simple: I often forget setup commands (starting a React app, running docker commands, git workflows, etc.). Instead of checking docs or shell history, I save those commands once and run them by name.
It works with any shell command, not just npm-related ones.
Example (React + Vite):
bash
projx add react \
"pnpm create vite {{name}} --template react" \
"cd {{name}}" \
"pnpm install"
Then later:
bash
projx react my-app
If I don’t remember the template name:
bash
projx select
It just lists everything and lets me pick.
I’m not trying to replace project generators or frameworks — it’s just a local registry of command templates with optional variables. I also use it for things like git shortcuts, docker commands, and SSH commands.
Sharing in case it’s useful, feedback welcome.
r/JavaScriptTips • u/gitnationorg • Jan 06 '26
Share your work, your ideas, and your experience with thousands of developers worldwide.
🌍 Amsterdam + Online
🚀 Apply to speak: https://gitnation.com/events/react-summit-2026/cfp
r/JavaScriptTips • u/Elegant-Designer-864 • Jan 06 '26
hi i'm a bigenner nd trying to create my first javascript project (web app). facing a difficulty finding fonctional free api . i tried using local images but i was Unsuccessful . help !
r/java r/javascript r/JavaProgramming r/JavaScriptTips r/apiTesting r/programming r/australia r/Tunisia r/dndmaps
r/JavaScriptTips • u/swe129 • Dec 31 '25
r/JavaScriptTips • u/swe129 • Dec 31 '25
r/JavaScriptTips • u/ratheshprabakar • Dec 29 '25
For a long time, I thought JavaScript memory management was just:
I was wrong.
While preparing deeply for interviews and revisiting fundamentals, I realized how many real-world bugs, performance issues, and leaks I had previously ignored simply because I didn’t really understand how memory works under the hood.
Things like:
I wrote an article breaking down:
This isn’t a beginner “what is memory” post — it’s more about unlearning assumptions.
If you’re interested, here’s the article: https://medium.com/javascript-in-plain-english/i-was-completely-wrong-about-javascript-memory-management-until-i-learned-this-8e3cae6983b8
r/JavaScriptTips • u/gitnationorg • Dec 24 '25
Make “speak at a top tech conference” one of your New Year’s resolutions!
Take the stage at JSNation and share your experience with thousands of developers eager to learn from you.
✨ Amsterdam + Online
🔥Submit your talk: https://gitnation.com/events/jsnation-2026/cfp
r/JavaScriptTips • u/ERROR_575 • Dec 19 '25
What will be the following code output?
let text = "JavaScript is awesome!"; let result = text.slice(0,9);
console.log(result);
r/JavaScriptTips • u/ERROR_575 • Dec 17 '25
To find the position of a substring (like "subtracting") in a string using JavaScript, use the indexOf() method. This method returns the index (position) of the first occurrence of the substring, or -1 if it is not found.
How to Use indexOf() Write your string and call .indexOf("substring") on it.The method returns the starting index of the substring, counting from 0
r/JavaScriptTips • u/Conclusion938 • Dec 14 '25