Le src/main.cpp de l'outil de la bibliothèque ne laisse aucun doute quand à la qualité du développeur. Les commentaires WTF sont de moi :
#include <stdlib.h> // WTF Tiens, je croyais que j'allais lire du C++#include <string.h>#include "OSconfig.h"#include "fstarter.h"#include "returncodes.h"#include "globalvars.h"intmain(intargc,char*constargv[]){longret=RET_OK;charbuff[MAX_STRING];// WTF Brace yourself, a buffer overflow is comming.if(argc<2){sprintf(buff,"Error #%ld \n",(long)RET_NOPARAMS);// WTF Seriously?printf("%s",buff);returnEXIT_FAILURE;}evenja::initGlobalVars();// WTF Admettonsevenja::Fstarter*starter=newevenja::Fstarter();// WTF Oh, a nude pointerif(!starter)// if created then work, otherwise error{sprintf(buff,"Error #%ld \n",(long)RET_MEMORYSPACE);// WTF But why sprintf?printf("%s",buff);returnEXIT_FAILURE;}// Start with the config filecharxmlFile[MAX_PATH];// WTF Brace yourselves (bis)sprintf(xmlFile,"%s/%s/%s",DATADIR,"evenja/configs",argv[1]);// WTF WHITEWALKERS OVERFLOW!!!ret=starter->start(xmlFile);if(ret!=RET_OK){sprintf(buff,"Error #%ld \n",ret);// WTF ...printf("%s",buff);returnEXIT_FAILURE;}starter->execute();ret=starter->end();// Enabled if we are in a dynamic configurationdeletestarter;// WTF Why?returnRET_OK;// WTF Why not ret, recently assigned to hold the actual ret code?}
Concept fumeux, incompris de l'auteur lui-même.
Code douteux.
# Brace yourselves, bullshit is coming.
Posté par LupusMic (site web personnel, Mastodon) . En réponse à la dépêche Concours "Evenja Café", un nouveau paradigme de programmation. Évalué à 8.
Le src/main.cpp de l'outil de la bibliothèque ne laisse aucun doute quand à la qualité du développeur. Les commentaires WTF sont de moi :
Concept fumeux, incompris de l'auteur lui-même.
Code douteux.
C'est assez pour arrêter la blague je crois.