2021年7月


撰写于    浏览:3792 次  分类: 默认分类
分享一个我的个人经验,这个经验我使用了很多年,收获很大,所以值得拿出来分享给大家。阅读代码,我一般情况下分为三步:第一步:整体的浏览代码。浏览一下即可,所以花费的时间不多,走马观花地看看就行。第二步:统计代码中单词的数量。可以编写一个小工具,对代码进行清理和切分,这样能统计出单词的数量。第三步:根据重点单词去阅读代码,从而做到有的放矢。知道重点在哪[...]

    最新评论

    SQLSTATE[HY000]: General error: 1032 Can't find record in 'mvc_comments'

    Typecho_Db_Query_Exception: SQLSTATE[HY000]: General error: 1032 Can't find record in 'mvc_comments' in /usr/local/springmvc/var/Typecho/Db/Adapter/Pdo.php:105 Stack trace: #0 /usr/local/springmvc/var/Typecho/Db.php(354): Typecho_Db_Adapter_Pdo->query('SELECT mvc_comm...', Object(PDO), 1, 'SELECT') #1 /usr/local/springmvc/var/Typecho/Db.php(384): Typecho_Db->query(Object(Typecho_Db_Query), 1) #2 /usr/local/springmvc/var/Widget/Comments/Recent.php(61): Typecho_Db->fetchAll(Object(Typecho_Db_Query), Array) #3 /usr/local/springmvc/var/Typecho/Widget.php(221): Widget_Comments_Recent->execute() #4 /usr/local/springmvc/usr/themes/pui/sidebar.php(72): Typecho_Widget::widget('Widget_Comments...') #5 /usr/local/springmvc/var/Widget/Archive.php(1937): require('/usr/local/spri...') #6 /usr/local/springmvc/usr/themes/pui/archive.php(64): Widget_Archive->need('sidebar.php') #7 /usr/local/springmvc/var/Widget/Archive.php(2022): require_once('/usr/local/spri...') #8 /usr/local/springmvc/var/Typecho/Router.php(138): Widget_Archive->render() #9 /usr/local/springmvc/index.php(25): Typecho_Router::dispatch() #10 {main}