Paper Mario and Ruby programming

So I’m obviously not doing NaBloPoMo since I haven’t posted anything in about a week, but I do have kind of an excuse: I’ve been doing homework and saving Princess Peach, or trying to. I’ve got a calculus test tomorrow and I’ve been working like mad on my databases project, which is coming along a lot better now that I’ve got sessions working. As for Peachy, I’m replaying Paper Mario; Nintendo really needs to come out with another game in that series, because I’ve played through all three Paper Mario games and I’m desperate for more. If anyone knows of a similar game (fantasy, cute, 2D or limited 3D, jumping battles or turn-based battles), I’d love to hear about it.

My databases project hit standstills when:

  1. It wouldn’t connect to the database because it kept giving errors about being unable to connect to a local socket (our database was on a different server), but then we fixed that;
  2. When I tried implementing sessions, upon logging in the user would get a different session ID than when they went to the log in page, so of course it didn’t recognize them as being logged in and would demand they log in again… Thus repeating itself, but I got this fixed.
  3. Then, a user would log in and the session would remain the same, but the user would get redirected to the log in page anyway. I fixed that.

I don’t know what problems my partner, Tom, has encountered; those above are just issues I’ve had to deal with. We’re writing in in straight Ruby, as in without the Ruby on Rails framework, because our professor wants us to write out the actual SQL queries, which Rails does for you. It’s been interesting because all the web frontend + database backend combinations I’ve done with Ruby have been with Ruby on Rails, and so writing it with straight Ruby, CGI, and Erb has been a new experience. I’m making things as Rails-like as is practical, though, because I think that’s a very elegant framework.

This entry was posted in Class, Daily life and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>