I hereby claim:
- I am phoe on github.
- I am phoe (https://keybase.io/phoe) on keybase.
- I have a public key whose fingerprint is DF25 B517 A75E 2BBC 08CC B16B 2463 9CD1 4EE8 FB35
To claim this, I am signing this object:
// note: -D_7ZIP_ST is required when compiling on non-Windows platforms | |
// g++ -o lzma_sample -std=c++14 -D_7ZIP_ST lzma_sample.cpp LzmaDec.c LzmaEnc.c LzFind.c | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <memory> | |
#include "LzmaEnc.h" | |
#include "LzmaDec.h" |
(defclass foo-class (standard-class) ;; we first create a metaclass | |
()) ;; no slots required | |
(defmethod initialize-instance :before ((class foo-class) &key my-argument) | |
(print my-argument)) ;; when we first define the class, just print the arguments | |
(defmethod reinitialize-instance :before ((class foo-class) &key my-argument) | |
(print my-argument)) ;; when we later redefine the class, just print the arguments again | |
(defmethod validate-superclass ((class foo-class) (super standard-class)) |
I hereby claim:
To claim this, I am signing this object:
On why stateful code is bad | |
=========================== | |
STUDENT: Sir, can I ask a question? | |
TEACHER: Yes! | |
STUDENT: How do you put an elephant inside a fridge? | |
TEACHER: I don't know. | |
STUDENT: It's easy, you just open the fridge and put it in. I have another question! | |
TEACHER: Ok, ask. | |
STUDENT: How to put a donkey inside the fridge? |