r/javascript • u/parrissays • Jun 14 '19
r/javascript • u/__dacia__ • Jan 18 '23
I scraped +650K frontend jobs for 14 months and here are the Most Demanded Javascript Frontend Frameworks in this 2022 (From October 1, 2021 to November 30, 2022)
r/javascript • u/mattdesl • Sep 02 '18
Generative Art Game in 13 kilobytes for JS13K (in development)
r/javascript • u/cpojer • Oct 11 '16
Introducing Yarn: Fast, reliable, and secure dependency management for JavaScript.
r/javascript • u/sindreaars • Aug 16 '21
AskJS [AskJS] I have spent 7 years creating a JavaScript alternative, would love to hear your feedback
Hey all ๐
My name is Sindre, and I am the CTO of a YC-backed startup. For the last 7 years, I have written all my web apps in a programming language (Imba) that works as a clean and fast JavaScript alternative.
In the process of launching a major overhaul of Imba, I wanted to share it with this subreddit, in case anyone are interested in learning more about it. I would love to hear people's feedback as well! All constructive criticism is appreciated!
So, over to the nitty gritty details. Imba compiles to JavaScript and it is meant as an alternative that can give you increased dev productivity. So this is not a toy project or an academic exercise, it is extracted from a real project trying to solve real problems. It has been through countless iterations over the past 7 years, striving to be the perfect language for developing web applications.
In this last iteration, I have added tons of cool things like touch modifiers, inline styles, optional types and great tooling that integrates deeply with TypeScript. With this version I feel that I am very close to my vision for what Imba should be. In other words; it is finally ready for public consumption. I'd wholeheartedly advice you to look into it and give it a whirl if you are interested in web development :)
Check out this video on how to build a counter with Imba in less than 1 minute, or check out https://imba.io for docs and more info :)
Compiles to Javascript, works with node + npm
DOM tags & styles as first-class citizens
Optional typing and deep TypeScript integration
Blazing-fast dev/build tools based on esbuild
Advanced tooling with refactoring++ across js,ts, and imba files
Hope you like it, and please share any feedback you might have in the comments!
r/javascript • u/[deleted] • Dec 10 '20
I built an open-source browser extension that warns you when Javascript alters your clipboard data after copying text.
r/javascript • u/MrSirStevo • Jul 13 '18
help Adding '.json' onto the end of most Reddit URLs turns it into a mini-API, i.e. reddit.com/r/javascript.json; Great for prototyping!
r/javascript • u/marosurbanec • Nov 30 '16
Modern JS developer workflow makes me sad
Edit:
Wow, I would never have expected so many replies and advises. I sincerely thank you all!
I would like to highlight 3 tips that have helped me the most:
@sdihgusdoiu - Hard Source Webpack Plugin. This plugin was rarely given a mention in other links given what a difference it makes and how simple it is to set up compared to other solutions.
My mental model: it calculates a hash for Webpack config and package.json. If neither a compilation unit nor the hashes changed, it reuses output of previous builds for that compilation unit.
This results in a massive decrease in (re)build times. ~70s build became ~5s.
I wish this would be built into Webpack itself, although I understand there are reasons why not. ย
ย@acemarke - Definitely a subjective hint that many people will dislike: Use
evalfor source maps in Webpack
Not only is it by far the fastest option for Webpack to produce, the source it emits is what the browser actually executes. No more brain-dead breakpoint jumps by Dev Tools. Now you are free to copy-paste and play around with code directly from the Dev Tools.
Yes, it does show an ugly transpiled code instead of your beautified ES6 + JSX, but it sounds much worse than it really is. Much more reliable and predictable thaninline-source-map. ย
ย@Retsam19 - for frequently used modules consider exporting them as globals using Expose loader
Being able to dynamically REPLrequire(modulePath)for any module seems not to be possible, although there are some Stack Overflow answers claiming it is. I couldn't get them working
ย
Original Post:
This post is partly a rant, partly a cry for help, partly an inquiry about any tips and tricks that could improve our day-to-day work.
My company adopted a new, modern JS stack; all pretty standard:
React
Babel ES6 + JSX
Redux
Mocha
Webpack
React Router
lodash
along with their 1262 transitive dependencies (I'm not kidding here!)
As a result, my daily productivity plummeted. Honestly, I feel like x86 Assembly must have a friendlier set of developer tools.
A non-exhaustive list of issues:
We used to laugh at Java guys with their sluggish Maven, at C++ compilation times.
Nowadays it takes Webpack longer to build a todo app than for a complex Java project to download all dependencies, clean project, compile all files, run all tests, create a package and upload it to repository. npm is even worseSo...Webpack's hot reload, the mythical feature getting universal praise.
Apart from the fact that "hot" means "after 5 or more seconds", it comes with the worst of both worlds - sometimes it does work, sometimes it just doesn't; with no indication whatsoever whether it succeeded or not. So you spend 2 minutes figuring out why your fix didn't work, only to find out it hasn't been deployed in the first place. A colleague of mine stated: "I just don't trust hot reload. I always reload the entire page"Webpack or Babel or something comes with a special, depression inducing feature: if you make a syntax error in your file, instead of displaying a clear error, it loads some random cached build from half a day ago
my employer can definitely find a better use for its money than me tracing build bugs of some deeply nested transitive 3rd party library that whimsically has changed it's AMD/UMD exports
so...source maps. I can see my original sources in Developer Tools! Usually, that is. So, let's try to add a debug breakpoint to my code!
If you are lucky, it will stay on the line you clicked. Other times, it jumps a few lines up or down. Occasionally, it jumps to the bottom of the file. When developer tools sense that you haven't been frustrated for full 10 minutes, the breakpoint jumps to a 200kLoC app.js file, which freezes the entire Dev Tools and Chrome with it. Now, don't close Chrome at this point! If you do so, the next time you open Dev Tools, it will try to reopen the last session and freeze again. Just wait patiently for 2 minutes till Dev Tools finishes parsing the file, grab a cup of coffee. Actually, an antidepressant might be a better choice.you won a lottery and Dev Tools really did stop at your breakpoint. Congrats,. Now, let's inspect some expression. Uncaught ReferenceError: X is not defined. What? Well, Babel thinks the best way to compile this piece of code:
moment.isDate(...)
is to translate it to:
_moment2.default.isDate(...)
This is done to every ES6 import. And yes, that "2" in _moment2 can and will change to "3" or just disappear, at any point.Let's write some tests. Hm...they failed, let's see what's happening. Well, Chrome executes your test before it loads your sourcemaps, so it totally ignores your breakpoints. Remember that 200kLoC app.js file? That's your best bet now.
One of the best features of Javascript was an interactive REPL console in the browser. But that's so 2014! With Webpack/Babel, it's just not possible to get a reference to a particular module from Dev Tools Console. By design. Because best practices, man!
On the other hand, we have the 8th Wonder of the World, a time-travelling debugger for Redux. Last time I productively used it was never.
ย
Is this...normal? ย
How do you cope it? ย
How is this clusterfuck touted as a state of the art in Javascript? ย
Did you also become alergic to the phrase
makes it easy to reason about
ย
r/javascript • u/swamso • Jun 15 '20
I made a WebApp to share files instantly, fully anonymously and direct โ
r/javascript • u/tsteuwer • Jan 13 '19
GoDaddy is sneakily injecting JavaScript into your website and how to stop it [xpost from /r/programming]
r/javascript • u/magenta_placenta • Dec 08 '17
help Muuri - a magical JavaScript layout engine that allows you to build all kinds of layouts and make them responsive, sortable, filterable, draggable and/or animated
r/javascript • u/Vooodou • Sep 13 '21
I built the entire universe in JavaScript
r/javascript • u/BankApprehensive7612 • Nov 17 '25
TypeScript has native support in all major JavaScript runtimes since today
nodejs.orgNode.js enabled typescript imports in v25.2.0 and announced it in their blog. It means there is no more major JS runtime without TypeScript support. Kudos to TypeScript team and best regards
r/javascript • u/magenta_placenta • May 27 '20
AudioMass โ a full-featured audio editor in 65kb of vanilla JavaScript
r/javascript • u/FrancisStokes • Oct 01 '19
A Few Months Ago I Started a Youtube Channel Building Low Level Systems in JavaScript. This Is Episode 1 Of The "16-Bit Virtual Machine" Series
r/javascript • u/waldyrious • Sep 18 '25
Deno: Help Us Raise $200k to Free JavaScript from Oracle
r/javascript • u/ts-thomas • Apr 18 '21
WinBox is a new professional window manager for the web. Lightweight, outstanding performance, no dependencies, fully customizable, free and open source!
r/javascript • u/limonmonte • Feb 12 '18
SweetAlert2 - a beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes (alert, prompt, toast, etc.)
r/javascript • u/changmy • Feb 13 '20
AskJS [AskJS] I want to create a YouTube channel showing the nitty-gritty of programming and maintaining a web-app for 10+ years (scale: 40k monthly uniques, $20k/monthly). What topics are of interest to r/javascript?
As part of my new year's resolutions I want to get a little less camera shy and I thought I have a somewhat interesting story to share about being the solopreneur owner of a web app. This opens up the possibility to show all the code/analytics etc. without repercussions from any other stake-holders.
In terms of priorities, I wanted to ask you all what topics would you like to see covered? Here are some initial ideas I had. Feel free to add anything you don't see here.
(FYI: The site is a two-sided marketplace selling Word documents )
Coding Topic Ideas
generating a maximally enjoyable development environment (e.g. seeding data, simulating cron, mirroring production as much as possible etc.)
removing brittleness from integration tests that run on circleci
dealing with the shitshow that is sales tax accounting across multiple currencies
detecting and recovering from production bugs asap
dealing with the real-world mess that is imperfect user input (e.g. when they type emails with a leading space or inconsistent capitalization; when they create a tag that is almost the same as a previous one โย like E Guitar vs. Electric Guitarโand now your data is split across two areas)
discussing the 8+ year consequences of certain architectural/software design issues
streamlining massive amounts of config
multi-redundant systems of backup to prevent disaster
designing error messages and a logging strategy that speeds up recovery from errors
a tour of the most evil, insidious bugs I dealt with over the years (I keep a diary for them)
payment systems in-depth (refunds, errors etc.)
caching systems for performance
Javascript frameworks โย why I decided to tear mine out and stick with simple, modular JS.
Choosing dependencies that don't come back and bite you in the ass (think about how the JSscape has changed in the last ten years...)
Marketing/Business Topics Ideas
how I use data to decide to add/remove a feature
AB testing a web app
technical SEO (microdata, site structure for internal links, google's tools, sitemaps, etc.) โย I get 85% of my traffic (and therefore revenue) from SEO, so I know a thing or two
how I use JS and integration tests on all tracking code (critical to get right in my business)
auto-email systems to previous customers for extra sales
Adwords workflow to drive revenue
Analytics workflow to figure out what content working
Writing copy that gets sales (what worked for me vs. didn't)
r/javascript • u/JakeAndAI • Jun 07 '21
I made a fun JavaScript quiz that will test your knowledge on somewhat obscure JS syntax. You'll be shown 25 expressions and will have to guess the output. Please give it a try and let me know what you think :)
r/javascript • u/ConfidentMushroom • Dec 18 '19
V8 Release v8.0 with optional chaining, nullish coalescing and 40% less memory use
r/javascript • u/t0mbombadil • Oct 01 '20