morfizm (morfizm) wrote,
morfizm
morfizm

Smart naming

When you're making a new programming language, be sure to do thoughtful API naming, so that doing trivial things is fun. If you like some words, make sure people will have to type them often. Like, for example, converting a date from a string to a timestamp:

import datetime
import time
>>> int(time.mktime(datetime.datetime.strptime('20120228-180823', "%Y%m%d-%H%M%S").timetuple()))
1330481303
Tags: in english, software development
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments