Menu
Talk is cheap. Show me the code.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Equality-operator Memes
Posts tagged with Equality-operator
Almost Dropped The Course
Programming
Javascript
Python
2 months ago
710.3K views
0 shares
That beautiful moment in CS101 when you discover arrays start at 0 and the equality operator has a twin brother. Nothing quite like the existential crisis of learning that 2 == 2.0 returns true because type coercion is just vibing in the background. Meanwhile you're sitting there wondering if your entire understanding of mathematics is a lie. The double equals does type conversion before comparing (so the number 2 and the float 2.0 are considered equal), while triple equals would actually check if they're the same type too. But hey, at least you didn't learn this the hard way during a production bug at 3 AM like the rest of us did.
Today's picks
Cherry KC 200 MX, Wired Mechanical Office Keyboard, Modern Design with Elegant Aluminum Surface, USB-A Connection, MX2A Brown Switches, White/Silver
Affiliate
$59.99
There is no cloud
Cloud
74.9K views
4 years ago
I cried at that moment.
Programming
98.9K views
4 years ago