Skip to content

Instantly share code, notes, and snippets.

@robotlolita
robotlolita / jquery.api.js
Last active December 17, 2015 21:59
Redesigning jQuery's API
// There are four main design concerns here:
// * The API should abstract only DOM manipulations
// — law of Do Just One Thing.
// * The API should not allow plugins modifying jQuery,
// these should be distinct modules/objects
// — law of Modularity.
// * The API should not use the DOM as a data model,
// because this makes all operations inherently slow
// — law of Orthogonality.
// * The API should be simple, consistent and easy to use
@quchen
quchen / trolling_haskell
Last active February 24, 2024 01:30
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@robotlolita
robotlolita / 0-source.coffee
Last active December 27, 2015 02:32
CoffeeScript parser absurdity
[
a: 1
, b: 2
, c: 3
]
[ a: 1
, b: 2
, c: 3
]