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.)

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 01: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 03:13 AM CST #

Post a Comment:
Comments are closed for this entry.
About

The grilled cheese sandwich of blogosphere

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today