You Might Be A Programmer If:
1. You immediately complain that this should be subscripted as zero.
2. By the time you’ve gotten here in this document, you’ve run a linter to check the HTML.
3. Point 2 annoys you, since this document is obviously plaintext without html.
4. The statement(0x2b || !0x2b)makes sense to you.Note: Hexadecimal numbers use a leading zero followed by a lowercase or uppercase Latin letter “X” (0x or 0X).
(eg)0xA // 105. You find 4 funny. [Think Shakespeare!]
6. You note with disgust that it always evaluates to true, since0x2b != 0.
7. Point 6 disgusts you, because in other languages it would throw a runtime error.
8. Your DuckID password is the chemical formula for caffeine.
Required Reading
- Slides: Ch. 14 Arrays
- Regular Expressions
- Ch. 26 Adding DOM Elements
Optional Web Field Trips
- The Route of a Text Message. ASCII-8 in 7 Bits = GSM-7.
- Inside Afghanistan’s friendliest coding club.