Code Review 痛并享受着

Categories: Java; Tagged with: ; @ September 12th, 2013 0:06

1. Interface

几乎所有的Class都是某些Interface的实现, 但我从来没有认真考虑过接口应该怎么用, 用到什么程度.

举例说, 有接口IDatabase, 还有具体类DefaultDatabase, Oracle, DB2…

理论上, 除了配置文件/Factory中可能会用到具体实现, 初次之外, 就不应该在任何Class中使用具体实现!

但事实上, 尤其是在不假思索, 取名叫做DefaultDataBase时,  经常会使用DefaultDataBase而不是IDatabase…

 

2. SVN

模块/文件夹 需要重构+重新命名.

由于担心SVN出现莫名其妙的问题, 所以新建了文件夹, 然后将新的文件逐步复制进去.

所有文件的历史记录将丢失.

 

3. Exception

WebService的Exception应该继续抛出, 而不是处理. 这样客户端在收到Exception后可以进行后续处理, 譬如重定向到某一个错误页面.

通过Https访问SVN Repository 403错误

Categories: 分享; Tagged with: ; @ December 12th, 2012 23:56

试图通过Https访问SVN, 输入登录信息之后, 立刻报403错误.

费解.

这台PC没有internet连接, 也不能访问或被访问任何share folder, 亦不能使用U盘等外部存储,  只开了SVN的一个access,

情急之下, 只好问Google, 发现SVN 对URL大小写敏感,  所以会有403错误.

更正URL大小就可顺畅访问…

Backup SVN repository using svnadmin dump 使用svnadmin dump备份SVN资料库

Categories: Development NotesLinux; Tagged with: ; @ June 27th, 2012 15:40

svnadmin dump ./repository/project > /home/backup/project_backup.svn.dump

manual: http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html

No context menu after TortoiseSVN installed on Win 2008 64bit

Categories: Java分享; Tagged with: ; @ March 17th, 2012 16:18

After install a 32bit Tortoise on Win2008 64bit, there are no related menu item in context menu;

You need to install 64bit Tortoise.

link: http://tortoisesvn.net/downloads

or: http://download.cnet.com/TortoiseSVN-64-bit/3000-2383_4-75211577.html

Install Subversion for Eclipse Indigo3.7/Helios3.6/Galileo3.5 Eclipse安装Subversion插件

Categories: FlexJava; Tagged with: ; @ March 17th, 2012 16:02

Subversive installation instructions

http://www.eclipse.org/subversive/documentation/gettingStarted/aboutSubversive/install.php

Update sites:

Indigo 3.7

Update Site is a part of Indigo Update Site. Look at Help > Install New Software… > select Indigo – http://download.eclipse.org/releases/indigo > Collaboration Tools

Helios 3.6

Update Site is a part of Helios Update Site. Look at Help > Install New Software… > select Helios – http://download.eclipse.org/releases/helios > Collaboration Tools

Galileo 3.5

Try: http://download.eclipse.org/releases/galileo> Collaboration Tools

Or: http://subclipse.tigris.org/update_1.6.x

 

more info: http://www.eclipse.org/subversive/downloads.php

Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.