07 2021 档案

摘要:数据库 单表VS多表联合 多表联合查询的优势区域在于敏捷开发,主要用于过于庞大却可拆分的储存需求 但是劣势也很明显:更多的查询约束条件会用掉数据库服务器额外的cpu/内存/io,也不方便更未来的分布式部署 它的劣势也是单表的优势 单表的劣势主要在可维护性上,条目过多可能会让维护人员混乱 这也是为什么 阅读全文
posted @ 2021-07-30 15:21 YanAemons 阅读(67) 评论(0) 推荐(0)
摘要:关于va_list, va_start, va_arg, va_end 由于在C语言中没有函数重载,解决不定数目函数参数问题变得比较麻烦,即使采用C++,如果参数个数不能确定,也很难采用函数重载。对这种情况,提出了指针参数来解决问题。 **如printf()函数,其原型为: *int printf( 阅读全文
posted @ 2021-07-20 17:49 YanAemons 阅读(539) 评论(0) 推荐(0)
摘要:耦合 耦合是一个设计与逻辑上的问题 例如一个软件有20个功能,删除任意一个功能对别的19个功能不造成影响,就是低耦合 如果删除一个功能后其他功能会失去完整性,那么就是高耦合 Difference between Binary code and ASCII 1) Binary code is a ge 阅读全文
posted @ 2021-07-20 16:55 YanAemons 阅读(62) 评论(0) 推荐(0)
摘要:C++中 ->的作用 ->用于指针 ->用于指向结构体的指针 ->用于指向结构体的指针,表示结构体内的元素 #include<stdio.h> struct role // 定义一个结构体 { char name[8]; // 姓名 int level; // 等级 int HP; // 血量 in 阅读全文
posted @ 2021-07-20 15:14 YanAemons 阅读(46) 评论(0) 推荐(0)
摘要:Thread Definition of Synchronized Synchronized block in java are marked with the synchronized keywork. All synchronized blocks synchronized on the sam 阅读全文
posted @ 2021-07-15 17:37 YanAemons 阅读(319) 评论(0) 推荐(0)
摘要:代码执行预料不到的情况,或出错的可能性很大时,使用try-catch语句 构造一个文件输入流(上传文件时,线上环境的内存情况不确定)出错的可能性很大 文件上传写入, 数据库事务的提交,还有摄像头和打印机的使用 使用数据库事务的时候使用try-catch,如果事务执行成功就提交事务,如果事务执行失败就 阅读全文
posted @ 2021-07-15 15:02 YanAemons 阅读(383) 评论(0) 推荐(0)
摘要:Server implementation Open a socket on the server that listens to the UDP requests. (I’ve chosen 8888) Make a loop that handles the UDP requests and r 阅读全文
posted @ 2021-07-15 15:01 YanAemons 阅读(99) 评论(0) 推荐(0)
摘要:Find one thing you know the code does, and trace those actions backward, starting at the end Say, for example, you know that the code you're viewing u 阅读全文
posted @ 2021-07-15 14:58 YanAemons 阅读(78) 评论(0) 推荐(0)