August 27, 2011

Mercurial using BitBucket and Eclipse

If the project is already created in Eclipse, but not in mercurial repository, then:

(1) Create a repository in BitBucket.
(2) Go into shell, and clone from BitBucket which is empty.

e.g. If I have created non-mercurial project in local eclipse called "hello_world":

$ mv hello_world hello_world.bak
$ cp -r hello_world.bak hello_world
$ hg clone
http authorization required
realm: HTTP
user: BBUSER
destination directory: hello_world
no changes found
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

(3) Then move or copy those files from the local project directory into the BitBucket cloned directory.

$ cd hello_world
$ hg add
adding ....

$ hg ci -u BBUSER
$ hg push

(4) Remove hello_world project from eclipse (make sure to have a backup) and from disk.
(5) In eclipse's menu -> New -> Other -> Mercurial -> Clone Existing Mercurial Repository, then click <next> button.
(6) In next dialog, enter URL to the BitBucket repository (get this when the repository was created, or go  to the site and find out),  username/password.
(7) Click next, next, finish.

...there should be an easier way...

August 26, 2011

12 Things A Programmer Really Needs To Know

"How do you answer the question, “what do I need to learn to be a good programmer?” I have written posts trying to answer that question, typically focusing on the languages that you should learn or the algorithms and other techniques you need to know. What about the rest of a programmer’s life? This is a less serious look at the life of a programmer. So, what does a programmer really need to know?"


August 21, 2011

Selling Yourself: Why? and How!


I know many good developers who are under the impression that they either don’t have to sell themselves, or selling themselves is wrong, but is that really true?

First let me clarify by defining what I mean by “selling yourself”. I don’t mean “selling out”, I mean marketing yourself, what you’re doing and what your skills are. Especially to your organization.