dotJS 2012 - Brian Leroux - WTFJS
Channel:dotconferences · Length:18:27 · Published:2013-01-19 · Views:209662
Summary
Brian Leroux's dotJS 2012 talk WTFJS is a quick, humorous tour of JavaScript's odd behaviors and quirks.
Why HN recommends it
Linked as a funny tour of JavaScript gotchas, usually to show the language has oddities of its own.
Programming language design · Web development
Subtitles (excerpt)
[Applause] all right it's it's a huge honor to be here um in one of the greatest cities in the world in one of the most beautiful venues ever and I'm going to show you the grossest code you've ever seen um so before before we get going too fast I I I just have to say that I I love JavaScript it is my favorite language I've been working with it for years um it's got a few edge cases and you've probably run into these yourself um You probably seen wtfjht this at so there's this thing called nodejs I don't I don't know if it's going to be cool or not but I'm going to use it anyways it's just JavaScript um so true is true that's kind of obvious um but we we got to start at the beginning here because stuff's going to get really messed up um so uh the The Logical not operator um if we put that in front of a true statement it turns into false and you know we can turn true back into true if we need to sometimes you use a grouping operator uh to coers things and so coercion is a big part of how JavaScript works and so we can start figuring out the truthiness of things like a string turns out it's falsy how about an array turns out it's truthy what about an object okay so an object's truthy that's okay let's start using What's called the
On Hacker News
I'm glad that someone posted this :) See also a longer spin of of this talk at the more decent dotJS conference: [VIDEO] — aroman, 2013-04
That's JavaScript for you. Here's a talk about the (in)sanity of JS: [VIDEO] The same under Clojure (on top of the JVM) shall throw a class cast exception. — TacticalCoder, 2024-05
Meh. They're different languages with different expectations. "is" is distinct from "==" in both, and Python gets "==" right (obviously). Javascript doesn't really have any high ground here[0]. (In contrast, Python:) >>> [] == False False >>> object() == False False >>> "" == False False >>> {} == False False They're just different. [0]: [VIDEO] — loeg, 2019-01
> No, actually, it doesn't. Perhaps less in what features to avoid, but there's plenty of hidden gotchas to avoid in JavaScript still. [VIDEO] [LINK] > C++ is a huge language, javascript is a relativly small one. C++'s ISO/IEC 14882:2003 weighs in at 786 pages, compared to ECMA-262 (5.1 Edition)'s 258 pages (measuring by PDF reader). A ~3x difference, but not quite the order of magnitude I'd expe… — MaulingMonkey, 2015-05
I don’t see why you are offended. I love JS but here it is 20min of programming jokes in the expense of JS: [VIDEO] As it comes to PHP, I don’t say that you can do everything by a single PHP file in a web server folder(actually, you can but not comfortably). I’m trying to illustrate it’s low-code nature. There are no other languages that are that easy to start solving your problem with. Okay, may… — mrtksn, 2021-06
Related videos
- ARCHIVE TEAM: A Distributed Preservation of Service Attack · textfilesdotcom · 44:18
- DjangoCon 2008 Keynote: Cal Henderson · Google for Developers · 1:02:43
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51
- Brian Goetz - Stewardship: the Sobering Parts · ClojureTV · 1:03:30
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Ideas about a new programming language for games. · Jonathan Blow · 1:55:24