在正式进入测试之前,进行一定的静态代码分析及code review对代码质量及系统提高是有帮助的,以上为数据证明 Pmd 它是一个基于静态规则集的Java源码分析器,它可以识别出潜在的如下问题:– 可能的bug——空的try/catch/finally/switch块。– 无用代码(Dead cod ...
分类:
其他好文 时间:
2016-12-07 20:16:32
阅读次数:
322
项目遇到这个问题,磁盘满了之后继续操作,导致表的索引错误。phpmyadmin有修复按钮,但是项目用的是windows环境下的mysqlfront软件。网上关于这个故障的修复回答,在实际操作中还是有点偏差,所以把过程记录下来。找到myisamchk.exe路径(C:\mysql5.6\MySQLServer5.6\bin)之..
分类:
数据库 时间:
2016-12-07 14:37:36
阅读次数:
223
Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list a ...
分类:
其他好文 时间:
2016-12-05 22:35:04
阅读次数:
166
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:
其他好文 时间:
2016-12-05 13:43:24
阅读次数:
156
测试跟调试不同,种类有单元测试,性能测试,集成测试,黑盒白盒测试等.通过测试的方式来指导开发 不失为一种很好的开发思想,但是实际上大部分公司都不会采用,因为成本大,这里我做个记录. javascript 单元测试: 总结:mocha 为核心: 浏览器端: 断言库: should.js chai.js ...
分类:
其他好文 时间:
2016-12-04 00:09:20
阅读次数:
192
I suppose CommandLineParser::has("something") should be true when the command line has --something in it. 打印keys的相关内容。 一个更好的例子: For example, define: S ...
分类:
其他好文 时间:
2016-12-03 18:38:07
阅读次数:
291
Functions are an important building block in Elm. In this lesson we will review stateless functions, function composition, anonymous functions, Curryi ...
分类:
其他好文 时间:
2016-12-02 19:01:34
阅读次数:
186
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2016-12-02 07:44:24
阅读次数:
213
使用Lucene索引和检索POI数据 摘要: 1、简介 关于空间数据搜索,以前写过《使用Solr进行空间搜索》这篇文章,是基于Solr的GIS数据的索引和检索。 Solr和ElasticSearch这两者都是基于Lucene实现的,两者都可以进行空间搜索(Spatial Search),在有些场景, ...
分类:
Web程序 时间:
2016-12-02 07:43:35
阅读次数:
238
题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 没事来做 ...
分类:
编程语言 时间:
2016-12-02 03:00:40
阅读次数:
210