网站综合信息 psmay.com
    • 标题:
    • Peter S. May: human being, aspiring po 
    • 关键字:
    •  
    • 描述:
    • Human Being, Aspiring Polymath 
    • 域名信息
    • 域名年龄:18年6个月21天  注册日期:2006年08月10日  到期时间:2015年08月10日
      注册商:GODADDY.COM, LLC 
    • 服务器空间
    • IP:69.163.167.66 同IP网站9个 详情
      地址:美国 加利福尼亚州布瑞亚市DreamHost公司
    • 备案信息
    • 备案号: 
    网站收录SEO数据
    • 搜索引擎
    • 收录量
    • 反向链接
    • 其他
    • 百度
    • 1  
    • 35  
    • 快照:2010-11-13  
    • Google
    • 16  
    • 0  
    • pr:0  
    • 雅虎
    • 0  
    •  
    •  
    • 搜搜
    • 0  
    •  
    •  
    • 搜狗
    • 0  
    •  
    • 评级:0/10  
    • 360搜索
    • 0  
    •  
    •  
    域名流量Alexa排名
    •  
    • 一周平均
    • 一个月平均
    • 三个月平均
    • Alexa全球排名
    • -  
    • 平均日IP
    • 日总PV
    • 人均PV(PV/IP比例)
    • 反向链接
    • dmoz目录收录
    • -  
    • 流量走势图
    域名注册Whois信息

    psmay.com

    域名年龄: 18年6个月21天
    注册时间: 2006-08-10
    到期时间: 2015-08-10
    注 册 商: GODADDY.COM, LLC

    获取时间: 2013年12月21日 16:27:46
    Domain Name: PSMAY.COM
    Registrar: GODADDY.COM, LLC
    Whois Server: whois.godaddy.com
    Referral URL: http://registrar.godaddy.com
    Name Server: NS1.DREAMHOST.COM
    Name Server: NS2.DREAMHOST.COM
    Name Server: NS3.DREAMHOST.COM
    Status: clientDeleteProhibited
    Status: clientRenewProhibited
    Status: clientTransferProhibited
    Status: clientUpdateProhibited
    Updated Date: 2013-05-14
    Creation Date: 2006-08-10
    Expiration Date: 2015-08-10

    >>> Last update of whois database: Sat, 2013-Dec-21 08:27:46 UTC <<<

    Domain Name: PSMAY.COM
    Registrar URL: http://www.godaddy.com
    Registrant Name: P. May
    Registrant Organization:
    Name Server: NS1.DREAMHOST.COM
    Name Server: NS2.DREAMHOST.COM
    Name Server: NS3.DREAMHOST.COM
    DNSSEC: unsigned

    For complete domain details go to:
    http://who.godaddy.com/whoischeck.aspx?domain=PSMAY.COM
    其他后缀域名
    • 顶级域名
    • 相关信息
    网站首页快照(纯文字版)
    抓取时间:2012年09月19日 04:07:08
    网址:http://psmay.com/
    标题:Peter S. May: human being, aspiring polymath - psmay.com
    关键字:
    描述:Human Being, Aspiring Polymath
    主体:
    —psmay.com
    Human Being, Aspiring Polymath
    HomeContactPublic Key NotaryWish ListProjectsBack BurnerAnalog PWMCNC machineMicrocontroller breadboard utility headerParanoid Password BuddySuper BoxTrickyEnglish
    Type Safety and the Explicit Cast
    2012 August 24Concept
    Leave a Comment
    I think statically typed programming languages are great. Why? Because in just about every dynamically typed language I’ve ever used in earnest—JavaScript, for example—at some point I’ve had to write a lot of code to verify that a value looks like a certain type (one often can’t get a full guarantee) in order to make assertions about the theoretical correctness and consistency of a program. Is that a string? An array? A number? I can’t tell you until I’ve looked. For better or worse, JavaScript will allow absolutely anything (or nothing at all!) as a parameter. Sure, it’s a simple way to implement polymorphic functions without a whole lot of fuss…at first. But most functions I write are intended to work on a set of values that is much, much smaller than the set of values it is not designed to work on.
    At a medium-to-high level, this is a non-issue with static typing. I specify a function to operate on values of specific types, and the program won’t even compile if someone tries to pass something different.
    Apologists for dynamic languages have pointed to the verbosity and inflexibility of having to specify the type of every single thing, but advances such as type inferencedetermining the type of something based on how it is usedand type-safe genericsfunctions and objects that can operate on arguments of arbitrary types if those types fit general criteriahave made it easier for programmers to convey all of the intended meaning without sacrificing too much flexibility or writing too many more words than necessary.
    Another important point to consider is the failure mode of a program that isn’t written correctly. Inconsistencies in the use of values and types tends to be a compile-time error for static languages; they are caught before the program is even run. In a dynamic language like JavaScript, no static types are enforced per se, but using a value as if it is something it’s not can result in a run-time error in the best case[1] and instead often “succeeds”, producing unexpected results [2].
    Of course, I don’t like the bits of the static languages that continue to allow type-unsafe behavior. In my opinion, the major violators are:
    Static casts, such as Java/C# String s = (String)o for some Object o
    Instance-of as a boolean operator (more of an accomplice than a criminal)
    Inheritance-based polymorphism used in place of tagged unions
    Null being an allowed (and often non-disallowable) value for any reference type
    Starting with the last one: It really seems strange to me that we automatically allow null to be passed as an object, even if it is an artifact of C (a reference being implemented as a

    © 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询

    2025-02-22 04:55, Process in 0.0041 second.