Why do so many namespaces start with com

Why we keep seeing namespaces such as com.Apple or org.clojure

  1. Why do so many namespaces start with com
  2. Reverse domain notaion (Wiki)
  3. Naming a Package by Oracle

This is to maintain uniqueness among namespaces such as described by Oracle.

Companies use their reversed Internet domain name to begin their package names—for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.

Name collisions that occur within a single company need to be handled by convention within that company, perhaps by including the region or the project name after the company name (for example, com.example.region.mypackage).

Packages in the Java language itself begin with java. or javax.

Convert Ruby 1.8 to 1.9 hash syntax

thoughtbot:

In vim, for an entire file:

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g

In the shell, for an entire project:

perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb

Now, instead of those old-school hashes like this:

get '/', :agent => MOBILE_BROWSERS do

You’ll have new-school hashes like this:

get '/', agent: MOBILE_BROWSERS do

How developers, designers, project managers, QAs and sysadmins see each other

How developers, designers, project managers, QAs and sysadmins see each other

Amateurs hack systems, professionals hack people. — Bruce Schneier (via redteams)

How to charge your clients?

If you’re a web developer, content writer, graphic designer or anything related to freelancing this question always pops out.

You could:

  • Charge per hour basis
  • Charge flat fee

There’s no way to say which is right or which is wrong. A little bit experimentation is the way to test demands in your market. What is right in US might not work in Asia or vice versa.

Here are some resources I find helpful.

Update (Sep 5th):

Another good article regarding software price: