吐槽奇怪的代码/程序员

一直想好好吐槽一下我遇到的奇怪的代码,有没有一起的

有!各种奇怪的变量名,数量极少并且无法理解的注释,随处保存的配置文件……不愧是我!

  1. while与while之双保险
while (global_exit) {
	while (global_exit) {
		... ...
		do_something();
		... ...
	}
}
  1. 测量内存长度
int do_something(void *in_pointer, size_t size) {
	int mem_size = strlen(in_pointer);
	... ...
}
  1. fseek,写完重置
int write_size = 0;
while (1) {
	... ...
	fwrite(data, 4, 1, fp);
	write_size += 4;
	fseek(fp, write_size, SEEK_SET);
	... ...
}

自己用python生成的aardio数组(手动加密混淆完成……自豪【doge】)
注,这是成绩单,一共50个人,人名替换了(汪汪

core = {
“aa6d1865242b0c” = {
“0000” = “ABC”;
“6805” = “90”;
“6580” = “69”;
“6508” = “88”;
“6085” = “94”;
“6058” = “97”;
“8650” = “96”;
“8605” = “89”;
“8560” = “89”;
“8506” = “86”;
“8065” = “95”;
“8056” = “86”;
“5680” = “0”;
“5608” = “89.0”;
“5860” = “979.0”;
“5806” = “23.25”;
“5068” = “2”;
“5086” = “17”};
“1b2f157890210b” = {
“0000” = “DEF”;
“2508” = “84”;
“2850” = “84”;
“2805” = “85”;
“2058” = “87”;
“2085” = “96”;
“5280” = “89”;
“5208” = “100”;
“5820” = “81”;
“5802” = “79”;
“5028” = “95”;
“5082” = “84”;
“8250” = “0”;
“8205” = “87.64”;
“8520” = “964.0”;
“8502” = “23.25”;
“8025” = “4”;
“8052” = “43”}
}

变量名 iD

老苹果用户了