r/javascript • • Dec 21 '22

AskJS [AskJS] Why is there a reputation that JavaScript isn't "secure" for building web applications?

1 Upvotes

There seems to be a prevalent negative reputation among JavaScript libraries- especially React and Node/Express- that they are not "secure" compared to other web frameworks like .NET or Laravel. Why is that so?


r/javascript • • Dec 19 '15

4 JavaScript Design Patterns You Should Know

Thumbnail
scotch.io
1 Upvotes

r/javascript • • Dec 12 '15

facepalm: "How much of the web would we break if an open source browser were customized to not tell if content were hidden when it existed on a filterlist and perhaps even lied?"

Thumbnail adblockplus.org
1 Upvotes

r/javascript • • Oct 09 '10

looks like it's your lucky day, js

Thumbnail
imgur.com
1 Upvotes

r/javascript • • Feb 01 '11

Awesome! Game in the background of a webpage

Thumbnail blog.nihilogic.dk
1 Upvotes

r/javascript • • Feb 28 '24

AskJS [AskJS] Small libraries that plug holes in the language and make development better?

0 Upvotes

Javascript came a long way this past decade, from the days of needing JQuery in every project and deep compatibility issues.

But, it's still javascript. It has plenty of problems - inconsistent apis, unnecessary verbosity, types and casting, etc

I'm looking for libraries that are:

a. small in size - no need to support super old browsers for bloat b. easy to use - no need for a compilation step or something c. make programming in javascript easier

A good example is alpinejs - while yes, you can manipulate the DOM manually or use a heavier framework. It feels like just the missing link between js and html.


r/javascript • • Apr 06 '15

React to this nonsense and move on - Why you should go for React.js, instead of Angular 2.0

Thumbnail
medium.com
1 Upvotes

r/javascript • • Aug 19 '16

[AngularJS] Do we really need 12 scripts to write Hello World?

Thumbnail
imgur.com
0 Upvotes

r/javascript • • Aug 15 '21

How To Use A Web API With Pure JavaScript

Thumbnail
dev.to
0 Upvotes

r/javascript • • Feb 08 '15

How to run HTML file on browser [Forgive my noobness, please]

1 Upvotes

Hey guys, started programming today and wanna start applying it. I use a Mac and have been writing code on Textedit then saving the file as an HTML.

When I open it up in Chrome, it shows up as text. What do I have to do to make the file run as code?


r/javascript • • Aug 14 '24

AskJS [AskJS] How to build a video editor in browser

0 Upvotes

Hi folks, I'm in my first year in college, and I would I like to build a video player in browser as a fun project, and gradually some features, I am confused where should I start, I got three years - I think that's enough for me :)


r/javascript • • Sep 01 '25

Stop writing try/catch around fetch — I built safe-fetch (tiny, 0 deps, ~3kb)

Thumbnail
github.com
1 Upvotes

I was tired of wrapping every fetch in try/catch and guessing if the error is network, timeout or HTTP. So I made safe-fetch:

  • no throws, always returns { ok: true | false }

  • normalized errors (Network, Timeout, Http, Validation)

  • dual timeouts + smart retries

  • ~3kb, zero dependencies


r/javascript • • Dec 23 '13

jQuery .data() considered potentially harmful

Thumbnail thinkco.de
0 Upvotes

r/javascript • • Nov 06 '21

Nimiq: the Blockchain for JS Devs!

Thumbnail
nimiq.com
2 Upvotes

r/javascript • • Aug 25 '26

AskJS [AskJS] How common is the term "Barrel" and do you know what it means?

0 Upvotes

I was talking with an LLM trying to get some ideas ("rubber ducking" basically) and it kept saying, "Barrel." I have been a JS programmer for 30 years and never heard the term. Does anyone else use the term or even know what it means?

I told it to use "import surface" instead instead because ... wtf is a Barell? I just want to know if I am behind the times and need to update my jargon or whether this really is a weird LLM thing.


r/javascript • • Nov 30 '18

Let's talk JS: Performance!

Thumbnail
areknawo.com
5 Upvotes

r/javascript • • Feb 13 '23

Building the largest Notifications Library in the world using ChatGPT, React, and NodeJS

Thumbnail
dev.to
46 Upvotes

r/javascript • • May 28 '23

GitHub - svent/jsdetox: A Javascript malware analysis tool

Thumbnail
github.com
16 Upvotes

r/javascript • • Feb 23 '16

A Gentle Introduction to Node.js

Thumbnail
keyholesoftware.com
17 Upvotes

r/javascript • • Apr 07 '25

[FOSS]: useTailwind for Vue - perfect for powering your WYSIWYG and CMS projects in Shadow DOM

Thumbnail
github.com
0 Upvotes
  • Tailwind v4+

  • Supports user-provided themes and plugins

  • Use in the main DOM or isolated inside Shadow DOM

  • Multiple instances with separate configs

  • Reactive list of used classes

See Demo

---

So story time... the facts are these:

  1. We use Tailwind on the frontend

  2. We often need to provide a CMS or WYSIWYG

  3. Clients are demanding more and more functionality from #2

  4. We want to power our CMS by simply using Tailwind on the backend too.

Before now, we've often ended up either using the Play CDN, or having to recreate Tailwind on the backend in style blocks.

And because the CDN installs in the head and watches the document, it grabs every class in sight.

And then if we use something like Vuetify, there's class warfare afoot.

Also, the CDN doesn't support plugins.

What to do?

We wanted to combine the Play CDN's responsive builds, the plugins allowed by module builds and the isolation that the Shadow DOM brings:

<template>
  <ShadowRoot ref="shadow">
    <EditorContent :editor="editor" />
  </ShadowRoot>
</template>

<script setup>
import { useEditor, EditorContent } from "@tiptap/vue-3";
import StarterKit from "@tiptap/starter-kit";
import { ShadowRoot } from "vue-shadow-dom";
import { useTailwind } from "vue-use-tailwind";

const { classes } = useTailwind(shadowRef);

const editor = useEditor({
  content: `<p class="text-orange-400">I'm running Tiptap with Vue.js. 🎉</p>`,
  extensions: [StarterKit],
});
</script>

And there you go. Tailwind is contained inside the ShadowRoot, only generates classes in the shadow root and no styles from outside the ShadowRoot can affect your EditorContent.

Recommended for anyone building their own CMS or WYSIWYG system. You even get a reactive Set with all your used classes in, which is ideal for saving to a source file for your main frontend build.


r/javascript • • Mar 16 '25

AskJS [AskJS] Bun / Deno / NodeJS - what do you use and why?

0 Upvotes

I've used Nodejs for a long time in non-production and production environments, cloud, on-prem and on device. I don't consider myself an expert in NodeJS, but I know enough to get the job done and send it to production without it kicking the bucket after 30 minutes.

Recent announcements by quite a few OS groups for 2025 have a number of very exciting features - native TS (limited) support, vite changes, improved tsc compilation and speeds, etc.

I didn't know about Bun/Deno until recently and I've never seen it pop-up in any job anywhere.

Does anyone have experience working with either tool and sending it to prod? I'd like to get your thoughts.


r/javascript • • Jul 19 '26

Made a Vector heavily inspired by C++'s std::vector, not like a stub or a gimmick.

Thumbnail
github.com
0 Upvotes

Though it requires quite new ES2024/ES2025 features, it works very well for numeric types, also faster (not drastically, but modest gains) against Array in PACKED FIXED ELEMENT TYPES representation used under the hood by engines.


r/javascript • • Jul 14 '12

Dart: Structured web apps

Thumbnail
dartlang.org
0 Upvotes

r/javascript • • Aug 20 '12

Some romantic Javascript codepoetry I wrote to someone special. :-))

Post image
0 Upvotes