Javascript can create atomic bombs
Javascript can create atomic bombs
Javascript can create atomic bombs
Problem: Oppenheimer, unlike JavaScript, was actually competent.
Would be funnier if it was just “JS” on the right, because obviously HTML and CSS are involved too, but JS is where all hell breaks loose
If you've seen the Barbie movie, there's a scene where America Ferrera rants about the paradoxes in the expectations on women. The whole "be strong but not pushy" thing.
That's CSS.
Wait, I'm CSS?
I don't get it.
CSS is coloring and styling in programming, Ma'am.. It fits to describe the Barbie movie because of its vibrant colors
JS is about logic and calculations.. More like science in Oppenheimer
Is this some highly sophisticated programmer humor that I'm too tech-illiterate to understand?
CSS is used to create the design, basically the look (colors, layout and so on), but no substance.
JavaScript is used to implement code and logic.
HTML + JavaScript would typically (since you're supposed to use CSS to create colors and design) look very dull, thus the black-and-white Oppenheimer.
How many people who post JS BAD memes could provide a single example of why it's bad without looking it up?
It was made in 10 days, its type system is a mess, its syntactic shit, and there are just better replacements out there that will never see the light of day due to how big its already gotten
Coming from other languages I find the async by default thing annoying but I fully understand it's necessary for web sites to render in real time.
Well, use typescript. There's no excuse to use pure JS nowadays. It doesn't solve everything, but it for sure solves 95%+ of JS issues.
Or use WebAssembly, I think it's usable nowadays?
<span>Please enable JavaScript to use this app</span> document.getElementById("noscript").style.display = 'none';document.getElementById("noscript-info-with-bold-text").style.fontWeight = 'bold';document.getElementById("status__content__text").textContent="JS ecosystem is all hack upon hack upon hack upon hack. We love hacks, but don't want to relay on them to access my bank or watch a movie. Just send me a webpage, not a soup of obfuscated, impossible to edit scripts that assemble god sake app. That's the reason we can't have new browser engines anymore, try to disable one wrong thing and whole app breaks. Browsers are made as interactive documents viewers, not disposable operating systems.";
I use it regularly (web dev). A lot of complaints and mockery stems from using it badly. None of the programming languages that are regularly the butt of everyone's jokes force you to use them badly, they just allow you to. If you follow good practices, you'll be just fine.
Many of the programming languages that are regularly the butt of everyone's jokes don't just allow you to use them badly, they make it easy to do so, sometimes easier than using them well.
This is not a good thing.
A good language should
The reality is that the average software developer barely knows best practices, much less how to apply them effectively.
This fact, combined with languages that make it easy to shoot yourself in the foot leads to lots of bad code in the wild.
The meme was not about bad or good.. It's about Colors (CSS = Barbie), and Complexity (JS = Oppenheimer)
WAT
Reminded me of this: https://www.destroyallsoftware.com/talks/wat
Quite a few
Security concerns.
var bomb = [] for(var i = 0; i === -1; i++){ bomb.push(i) }
what does 3 equals signs do
Identity. "A is literally B" instead of "A equals B". This is necessary here in JS because if A is the string "-1" and B is the integer -1, JS evaluates A==B as true because reasons
2 equal signs will coerce the second operand into the type of first operand then do a comparison of it can. so 1 == "1" is true. this leads to strange bugs.
3 equal signs do not do implicit type conversion, cuts down on weird bugs. 1==="1" is false.
edit: it appears to be more complicated than that for double equals and the position of operands don't matter. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
This makes absolutely no sense. Front ends that include JavaScript still use css.
no frills? javascript is frills
The only sites I can think of that don't look like they use css are motherfuckingwebsite.com and bjarne stroustrup's website.
Any site that uses JS for more than trivial things is going to be a disaster without styling of some kind.
Maybe, but they don't need to. You could write an HTML styling engine in JS if you wanted to.
sometimes
Personally I hate CSS and the last several websites I created had plenty of JS.