r/javascript • u/binarynate • Mar 30 '20
r/javascript • u/magenta_placenta • Jun 13 '17
Rotating cube with separate worlds within each side
r/javascript • u/kevinvz • Apr 26 '19
Uppy 1.0: Your best friend in file uploading
r/javascript • u/12315070513211 • Dec 23 '18
Neural networks in JavaScript – free 19-part course
r/javascript • u/wtfReddit • Feb 06 '18
Third edition of Eloquent JavaScript is out
r/javascript • u/xTWOz • Dec 04 '18
Modern JavaScript Explained For Dinosaurs
r/javascript • u/FrancisStokes • Jun 06 '20
I'm making a series about building a 16-bit Virtual Machine in JavaScript from scratch. This episodes all about taking an assembly AST and generating machine code
r/javascript • u/brandon_lanket • Oct 15 '20
Don't Copy Paste Into a Shell
briantracy.xyzr/javascript • u/looneysquash • Apr 08 '18
I don't like prettier
It seems like prettier is becoming very popular. https://github.com/prettier/prettier
I don't like it. I don't like the whole "rewrite from AST" approach. I prefer a formatter with a lighter touch, that fixes a my mistakes, but also trusts me.
Yes, wrap that long line. But no, don't unwrap those short lines, I did that on purpose. Or I wanted an extra new line there. Or these variables are a matrix, don't reformat them, and don't make me add an ugly comment to turn you off.
I'm starting to feel like I'm alone in this though, that there's a pro-prettier movement, but not an anti-prettier movement (or a pro some-other-tool movement).
Anyone feel the same way? What tools do you use instead, if any? How do you deal with teammates pressuring you to use prettier?
r/javascript • u/zoltanszogyenyi95 • Jun 26 '20
Angular 10 officially released and drops support for IE 9, 10 & Mobile
r/javascript • u/SecureSwap • May 11 '21
Babel.js is used by millions, so why are we running out of money?
r/javascript • u/magenta_placenta • Apr 20 '16
Clippy.js - people love two things: failed Microsoft technologies and obscure Javascript libraries
r/javascript • u/armastevs • Dec 03 '13
I rebuilt all of the functionality of Reddit using the Reddit API and Backbone/Marionette/Handlebars and added some features I thought Reddit needed. Introducing RedditJS.com
r/javascript • u/magenta_placenta • Oct 06 '21
How to use JavaScript feature flags to deploy a feature safely [React.js example]
r/javascript • u/magenta_placenta • Jun 07 '17
TheresaMay.js is a simple JavaScript framework (why not) that can be quickly deployed in situations where the real Theresa May can't be bothered to show up
r/javascript • u/thomasfl • Nov 15 '16
WebAssembly ongoing logo competition is hilarious
r/javascript • u/nightman • Apr 24 '23
Chrome Dev Tools can now override response headers including CORS
r/javascript • u/DanielRosenwasser • Jan 26 '23
Announcing TypeScript 5.0 Beta
r/javascript • u/calvers70 • Dec 30 '20
AskJS [AskJS] People who have been writing code professionally for 10+ years, what practices, knowledge etc do you take for granted that might be useful to newer programmers
I've been looking at the times when I had a big jump forward and it always seems to be when someone pretty knowledgeable or experienced talks about something that seems obvious to them. So let's optimize for that.
People who know their shit but don't have the time or inclination to make content etc, what "facts of life" do you think are integral to your ability to write good code. (E.g. writing pseudo-code first, thinking in patterns, TDD, etc). Or, inversely, what gets in the way? (E.g. obsessing over architecture, NIH syndrome, bad specs)
Anyone who has any wisdom borne of experience, no matter how mundane, I'd love to hear it. There's far too much "you should do this" advice online that doesn't seem to have battle-tested in the real world.
EDIT: Some great responses already, many of them boil down to KISS, YAGNI etc but it's really great to see specific examples rather than people just throwing acronyms at one another.
Here are some of the re-occurring pieces of advice
Test your shit (lots of recommendations for TDD)
Understand and document/plan your code before you write it. ("writing is thinking" /u/gitcommitshow)
Related: get input on your plans before you start coding
Write it, then refactor it: done is better than perfect, work iteratively. (or as /u/commitpushdrink says: "Make it work, make it fast, make it pretty)
Prioritize readability, avoid "clever" one-liners (KISS) (/u/rebby_the_nerd: If it was hard to write, it will be even harder to debug)
Bad/excessive abstraction is worse than imperative code (KISS)
Read "The Pragmatic Programmer"
Don't overengineer, don't optimize prematurely (KISS, YAGNI again)
"Comments are lies waiting to be told" - write expressive code
Remember to be a team player, help out, mentor etc
Thank you so much to everyone who has taken the time to comment so far. I've read every single one as I'm sure many others have. You're a good bunch :)
r/javascript • u/AhhMiPichula • Sep 24 '19