Divide by Null - undefined

Infinitesimals

Voicemail has its uses, for example, when one won't be able to pick up the phone for awhile, but needs to relay a message immediately, or when other forms of communication are not possible, i.e. e-mail or texting is inconvenient or irrelevant.

However, I still usually end up ignoring it, thus rendering most of the pros as moot.

(1) Oct 10, 08 - 10:18 AM

On the subject of high school friends, just because you're different, doesn't mean you can't be friends.

(0) Jun 17, 07 - 10:41 PM

Pi is wrong.

Well, actually, maybe it would just be better to use what is currently known as 2*pi. I've always thought it would be easier if sine and cosine had periods that were just pi, not 2pi.

So should pi be 6.283185...? Should pi be the ratio of the circumference of a circle to its radius, instead of diameter? If so, it would take about 50 years for this to gain any momentum in the mathematical community.

(0) Apr 20, 07 - 12:07 AM

Classes with Class and Atomic Feed

Monday, May 15, 2006 | 10:59:01 PM
Avatar

I am happy. I have reached a new height regarding PHP. I created my own PHP class.

I looked at my RSS feed creator and i thought, "Wow... what's this?" I wondered how I could clean it up and make all of my feed writers as efficient at the same time. It then dawned on me... this would be a perfect place to implement a class.

In case you didn't know, a class in object-oriented programming (OOP) is a set of variables and functions that work together to organize the code better. Java is an example of a completely OOP language. PHP is mostly procedural, but can support objects.

PHP Object support was really poor in version 4. Even when it improved, I never found use for it. I could always do the same thing without objects, but that wasn't always the most efficient. I wanted to be more efficient now, but I didn't care for it in my earlier days. I had no clue what a-do for OOP, but as I learned Java, it all began to make sense why one would use it.

Anyway, I toiled on my little AtomFeed class. I chose Atom over RSS because it seemed better. It could change with the times, as opposed to the frozen state of atom. It also seemed more structured. But anyway, I managed to create it. It's set for PHP 4. I hope to move to PHP5 and I won't mind updating the code accordingly. One has to change with the times, after all.

Then, I updated the data transfer scripts to take the info from the database and put it into the new class. When I tested (and thoroughly debugged) it, By Jove, it worked! That made me happy.

Thus, my second titular news: feeds are updated. I abandoned RSS in favor of Atom. I now only have one main feed, removing the RSS version, and I transferred the mini-entry feed to Atom. Thus, I now have a standard way to modify my scripts.

Now back to programming. Java. My AP test is in two days. I haven't read much of the book, but I know enough PHP to know enough Java. The thing about programming is one only needs to know the basics: variables, types, comparisons, arrays, and control structures. Then learn common functions. After that, each language has its own refined points, so just learn them. Of course, this is just based on my limited knowledge of Javascript, PHP, and Java. I have dabbled in C and C++ and seen that they're quite similar. This does not apply to assembly lanuages or certain novelty languages. But yeah, I should read more on Java. I just got done with polymorphism and inheritence. I have quite a few more chapters to go, but I didn't do badly on the practice exam. Doesn't mean I can't improve, of course.

On the topic of PHP, I must remind myself to implement tag deletion on my entry edit page. This is my reminder. Oh yeah... comment fixin's. (Not a possessive 's, just to clarify)

And another topic. I noticed myself using a lot of "anyways" and random digressions. I've been Catcher in the Rye'd?

3 Comments

  1. Sean Tuesday, May 16, 2006 | 12:30:51 PM

    Good luck on your AP test and congratulations on creating a class for your atom feed. I've never had to make a class before either and I don't Really know how to do it.

    I sorta feel like I have been "Catcher in the Rye'd" as well; I really did love that book.

  2. Sean Tuesday, May 16, 2006 | 12:33:08 PM

    Oh by the way I thought I would comment on one of your Infinitesimals but since I didn't know where to do that, here I am.

    I say screw the 800x600ers they need to upgrade ^_^

  3. Christine Thursday, June 22, 2006 | 9:10:13 PM

    Umm..I don't think I knew what you were saying half the time, but on the little Non Sequitur at the end: I HATED THE CATCHER IN THE RYE!!!!!! It was pretty much the stupidest (and yes, I know that's not a real word) book I've ever read. Disagree if you will; many people do, especially English teachers. They love that book. They also love that Robert Frost poem, "Stopping By Woods on a Snowy Evening" or whatever. You know what is a fabulous book, though? "A Tale of Two Cities." I abso-freaking-lutely LOVED that book! I think you either love it or hate it, just like the newest "Romeo + Juliet" movie, y'know? And to continue with my randomosity, I want to comment that "The Nightmare Before Christmas" is one of the most fabulous movies EVER!!!!! I'm listening to "Sally's Song" right now. And it's great. And...I'm done.

Commenting is closed for this entry. (Entry is over 3 months old)