JavaScript is weird

  Рет қаралды 483

Carberra

Carberra

Күн бұрын

Пікірлер
@mysterry2000
@mysterry2000 12 сағат бұрын
I use JS (via Typescript) almost daily if not several times a day and ngl if I see a codebase with these kinda things in it "to look smart", I'm running. Merry Christmas
@DuncanBooth
@DuncanBooth 11 сағат бұрын
Oh, and Python does have nans builtin, just `from math import nan` or even `float("nan")`
@Carberra
@Carberra 10 сағат бұрын
Oh cool, knew about float("inf") but not float("nan")!
@davidmurphy563
@davidmurphy563 10 сағат бұрын
Non-zero div zero is not infinity, it's DNE does not exist. The way to confirm this is to rearrange it as the equivalent multiplication. Let's do it with an example of 3 and see what happens. *Something over zero:* 1 / 0 = 3 or equivalently: 3 * 0 = 1 This is False. It's definitely not infinity. We can change the 3 for any number - no number resolves to True. It's always a False statement. *Zero over zero:* 0 / 0 = 3 or equivalently: 3 * 0 = 0 This is True! So is it defined? Nope. Let's change the 3 to a 4. `4 * 0 = 0` that's also True. So every value is True. Well, if every value is True then no value is True. If not, we could safely conclude that 4 = 3 and that breaks the Law of Non-Contradiction. ps. Merry Christmas! pps. js is terrible!
@DuncanBooth
@DuncanBooth 11 сағат бұрын
I got 15 out of 25. I correctly guessed empty arrays were truthy but wrongly thought empty strings might be as well. As for question number 8 though, I think I need to sit down quietly in a dark room somewhere to recover.
@Carberra
@Carberra 10 сағат бұрын
Over half, GG! Yeah question 8 is definitely the most cursed one I think. That logic is something else.
@Dexter101x
@Dexter101x 2 сағат бұрын
I was going to give advice about that cold you have and claiming its a "winter" problem, but I don't think you'll understand me, lol
@dipeshsamrawat7957
@dipeshsamrawat7957 10 сағат бұрын
So, are you going to bring JavaScript series here??😍
@Carberra
@Carberra 10 сағат бұрын
I might do some videos on it but I've been undecided for a while. We'll see I guess haha.
@dipeshsamrawat7957
@dipeshsamrawat7957 10 сағат бұрын
@Carberra We are waiting eagerly. Thank you 😊
@Dexter101x
@Dexter101x 2 сағат бұрын
And yes, JS is weird, but so is python in a way. But try doing VBA, even weirder
@SkyFly19853
@SkyFly19853 6 сағат бұрын
And Javascript is a liability...
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
SAVE TIME and reduce boilerplate with dataclasses
18:58
Carberra
Рет қаралды 3,7 М.
I Scraped the Entire Steam Catalog, Here’s the Data
11:29
Newbie Indie Game Dev
Рет қаралды 594 М.
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 206 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 720 М.
ENSIA: OSs (Fall 2024) - Lecture 13
2:01:49
Karim Lounis
Рет қаралды 251
2024's Biggest Breakthroughs in Math
15:13
Quanta Magazine
Рет қаралды 516 М.
Dark Souls Any% - 20:11 (former world record)
23:23
QueueKyoo
Рет қаралды 157 М.
The Every UUID Website Explained
33:43
ThePrimeTime
Рет қаралды 239 М.
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Learn Python in 1 hour! 🐍 (2024)
1:00:00
Bro Code
Рет қаралды 187 М.