No matter what you code, you will still have to purchase a domain (assuming you don't want some else's url) and you will have to pay for hosting. Hosting it yourself i.e.. Over dsl or cable is not recommended. Its high security risk and usually against the rules of your ISP which could get your connection turned off.
Since you have to pay for hosting somewhere, just find a cheap host that offers blogs built in (prices range from $50 to $200 a year.) For the domain, you will pay about $7-$10 a year. Not bad.
If you change your mind and want to go with a free site, look into
www.blogger.com