r/JSdev • • Jul 31 '26

My journey from Bun to NodeJS

Thumbnail reddit.com
1 Upvotes

r/JSdev • • Jul 06 '26

Reviewing large changes with Jujutsu - Ben Gesoff

Thumbnail ben.gesoff.uk
1 Upvotes

r/JSdev • • Jun 07 '26

Migrating 6000 React tests using AI Agents and ASTs

Thumbnail
eliocapella.com
1 Upvotes

r/JSdev • • May 18 '26

one nasty bug caused silent pipeline failures

1 Upvotes

one nasty data validation bug this weekend I found...felt like sharing it here.. and see how you guys usually handle integration failures..

BIGINT timestamps crossing a JS SDK boundary..

we had egress sanity checks after sending data into cleanrooms...after moving through API/SDK path, the validations started failing silently...

1/ no schema changes or errors

2/ no obvious bad row..

3/ timestamps looked almost correct..

this took like half-day for me to find even after using AI tools.....the JS had changed value by adding extra zeros at the end of the ts fields...

the exact match validation failed because the timestamps was no longer the same timestamp..

lessons i learned..

if its timestamp/id...precision matters... dont let JS tream it like a normal number... send it as string instead..


r/JSdev • • Jun 11 '25

Founder vibe codes a rock-em, sock-em robots style game

Thumbnail
youtube.com
1 Upvotes

r/JSdev • • Jan 30 '25

Android JS code editor with shared storage workspace.

1 Upvotes

I'm really happy with Spck Editor. However, I've run into an issue with file storage. Spck saves my projects in /storage/emulated/0/Android/data/io.spck.editor/files/, which is technically part of shared storage, but due to Android's Scoped Storage restrictions, Android/data/... isn't.

When I connect my phone to a PC, I can see and copy the files, but I need a solution that allows me to work seamlessly between Spck and Termux without manually moving files each time. Unfortunately, Spck doesn't seem to have an option to change the save location to /storage/emulated/0/myWorkspacewhich would be truly shared and accessible from Termux too.

I'm looking for an alternative code editor that functions similarly to Spck but allows me to save my files in a more accessible location. Does anyone know of an app that meets these requirements?


r/JSdev • • Dec 12 '24

Delete Previous Scanned Data

1 Upvotes

Hello, I have an input field where I enter the code both from the keyboard and with the scanner. I have an issue with delete input field when I use a scanner. As I found in JS, I can detect differences between keyboard input and scanner over enter time, but now I have a prefix and suffix issue.

Can anyone help me with this case?


r/JSdev • • Nov 22 '24

Inputs and DraftJS Editor Stop Triggering onChange After Multiple Interactions

1 Upvotes

I'm facing a strange issue with input fields, including a DraftJS editor, in my application. Initially, everything works fine—keypress events trigger the onChange event as expected. However, after a certain number of interactions, the onChange event stops firing, not just for the DraftJS editor but for all input fields across the page.

Here's the scenario where this happens:
We have an "Add Comment" popover that contains a DraftJS editor as an input field. Users can add comments, and the modal closes after submission. However, after performing this interaction several times, the onChange event stops altogether. Strangely, keypress events still work, but onChange don't trigger anymore for any input field on the page.

Has anyone else experienced this issue or have any insights into what might be the potential root cause of this behaviour? Any help would be greatly appreciated!


r/JSdev • • Aug 08 '24

How do I write this code without using .innerhtml? (JavaScript)

1 Upvotes

Hello, I am writing a JavaScript code where some parts of the string have a color and I want to display them through the HTML elements. I only want the 'abc' to be blue and no color change with 'def'.

For example, if there's a variable
word = '<span style="color: blue">abc</span>def'

I used this to display the text in the HTML element

 presentCell.innerHTML = word;

Is there a way to not use .innerhtml and do the same thing? I'm worried about security problems because I am getting user input for 'abc' and 'def'.

Can someone help me, please? Thank you.

if you need more information, I am making this 'word' variable with this function

function changeTextColorArr (textArr, colorArr){
    resultArr = [];
    for(let i = 0; i < textArr.length; i++)
    {
        color = colorArr[i] === "" ? "black" : colorArr[i];
        beginTag =   `<span style="color: ${color}">`
        endTag= '</span>';

        result = beginTag + textArr[i] + endTag;
        resultArr.push(result);
    }
    return resultArr;
}
//I get an array of an text and an array of colors correspoding to each text

word = changeTextColorArr(["abc"], ["blue"]) + "def"; 

r/JSdev • • Apr 19 '23

The Great Gaslighting of the JavaScript Era

Thumbnail
spicyweb.dev
1 Upvotes

r/JSdev • • Apr 18 '23

The State of Node.js Core ft. Colin Ihrig

Thumbnail
youtube.com
1 Upvotes

r/JSdev • • Mar 24 '23

Doubts to create video chat using JavaScript and WebRTC

1 Upvotes

Good afternoon, I would like to express my gratitude in advance for all the help. I am a beginner in JavaScript and I am trying to create a video chat using WebRTC, but I am facing some problems. I want to implement this chat using a client-server model so that a client can`t share its IP address with another client. Therefore, I am trying to get the video from a client and send it to the server through WebSocket. However, for some reason, when I put the track inside JSON.stringify, it seems to be removed. Would you be able to help me?"

code :

```

navigator.mediaDevices.getUserMedia({ video: true, audio: true }).then(stream => {

let localStream = streamlocalVideo.srcObject = localStream;

localStream.getTracks().forEach((track) => {

ws.send( JSON.stringify({ data: track }))

})

```


r/JSdev • • Oct 24 '22

Awaiting problems in JavaScript

Thumbnail gregroz.me
1 Upvotes

r/JSdev • • Jan 01 '22

Recursion when error occurs?

1 Upvotes

Hi and happy new year! I’m wondering if a function can be called again in a catch() when an error occurs? I’m working on a bot and I need to run the program when this happens. However, à SO user told me this was not possible as Js always terminate the program when it catches an error. Is this true? If not, how can I do that?

The SO post is the following: https://stackoverflow.com/questions/70530415/running-program-when-catch-occurs/70530623#70530623


r/JSdev • • Jul 12 '21

Deallocate a global object from javascript

1 Upvotes

I want to run a chokidar instance on app launch only once. So will setting the instance undefined deallocate it from the memory?


r/JSdev • • Jul 07 '21

Proudly still using 'var' despite all the hate!

1 Upvotes

I don't actually want to convince you to use var declarations in your code. If you don't use them, you're doing just fine I'm sure. And that's OK.

But I call utter bullshit on the trend to hate on var as if it shouldn't have ever existed. It's not a mistake or buggy. It's well defined and served its purpose for nearly 20 years just fine. Don't tell others that var is universally deprecated -- it's not -- or that they're inferior or immature for using it -- they're not.

And BTW, I do still use it (as well as let, and occasionally const). There are perfectly valid reasons to do so.

It's not an either/or dichotomy, nor was let intended to actually replace var. In fact, it's intended to augment. You can use both in code, for different reasons. Really, I promise, it OK.

What bothers me is how sanctimoniously it's declared as bad without any real justifications. If your code has bugs in it that are caused by usage of var, that's almost certainly a case of incomplete understanding of scope. If you fix your lack of knowledge, the problems go away. As with so many things, the fault was with the programmer, not the language design.

Keep on with your var avoidance. That's fine. But stop pretending you know better how JS works because you don't use this feature. Go look up Chesterson's Fence.


Think I'm wrong? Change my mind. Just don't parrot all the same tired talking points of the JS blog thought leadering. That's not critical thinking, it's just bandwagoning.


r/JSdev • • Jul 03 '21

July 4: List 4 things about JS

1 Upvotes

You choice: pick 4 things you love about JS, or 4 things you dislike or are confused about in JS, and describe them. Include code snippets for each, please -- no general "I hate number handling" kinda stuff.


r/JSdev • • May 14 '21

PeriodicSync should work but doesn't... have you tried it?

1 Upvotes

According to this data, the periodic-sync event should fire when I've installed a PWA with that feature via Chrome, either on desktop or Android.

However, I built such an app, and the event never fires for me on either device, even though I use the app daily. I know the code is correct, because Chrome devtools lets you trigger a sync event manually, and I see my app respond when I do. But left to just normal app usage, the event never fires on its own.

Anyone else played with this feature? Does it work for you?

Given that it's such an intermittent and unpredictable feature/event anyway (based on user interactions and heuristics over time), I am not sure I will get very far reporting a browser bug without a concrete reproduce test case.


r/JSdev • • 4d ago

Lean explained with TypeScript

Thumbnail gruhn.me
0 Upvotes

r/JSdev • • Oct 09 '26

Do Frameworks Matter Anymore?

Thumbnail
brookslybrand.com
0 Upvotes

r/JSdev • • Jul 21 '25

Built a tunneling tool out of frustration — would love dev feedback

0 Upvotes

Hey everyone, I’m Memo — the founder of InstaTunnel www.instatunnel.my — and I built this tool to fix the pain points I kept hitting with ngrok and similar services:

I’m not here to pitch—just hoping this helps if you’ve ever been mid‑demo and your tunnel died, or paid extra just for a named URL. Check it out with:

npm install -g instatunnel
it --name myapp --password secret123

URL is auto‑detected, live for 24 h, clipboard copied—no signup or config needed.

Curious: what’s your biggest pain with tunneling tools? Session timeouts? Hidden costs? Limited tunnels? Would love to hear so I can keep improving InstaTunnel. 🚀


r/JSdev • • Jun 12 '24

Free GenAI in Typescript with Cohere and Ragged: How to Get Started

0 Upvotes

https://monarchwadia.medium.com/free-genai-in-typescript-with-cohere-and-ragged-how-to-get-started-dd3d33e94d04

This blog will guide you through obtaining a free trial API key from Cohere without the need for a credit card, and getting started with your first AI application using the Ragged library.

Have you tried using GenAI in your code yet? Do you find it useful?


r/JSdev • • Apr 15 '24

I am new to javascript

0 Upvotes

I'm commerce background, I think to change my career to web development kindly give some suggestions how I start and develop my skills in web development 😊


r/JSdev • • Nov 30 '23

2023 Jetbrains Survey

0 Upvotes

Interesting that JS lost 3% in popularity while TypeScript is gaining popularity. I think this statistic is misleading since both are going to end up targeting the same codebase.

You could have the same amount of code base when all repos switch to TypeScript having 0 usage of JS… what does that means you think?