The Downtown Diner

    melanie 
All | Before You Come to China | Golden Rules for Program Managers | Life in China | Work in China
 
Browsing OpenSolaris Source Code: Surprisingly Entertaining!

It's all about the comments - they're really interesting! Do you ever pick up some random autobiography at the bookstore and flip right to the section in the middle where you see pictures from that person's life? It's kind of like that....

For any non-geeks out there, when an engineer writes code they can sprinkle in 'comments' that are tagged with "/*" signs, and on the OpenSolaris website they're colored in light grey. When they're done commenting they close the comment with "*/".

I like the comments because they tell you what a particular piece of code is doing, kind of translate all the code bric-a-brac into something a human can understand. Then if I squint my eyes and look at the code bric-a-brac I think, "Yeah, now I kind of see how it's doing that..."

I also like them because they're often very funny. Sometimes you can see the programmer's personal style in the comments and sense a little bit of the person behind the technology.

If you want to browse kernel code and comments you can look here:
http://cvs.opensolaris.org/source/xref/on/usr/src/
(Again for any non-geeks out there - the kernel is kind of like the brain of Solaris.)

If you want to browse the desktop code and comments you can look here:
http://cvs.opensolaris.org/source/xref/jds/
(The desktop is kind of like the face of Solaris.)

Posted by melinchina @ 12:02 PM CST [ Comments [2] ]
 
 
 
 
Comments:

Check out what I wrote about a year ago. As you know, I am a geek-wanna-be. So I openly admit it. It is very entertaining. Yes, I have a life. Whoever is wondering. Let's see, Trusted Extension code. Yummy.

Posted by Sin-Yaw Wang on June 29, 2006 at 08:51 AM CST #

So you are browsing source code for fun now - that's pretty geeky :) Just completed two very hard but very fun weeks in my internship.

Posted by Shubho on July 01, 2006 at 10:13 AM CST #

Post a Comment:

Comments are closed for this entry.

[RSS Newsfeed]

Blogs I like and why I like them:

Linda Skrocki, Because of "Why is this Necessary?"

Mountain Girl, Get a breath of fresh mountain air

Pam Kong's Non-Stick World, She sees significance and humor in everyday things

I18n G.A.L. Andrea Vine, Like a 3-minute vacation to England

Rob Sohigian, Good pictures of everyday life in China

Sin-Yaw Wang, He writes stuff about China that even most Chinese people don't know

Vasanth Vaidyanathan, Great links!

Eric Kozlowski, learn how we keep Solaris quality rock-solid

ThinGuy, he's hysterical AND he cooks!

Sue Weber, Nice blend of work and life

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.
Theme by Rowell Sotto.
 
© The Downtown Diner