This time around, we will be examining some important kinds of data structures and ways to create custom data types, a critical stepping stone in getting to understanding the Haiku API. This is the last C / C++ lesson – the rest will be C++ only. A couple more lessons and we’ll finally be ready to write GUI programs for Haiku! Enjoy! Learning to Program with Haiku, Lesson 11.
Here it is: Learning to Program with Haiku, Lesson 10. Now we’re starting to tie up loose ends before moving on to just C++. In this lesson, we learn more about pointers and kinda-sorta pointers called references, and we examine the basics of getting information from the command line. Also included are the answers to the review questions for Unit 2.
I was recently interviewed by Michael Bartholomew for his new podcast, Device Drivers, on omnes.tv. I talked about Haiku, BeOS, some of my efforts in relation to WebKit and the Haiku browser, and other topics. I think anyone who is interested in Haiku and BeOS will find it interesting:
http://www.omnes.tv/devicedrivers/episode1/
There have been quite a few comments on people being excited about when these start addressing the Haiku API, so I'm going to speed things up a bit. I originally planned on calling this week a Buy One, Get One Free week, but that won't fit now. Why? I had planned on publishing review questions after Lesson #5, but I must have forgotten to upload them, so I'm making them available along with Lessons 8 and 9 and the questions for review after Lesson 9 has been completed.
From right to left: Scott, Bruno and myself (the three Haiku stooges?) at the Hollywood Walk of Fame.
The Southern California Linux Expo – or the SCaLE show as it is also widely known – was the very first mainstream open source conference that Haiku exhibited at. This was back in February of 2007, when Michael Phipps, Axel Dorfler, Bruno G. Albuquerque and myself gathered in LA to show Haiku to the world for the first time (photos here). Following the once a year tradition that SCaLE has become since then, Bruno G. Albuquerque, Scott McCreary and myself gathered to represent Haiku at the SCaLE 2010 conference, recently held in Los Angeles on the weekend of February 20th and 21st.
On Saturday morning, the three of us gathered on the exhibit floor at around 9:00AM, one hour before the exhibition was scheduled to open to the public. This gave us plenty of time to prepare the booth, especially because we had already setup the projector screen on the backwall the evening before. We placed the HAIKU table runner over the 7 feet long table that we had at the booth, and then laid out – from left to right – Scott's AMD dual core laptop, my small cube-sized Intel dual core desktop hooked to a projector, and an 8-core laptop that belonged to Bruno's girlfriend. As handouts, we had the new Haiku flier as well as 50 alpha 1 CDs that Scott had burned on Lightscribe media.
Wow, it’s been 10 days already since I posted my first blog entry on my work on WebKit and the native web browser. Of course my continous updates to the package I posted in my first article will probably have spoiled most of the surprise, but HaikuLauncher has been reduced again into just a bare browser shell, while a new codebase, WebPositive, has been split off from it. Using WebPositive has become a whole lot more pleasing in the meantime. For those of you who have not followed the comments to the original blog, these are the things implemented since my first post on the project:
It’s hard for me to believe that I’ve been publishing these mostly-weekly lessons for almost a month and a half. It’s been really fun. I hope that those of you reading them have been enjoying reading (and hopefully learning from) them as I have in writing them. This one covers two major topics: memory management and binary math, nothing terribly exciting, but really useful and necessary nonetheless. Learn to Program With Haiku, Lesson 7.
First of all, I want to thank Haiku, Inc. for giving me the opportunity to concentrate fully for a while on the WebKit port and browser! This is an awesome chance that I intend to make full use of.
At the moment, I have mixed feelings. Not about writing blogs. Not about working on WebKit. But about using the new WebKit browser to write the blog entry, haha! I’ve seen it crash, although in the last days, it has become pretty stable. After we upgraded to a newer WebKit version as the basis for the port, the frequent random crashes have almost disappeared and I saw only one crash in three days. Compared to one every few minutes before.
Here marks the beginning of the second unit in my series, “Learning to Program With Haiku.” Lesson #6 expands on our knowledge of loops and decision-making constructs. Good luck! Learning to Program With Haiku, Lesson 6.