programming

You are currently browsing articles tagged programming.

Code Ignitor

I am recreating my most used Google apps under the open source Code Ignitor framework. I have always stayed away from frameworks. Not because I feel they make you lazy (lazy programmer = productive programmer = happy programmer), I just don’t like having to bend my code to the way someone else thinks I should write it. I normally stay away from any library that offers more than two or three functions, but after playing with CI trying to go back to straight PHP just feels clunky.

The main nice things about making your own web apps is that:

  1. You don’t have to worry about licensing issues
  2. You can hard code in stuff such as passwords and preferences
  3. You don’t have to include everything.

That last item could use some explaining. When you create a normal web app, you need to consider everything that a user could want to do and either include or ignore it. When you are making something that you will be the only one to use, you only have to worry about the stuff that you want to do often. The little one-off cases (such as changing a password) can be done directly in source files or SQL. No sense spending an entire afternoon allowing yourself to change a password when you can do it directly from the command line, and you will only do so every couple of months.

If you are looking to escape from both proprietary web apps and being tied to a single computer (or syncing files) I would recommend that (after searching FreshMeat) you download CodeIgnitor, read the user guide, and make it yourself.

Tags: , , ,

I went to bed last night around 4 am, and woke up at 8 from Dorer the Explorer. For those not in the know, this is a cartoon for special ed kids. In the episode that was on, Dorer was trying to take a penguin (el penguino) home that spoke nothing but Spanish. Because everyone knows that penguins are Hispanic. When I told Jennifer that I was “woked up by a Mexican penguin” she told me that sounded like the title for a blog entry, and reminded me of my new year’s resolution.

My new year’s resolution is to try to post at least three blog entries a week. I don’t know how interesting they will be, as my life is pretty boring, but I will still try.

I have been playing with the CodeIgnitor framework to make a web-based PIM for myself. Code Ignitor does make development much easier, but I wish it offered code generation like Ruby On Rails does. Code Crafter is an extension that does exactly this, but I can’t get it to work. Oh well.

Tags: , , ,

Geekmonkey

I have created a small bookmarklet that allows the use of GreaseMonkey userscripts in browsers that don’t support them.

This was written for the otherwise wonderful Camino, but should work on the horrible Internet Exploiter as well. Check it out over at my Google pages account.

Tags: ,

I recently checked out a book from the local library on Python (Learning Python, 2nd Ed.) and don’t think it is a very good language. It is too loose where it shouldn’t be, and restrains you where it shouldn’t.

A good programming language should allow you to do almost anything you need, should be consistent throughout, and should allow you to use knowledge of another language as a starting point. C and derivatives, Java, and to some degree Perl and PHP all have enough similarities in syntax that it is fairly nontrivial to learn all of them once you have learned one. For my money, however, the best one to learn is JavaScript.

JavaScript is (almost) essential if you plan on doing any web development. It is designed so that you can learn bits and pieces and do functional stuff within the first half hour or so (without much case and pasting), and is scalable. It can be used for trivial tasks such as image rollovers in a web page, but scales so well that the majority of Mozilla, Firefox, Thunderbird, and pretty much any other Mozilla.org application or extension is primarily written in JavaScript. A good chunk of DreamWeaver is in JS. Not to mention a large portion of Windows (okay, that’s not such a good example, but bad apps can be written in any language).

JS is cross platform. Odds are that the browser you are using can interpret JS. Excellent quality web applications are written in it (Flickr, Google Maps, and GMail come to mind). And if you want to do something more ambitious than a web app (perhaps an app that can save files, for example) you can make a piece of Mozilla chrome (XUL Planet has an excellent tutorial) that will run on any computer that is running any Mozilla.org application.

Not to mention, of course, Apple’s Dashboard.

I long for the day that GNU releases GJSC (GNU JavaScript Compiler).

Tags: ,

On the platter today:

  • I am about to go to a doctor appointment. They are planning to steal my blood. I hate needles. Scary.
  • After that, I am going to (finally!) call about an appointment to get my wisdom teeth taken out. Not pleasant either but it needs to be done.
  • Need to turn in some library books, maybe check out some new ones.
  • Look into getting a new apartment.
  • Make an update to Textile that allows for simple URL creation (plans: "link”:[g:search terms], for instance, turns into link)
  • Work

I need a vacation.

Tags: ,

« Older entries