首页 | Linux | 论坛 | 精华 | 博客 | 资料 | 手册 | 知识库 | 下载 | 人才 | 沙龙 | 搜索 | 登录 | 注册  
下载分类
操作系统
系统相关
网络互连
开发工具
应用程序
多媒体工具
游戏娱乐
资料视频
本类周下载TOP10
本类总下载TOP10
您的位置:自由软件库->开发工具->库文件->common sense

首字母搜索 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


软件名称: common sense
授权方式: GPL
操作系统: Linux,FreeBSD
软件大小: 13K
最新更新: 2012-07-09 20:59:16
软件简介:

save a tree AND a kitten, use common::sense!
This module implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders. In fact, after working out details on which warnings and strict modes to enable and make fatal, we found that we (and our code written so far, and others) fully agree on every option, even though we never used warnings before, so it seems this module indeed reflects a "common" sense among some long-time Perl coders.

The basic philosophy behind the choices made in common::sense can be summarised as: "enforcing strict policies to catch as many bugs as possible, while at the same time, not limiting the expressive power available to the programmer".

Two typical examples of how this philosophy is applied in practise is the handling of uninitialised and malloc warnings:

uninitialised
undef is a well-defined feature of perl, and enabling warnings for using it rarely catches any bugs, but considerably limits you in what you can do, so uninitialised warnings are disabled.

malloc
Freeing something twice on the C level is a serious bug, usually causing memory corruption. It often leads to side effects much later in the program and there are no advantages to not reporting this, so malloc warnings are fatal by default.

Unfortunately, there is no fine-grained warning control in perl, so often whole groups of useful warnings had to be excluded because of a single useless warning (for example, perl puts an arbitrary limit on the length of text you can match with some regexes before emitting a warning, making the whole regexp category useless).

What follows is a more thorough discussion of what this module does, and why it does it, and what the advantages (and disadvantages) of this approach are.


"HTTPS Everywhere is an initiative by the Electronic Frontier Foundation that boosts the security of Firefox with a clever plugin that will automatically encrypt your communications with a number of web services that support HTTPS. This provides an automated way to move users from the insecure HTTP protocol, which is the default for many web sites (like Google and Facebook), even though they may also support HTTPS.

"I personally applaud the initiative on a technical level, and if I was a Firefox user, I would install the extension in a heart beat. But, on a fundamental level, the extension will fail to make any real improvement in the security of the web for one simple reason – users are the biggest weakness in any security system, and there is no patch for users."

 

相关论坛: 下载频道交流区 讨论区
立即下载

common-sense-1.0.tar.gz
common-sense-2.0.tar.gz
common-sense-2.01.tar.gz
common-sense-2.02.tar.gz
common-sense-3.0.tar.gz
common-sense-3.4.tar.gz
common-sense-3.5.tar.gz
common-sense-3.6.tar.gz

 Linux最新资讯更多>> 
·Evernote推进入华节奏:
·桌面操作系统 4 月最新
·Linux基金会:Linux成B
·中国联通升级HSPA+网络
·联通“随意打”论战:绝
·阿里巴巴集团30亿美元贷
·要以扫黄打非的精神进行
·内核源码,ARM架构上的
·Ubuntu 10.04版本企业云
·企业级Linux三国鼎立 与
·开源图像软件GIMP开发者
·不给Source就捣蛋?谈G
 IT最新资讯更多>> 
·大连外企500强急招java
·(内部推荐)EMC-Princ
·(内部推荐)EMC-greenpl
·页游公司招聘:运维开发
·赶集移动部门招聘前端开
·【北京】知名软件公司招
·有莫有C++ and C# and
·下班路上捡到一张工资表
·猎头代招:北京大型上市
·DSI猎头代招:华为-IP部
·上海诚聘JAVA工程师
·微软和苹果10大失败产品
·Darl McBride离开领导岗
·提升Qt的应用诺基亚即将
 综合:更多>> 
·PHP中strtotime函数使用
·五个常见 PHP数据库问题
·初探PHP单元测试利器:
·PHP开发人员容易忽略的
·逃离伪PHP程序员应该做
·大型Web应用运行时 PHP
·PHP企业级应用缓存技术
·PHP应用提速面面观
·用书签查询网站pr值
·PHP句法规则详解
·阴历-农历-转换类
·PHP定时执行任务的实现
·几种有用的变型 PHP中循
·PHP如何修改Linux或Uni
·PHP中全面阻止SQL注入式
·分享几个非常有用的PHP
·PHP面向对象法则
·优化PHP程序的方法
·orcale queue
·谁可以推荐几本经典的操
关于我们 | 联系方式 | 广告合作 | 诚聘英才 | 网站地图 | 友情链接 | 免费注册

Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们

京ICP证041476号