Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.
Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.
I think it's really, really sleek, and this is what it looks like:
function dog(spec) {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
# Version | |
2021-08-31 | |
# Tested on | |
Python 3.9 | |
use git diff to generate file list
git diff --name-only master
add ext filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package! liberime-config) | |
(use-package! pyim | |
;; :quelpa (pyim :fetcher github :repo "merrickluo/pyim") | |
:init | |
(setq pyim-title "R") | |
:config | |
;; (use-package pyim-basedict | |
;; :config | |
;; (pyim-basedict-enable)) | |
(global-set-key (kbd "M-j") 'pyim-convert-string-at-point) |