16:42 < dagothig> bon, j'en ai une autre de saucy "next = *(++(*end))"
16:42 < adelrune> o/
16:42 < adelrune> calice
16:42 < NotBatman> kwé
16:42 < adelrune> tu sors ça d'où %
16:42 < dagothig> c'est une adresse d'un string, pis je veux avancer dans le string pis avoir le prochain caractère
en même temps
16:42 < dagothig> c'est foolproof
16:42 < NotBatman> fucking hell
16:43 < dagothig> mon code va être autant compréhensible que l'énoncé
16:46 < adelrune> c'est pire que tous les oneliners python que j'ai postés ici réeunis
16:47 < __316k__> dagothig: le truc pour écrire du code clair, c'est de mettre des commentaires
16:47 < __316k__> /* c'est une adresse d'un string, pis je veux avancer dans le
16:47 < __316k__> string pis avoir le prochain caractère en même temps */
16:47 < __316k__> next = *(++(*end))
16:47 < adelrune> o/o/o/
16:47 < __316k__> Là c'est 100% foolproof
16:47 < adelrune> 100% foolproof
16:47 < __316k__> Beaucoup plus clair tout d'un coup!
16:47 < adelrune> _ ___ ___ _ __ __ _ __
16:47 < adelrune> |/ _ / _ (_)/ / / _| ___ ___ | |_ __ _ __ ___ ___ / _|
16:47 < adelrune> | | | | | | | |/ / | |_ / _ / _ | | '_ | '__/ _ / _ | |_
16:47 < adelrune> | | |_| | |_| / /_ | _| (_) | (_) | | |_) | | | (_) | (_) | _|
16:47 < adelrune> |_|___/ ___/_/(_) |_| ___/ ___/|_| .__/|_| ___/ ___/|_|
16:47 < adelrune> |_|
16:48 < __316k__> Soit ça, soit // Deep magick happens blow
16:48 < __316k__> *below
16:48 < NotBatman> *(++(*below))
16:49 < __316k__> En fait, le mieux c'est d'écrire du code qui s'auto-documente
16:49 < __316k__> next =
*(++(*cestuneadressedestringpisjeveuxavancerdanslestringpisavoirleprochaincaractereenmemetemps));
16:49 < NotBatman> kek
16:49 < dagothig> oooo/
16:49 < dagothig> ooooooooooo/
16:49 < __316k__> ooo
16:49 < __316k__> /o/o/o/
16:49 < dagothig> __316k__: t'as strat est excellente
16:49 < dagothig> elle invalide tout besoin futur de commentaire
16:50 < dagothig> aucune explication requise
16:50 < __316k__> Self-documenting code
16:50 < __316k__> C'est explicite :vD
16:51 < adelrune> #litterateprogramming
16:51 < NotBatman> __316k__: non mais faut mettre des underscore
16:51 < NotBatman> sinon c'est pas lisible
16:51 < NotBatman> pis c'est pas auto-documenté
16:51 < __316k__> NotBatman: __next__ =
*(++(*__cestuneadressedestringpisjeveuxavancerdanslestringpisavoirleprochaincaractereenmemetemps__));
16:51 < NotBatman> calisse
16:51 < NotBatman> o/
16:51 < __316k__> o/
16:52 < dagothig> je pourrais définir une macro aussi, genre ADVANCE_STRING_PTR_AND_RECEIVE_HEAD(ptr, head)
16:52 < __316k__> o/
16:52 < __316k__> Ça marche aussi
16:52 < dagothig> à ce qui parait au travail y faut pas qu'on abbrévie culture en cul, ou assignment en ass
16:52 < dagothig> j'étais vrm triste
16:52 < NotBatman> o/
16:52 < NotBatman> assCul as fuck
16:55 < __316k__> dagothig: la façon la plus claire d'écrire ta macro, tho, c'est de la faire la plus explicite
possible
16:55 < __316k__> #define ASSIGN =
16:55 < __316k__> #define DEREFERENCE *
16:55 < __316k__> #define VARIABLE next
16:55 < __316k__> #define LPAR (
16:55 < __316k__> #define RPAR )
16:55 < __316k__> #define INCREMENT ++
16:55 < __316k__> #define STRING end
16:55 < __316k__> #define RIGHT_EXPR DEREFERENCE##LPAR##INCREMENT##LPAR##DEREFERENCE##STRING##RPAR##RPAR
16:55 < __316k__> #define ADVANCE_STRING_PTR_AND_RECEIVE_HEAD VARIABLE ASSIGN RIGHT_EXPR
16:56 < __316k__> s/##/ /g, pardon

#949 - 29/02/2020 20:04