• Home
  • About
  • Archives
  • Books
  • Colophon
  • Policies
  • Resume
  • Tumblr

zanshin.net

because not enough websites start with the letter “Z”

Feed on
Posts
Comments
Tumblr
« links for 2008-08-26
links for 2008-08-27 »

Programming Language Typing

Aug 26th, 2008 by mark

The following comparison is from Dive into Python, by Mark Pilgram, Section 2.2.1:

statically typed language:

A language in which types are fixed at compile time. Most statically typed languages enforce this by requiring you to declare all variables with their datatypes before using them.  Java and C are statically typed languages.

dynamically typed language:

A language in which types are discovered at execution time; the opposite of statically typed.  VBScript and Python are dynamically typed, because they figure out what type a variable is when you first assign it a value.

strongly typed language:

A language in which types are always enforced. Java and Python are strongly typed. If you have an integer, you can’t treat it like a string without explicitly converting it.

weakly typed language:

A language in which types may be ignored; the opposite of strongly typed. VBScript is weakly typed. In VBScript you can concatenate the string ‘12′ and the integer 3 to get the string ‘123′, then treat that as the integer 123, all without any explicit conversions.

(Put here so I can find it again, quickly, in the future.)

Tags: data typing, languages, programming

Posted in nerdliness

One Response to “Programming Language Typing”

  1. on 28 Aug 2008 at 9:32 am1JJ

    Handy post, Mark. FYI: I’ve found python sits in the sweet spot (ie dynamic and strongly typed) and makes my life so much easier. In that vein, if you want to do some real apples-to-apples try python+sqlalchemy sometime (vs java+hibernate). The only downside to that potent combination is that you will thereafter grit your teeth when using hibernate.



  • Welcome!

    Mark H. Nichols is a software architect, martial artist, nerd, and all around good guy. He works at Kansas State University in Manhattan Kansas, and lives with his wife, two cats, a pair of 7-foot Kawai concert grand pianos, a violoncello, nearly a dozen computers, and a 2010 Honda Insight EX. You can read more about Mark, and this site, or explore the archives.
  • last 3 tweets

    • @feliciaday Codex? # 3 hours ago
    • @VimeoStaff Yes - multiple times and for every email address that I added trying to get confirmed. It's all working now. # 3 hours ago
    • Losing registrar peevishly not sending release email therefore we must wait for the 7-day time limit to expire before transfer occurs. #boo # 10 hours ago
  • Most Popluar

    • Using jQuery to Create iGoogle Style Drag-and-Drop
    • Installing PostgreSQL on Mac 10.6 (Snow Leopard)
    • geek. : nerdliness is next to godliness
    • Solfège
    • Using SSHFS, MacFUSE, and Macfusion to Access Remote Filesystems
    • Solfège Repertoire
    • Install Eclipse Ganymede on Ubuntu 9.04
    • Solfège Left Thumb Pain
    • Using CRON to Control TimeMachine Backups
  • Categories

    • diversions
    • elsewhere
    • family
    • health
    • life
    • links
    • meme
    • nerdliness
    • photography
    • random
    • relationships
    • social issues
  • Archives

    • Blogroll

      • Change.gov
      • Elfenbein Klaviermusik Notes
      • Shawn Blanc
      • Sibylle Kuder

zanshin.net © 1996 - 2010 All Rights Reserved.

Policies | Web Hosting: Blue Host