X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0025.html-inc;h=06aca7502fd35aa8c157a1b354942766dceb4c24;hb=c59d9ab1a32a69fcdb54ab78e21e31ee26d88e7a;hp=9145c2c8074f7f51cef46a8fbf9d9b0e6c381a63;hpb=769d193e7a4b5eeebd1f248a084ae4f2495df071;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0025.html-inc b/pages/blog-0025.html-inc index 9145c2c..06aca75 100644 --- a/pages/blog-0025.html-inc +++ b/pages/blog-0025.html-inc @@ -1,6 +1,40 @@

-My milestones (itches) for gaming in Perl +Design of SDL::Rect

-

As a young sprout in spring,
the soil is moist,
and the sun bright.


But as fall comes,
with fading leaves,
my roots keep me standing. 



As a new Perl developer I am able to contribute with great enthusiasm due to the great community and the fancies of the language. However I know that these things will fade and I will need something else to take the place. Usually what has worked for me in the past was to set milestones. These will act as roots, keeping me interested in being involved. After all in words better than mines.
We all “scratch our own itches”. It’s why I started Linux, it’s why I started git, and it’s why I am still involved. --Linus

So here are my evolving milestones for Gaming in Perl:
--signed YAPGH
\ No newline at end of file +

+you say things,
+I hear,
+but don't listen,
+
+you show things,
+I see,
+but don't understand,
+
+you write things,
+I read,
+but don't know.
+

+Lately we have been working on cleaning up the XS name spaces of SDL perl. After some bumps and falls we came up with a separated Rect module. Rect is one of the most simple C struct as shown below.
+
+
+
+Using the awesome perlobject.map as a reference I was able to create a blessed perl object in XS. So now SDL::Rect->new(...) gave us a blessed reference ready to go. And as an icing it would destroy itself properly no matter where it was used. But once I brought it into our existing code base, garu pointed out the extending it was a little bit of a mess. So far to extend Rect we have to something like below. Any comment or advice would be much appreciated.
+
+
+
+
+
+Have at it I am a big boy. You can grab the code like this.
+Only If you don't already have a local git repo:
+
+
mkdir SDL
+cd SDL
+git init .

+Then do this or skip to this if you already have a local git repo
+
git pull git://github.com/kthakore/SDL_perl.git experimental
+


+

\ No newline at end of file