Tuesday, March 23, 2010

On Mindsets

I'm a prof. Mine is a funny business.

In theory, profs are supposed to teach. What does that really mean? Some people think that teaching is about imparting knowledge. Others talk about teaching critical thinking.

Personally, I look at my job a little differently. I think it's about helping people (students).

I think teaching is about helping students lead better lives, helping them figure out what the heck they ought to be doing with their lives (though I often fail in this department because it sometimes takes longer than the window during which I'm teaching the students) and last but not least, to help them achieve their full potential.

This is all very general and unfortunately has little to do with CS.

Notice that I didn't say "helping students succeed" above. The reason is that it's hard to define "success". Some would equate success with wealth; others might have other view. Few would argue with "leading better lives". :-)

So now here's the problem: if I'm supposed to help my students succeed, then I better an idea about what it takes to succeed. Even a moron can tell you that nature and nurture both play a part, so a "nature vs nurture" discussion won't be helpful.

I guess I am fortunate to have met quite a few people in my life thus far, many of whom I would consider to be "successful" people. While I am not actively looking at wealth, most of them also turn out to be relatively wealthy, or I predict will soon be quite wealthy.

If people haven't seen this clip, Richard St. John's 8 secrets of success, they should. In any case, the point of this clip is that one obvious approach to understand what leads to success is to "study" successful people.

That's pretty much what I did.

More specifically, I tried to figure out the key difference between the sample set of "successful" people and the "other" folks (I hesitate to call them "unsuccessful").

What I found is that it's a zoo out there. Among the successful people, there are folks who are highly qualified and went to the top Ivy League schools. There are also some who don't have much of an education.

The one common thing that I have observed however is that they typically have what I would describe as a "winning mindset":

  1. They believe in something. Sometimes God. Sometimes other things. Mostly things bigger than themselves.

  2. They like themselves. I don't mean that they are narcissists who look in the mirror everyday thinking "I'm so smart. I'm so good looking..." Nope. These folks accept themselves for who they are, warts and all.

  3. They accept personal responsibility. Singaporeans like to blame Government, blame father, blame mother, blame anyone and everyone except themselves when things go wrong. It's always the system is wrong, because there's streaming, too focussed on grades.

    Bill Gates apparently said "life is unfair get used to it". People need to quit complaining and actively take action to improve their own lots in life.

  4. They have a Can-Do spirit. Truthfully, there are very few things that cannot be done in Singapore. More often than not, Singaporeans fail even before they start because in their infinite wisdom they have already decided it would fail in their heads --- and many a times, it's because the understanding is flawed.

  5. They seek continual growth. Success does require a certain amount of effort and hard work even for the truly gifted. Being gifted only means you put in less than the rest to get to the same place. Doesn't mean that you can put in no effort.

  6. They don't carry baggage. This is related to the first point about liking themselves. Some folks have this need to prove themselves. That's a no-no.

    Some people will say that actually, this need to "prove oneself" might help some people succeed.... well, there's some truth to this, but I think the Star Wars analogy is appropriate. These urges to "prove oneself" is a Dark Side power. Sure, some people might succeed from the apparent drive that stems from these urges, but it's likely to lead to other problems eventually like arrogance and stuff.

    Think the Force. Yoda? The little green man? We want balance. Those who have such issues please acknowledge and go deal with your baggage. Unfortunately, this is really harder than I make it sound. However, people please try.

In CS3216, I try to do achieve three goals:

1. Teach stuff. Actually, I don't really teach lah. The way we try to nail this is to design good assignments to have students teach themselves and each other. I also try to get real experts in stuff I something about but not a whole lot to give a more *authentic* perspective on what I think matters.

2. Teach thinking. This happens at the project meetings. Every project is different and basically, I try to walk through how to approach the projects as problems with the students.

3. Reinforce/Fix Mindsets. This is most ambitious, but I also think the truly important and transformative one. I mentioned this briefly earlier this evening to a group of students and someone asked, "So what's your conversion rate?"

I felt like a website for about 2 seconds and then I said,"30%?". Truthfully, I humtum one. I actually don't know for sure. Maybe I'm just generating leads?

Not everything in life that has value or meaning can be captured with a KPI/web metric. :-)

Thursday, March 11, 2010

On Wave and the Final Project

I was just reminded by my trusty Tutor, Yanjie, that I have not been setting a good example for the class because I haven't blogged for a while.

Fair enough, so I blog. :-) [May this serve as a gentle reminder to the students that while they were exempt from blogging last week because they were expected to be working on their Final Project Proposals, they are expected to resume with their weekly posts this week.]

After reading some of the feedback from the midterm survey, perhaps I can take the opportunity to explain again why students are asked to blog: (i) because it "forces" reflection, which will help in learning (causes pain because learning takes effort); (ii) it helps many students improve their writing skills (yes, writing can be improved simply by writing more); and (iii) it helps me figure out what students are learning or are not learning.

Students who don't think blogging is of value to them or who have no time to blog, don't have to blog. Maybe they will take a minor penalty in the final grades for the class, but in the grand scheme of things, it probably doesn't matter. Students should just have the guts to do stuff they wanna do and find value in doing. :-)

Just one perspective to consider: suppose you decide not to blog because you don't like to write (which typically suggests that you don't write very well) then you have basically given up an opportunity to practice and improve your writing. Just think about who is paying the tuition. :-)

Anyhow, just did my first video conferencing lecture on Monday, "live" from Sydney! I thought the audio quality (barring a short period of static) was pretty good. The visuals however probably weren't too great.

I shan't go into too much detail about the talk, since the students are likely to say more. I would like to highlight three key points.

One, the Google Wave Active Robot API is really quite intriguing. Why? Because why Waves were in the past confined within the browser, the Active Robot API allows robots outside the browser to interact with Waves which are these logical conversations "somewhere in the cloud".

It seems to me that some interesting things can be done with Robots now (though I'm not entirely sure what) and I would like to encourage students to think of Waves not so much as this page in the browser but as "conversation objects". The Wave is really some abstract object and not just a browser-thing. Students should spend more time thinking through and try to understand what a Wave is.

Two, the principles of Wave-y extensions are pretty interesting and might perhaps be applicable to user interface and interaction design at large, instead of just Waves. Two key points raised: don't modify stuff by removing/reformatting the text. If you need to modify stuff, give users the choice. :-P

Three, lag is a huge problem for Wave at this point. That said, I believe that when the lag gets engineered away, there will indeed be some things that can be done better in Wave than in other media. One function that seems to be missing in Wave at the moment is search. There's a search facility to search in the Waves, but what I mean is that each Wave should have a in-page search facility to search within a Wave when the Wave gets long. Otherwise how to find stuff?

Hmm, just realized that maybe a Wave robot can do exactly that -- which in a way highlights an important feature of Wave over something like Gmail, it's pretty easy to extend. :-)

Alright, so much for Waves, some words of advice on the Final Projects since this week is the week where I meet with the various groups to do sanity checks:

Please do something you really believe in. I'm proud to say that after two years of CS3216, I've finally "figured it out" and I finally have the confidence to say that "students can do anything they want" (and still be reasonably sure that things will turn out okay). This is the chance for you to do something that you've always wanted to do but never found the time to do. This is the chance for you to do more than just another class project. This is the chance to work with perhaps the most motivated and talented students NUS has to offer on something that can make a difference. I think it would be criminal to settle for anything less.

Think Big, Take Small Incremental Bites. It's good to have a vision, but it also important to be grounded in reality. You have to learn to phase the implementation of the problem into small bit-sized chunks and nail them one at a time instead of trying to swallow the whole thing and choke. To do well for the Final Project, it's not about doing A LOT A LOT of work. Small projects, executed well can also find phenomenal success. However, it requires students to do a significantly larger amount of thinking than other class projects where the perimeters are much more clearly defined. Depending on the nature of the project, the considerations are different. Understand the problem; focus your energies on what matters most.

Deploy Early. The merits of deploying a working prototype early (within the next two weeks) cannot be overstated. In addition to being able to gather valuable user feedback early, it improves morale significantly and will allow students to avoid running into conflicts with the projects from other classes.

Have Fun! There are few things you will remember about school in a couple of years after you finish school. Believe it or not, many of you will remember the nights you spend with your friends in COM1. Remember you only live once. :-)

Monday, February 8, 2010

Making Connections

We had a number of folks from Government organizations and the industry come down to pitch ideas for the Final Project to the students today.

My friend, Dawn, was very kind and complimented me for saying some things after each presentation to try to "make the connections", to which I replied, but that's all very natural isn't it? Learning is all about making connections what.

I didn't think too of it because it was almost an instinct, but then thinking about it a little harder -- maybe it isn't really obvious (by the way, there's actually a term for the stuff I did. Those are called "earn my pay" moments). Hold that thought.

Then I recalled another conversation I had with another colleague about a week ago. This colleague argued that the current student feedback system and ratings were "unfair" because it is plausible that you might have a good prof, who does "the right things" to help students learn, but the students dun appreciate and he gets whacked.

Before people make an assumptions that this colleague of mine is getting low teaching ratings, let me just clarify that this colleague has phenomenally high ratings -- therefore, he is saying this without prejudice.

My view (and I think this view is shared by Yanjie) is that contrary to popular belief, students actually do know whether teaching is effective. If indeed a prof is doing the "right thing", then it is also his responsibility to explain to the students why he's doing the right thing.

Back to my original point - the point I want to make about learning is that it's not about accumulating information or data, it's about making connections.

It would be nice if students can make the connections by themselves. However, given that students don't have all that much experience and are not typically mind-readers, it is often helpful for the profs to help make those connections.

I shall illustrate this principle with the Final Project pitching session we had this evening.

Random people coming to talk about random stuff. At first sight, it may all seem very random -- but it's not.

Well, CS3216 is organized into two segments: "Ideas + Skills" followed by "Execution".

The pitching session we had this evening contributes to the ideas part of the equation.

Obviously, the quality of the pitches were not equally good, but students should always pay attention to learn what's good and also learn what not to do.

Some of the folks who came didn't have a clear idea of what they wanted to do -- but that's very normal. The following is an except of a GChat conversation with Kay Hong:
me: what do you think of tonight's session? interesting?
Tay: yup but i think some companies weren't specific with what they wanted
not sure if that's a good or bad thing
me: normal
everyone wants to get on the boat
but they dun understand the boat
dun understand where they want to go
but they think the boat's cool anyway .... and they are probably right in many cases
:-)
It's true that Facebook is old news -- and that Facebook is probably going public soon. But it's also true that there are many people out there who are still trying to figure out how to exploit social networks to improve their business.

Personally, I believe that there's still significant potential for many businesses to exploit social networks. The viral nature of human relationships (think gossip) cannot be understated.

Is it easy therefore? Hell no. :-)

While opportunity is all around us, it takes effort to learn how to recognize and exploit them.

We'd follow up on this theme of "ideas" in a couple of weeks at a Pitching Party where the students will pitch to each other and former students will be invited back to share well.

For skills, we had the first FB assignment and the Google Wave assignment to get students up-to-speed in a hurry on their technical skills.

The FB app seminar we had last week is a combination of both ideas and skills. On one hand, the students are expected to think about existing apps to understand why they work (or FAIL); on the other hand, they get to learn some presentation and writing skills. Both of which will be helpful to them in the *real* world.

There will also be two more case studies coming up where students will be forced to think about user interaction (not just interface) design and also about team dynamics. These are not like technical skills, but soft skills that will help them execute their Final Project better.

"Execution" = Final Project. That's all.

But execution is perhaps the most important thing that I hope students learn. Ideas are cheap. Execution is what makes people rich (or helps them save/conquer (pick one) the world).

Since I'm blogging about today's pitching session before any of the students (lead by example), it might be helpful for me to provide a suggestion on what to blog about the session since the session might seem kinda random to some students (though students are free to do their own thing and surprise me -- just no gambling and no porn thank you).

Well, I'm really interested in (student) learning. I would be quite happy to hear from each student the (i) three things that they learnt today, (ii) why they think the three things are the most important among all the things they learnt today (hopefully there are more than three) and (iii) how they will APPLY these three things to their lives/final project/job moving forward. Simple? :-P

Sunday, February 7, 2010

The Answer is Yes

It's been a really busy week for everyone.

While the students were busy blogging about the Facebook Application Seminar, I have been busy working with Kok Wee and the Tutors on the grading of the FB assignment and also in preparing the Google Wave assignment.

I haven't had the chance to read through all the FB Application critiques quite as thoroughly as I would have liked, but I will re-read all of them over the next two weeks while I'm away in Bangkok.

Teaching CS3216 really keeps me on my toes because every batch is different.

Traditionally (i.e. for the last two batches), the 70% milestone points are like giveaways because every group will fastidiously ensure that they were satisfied. This year it's quite a mess and I decided to something never done before: get students to re-submit.

The nice thing about CS3216 is that it's a class I created and so I pretty much make the rules. More importantly, I get to change the rules along the way to adapt to surprises. I've never been a fan of dogma but it's not like I do stuff at whim and fancy either.

Why resubmission?

Reason is very simple: I have no intention of assessing students based on the three assignments: (i) FB assignment; (ii) FB app seminar and (iii) Google Wave assignment. These assignments are structured in so a way that students will LEARN stuff. As long as people learn, the objective is satisfied. The grades awarded are supposed to "punish" the idle ones who don't put in effort.

Most groups have put in A LOT of effort into the assignment and convinced me that they learnt something and so I felt that it would not be fair to punish them just because they were not kiasi and kiasu enough to get every single milestone point. Scoring for the milestone points is not function of intellect, it's merely a demonstration of diligence.

My hope is that everyone will finish the first three assignments reasonably well and all get reasonably high scores. The students will be assessed for CS3216 mainly on the Final Project.

I must say that I am very pleased with the FB application seminar this year. After three iterations, we've finally gotten it right (I have to admit that we really do it quite right the last two times). The presentations were nice and succinct and the critiques and ensuing discussions were good. Apparently students have been forced to think.

I tell my students that it's really fun being a prof -- because we get to do what we believe in. And it is in this spirit that CS3216 is conducted.

Henry asked if his group can do a Chrome plugin instead of the Google Wave assignment, the answer is yes.

Yecheng asked if he can swap the order of the Final Project and Google Wave assignment, i.e. do Final Project first. The answer is yes again (provided his GW and Final Project groups are the same).

Why not? :-)

Not that I'm a fan of Yes Man (starring Jim Carrey), but I think there's a cultural problem in our society where people ask too much for permission, rather than forgiveness. My policy for CS3216 is that pretty much anything reasonable and that complies with the high-level goals of CS3216 is possible - ask and ye shall receive.

If I should reject a request, it would be my responsibility to EXPLAIN why not. :-P

To conclude, learning is hard. And it is my belief that we are our own best teachers. So the whole structure of CS3216 is not so much in me trying to teach students stuff, but in me trying to encourage students to learn stuff on their own. When I see a post like this, it encourages me that I might just have done something right.

CS3216 doesn't seek so much to teach as to light a fire -- to convince students that they can do more than they thought they could do (before they took the class).

Yes, it's painful lah, but as they say "no pain, no gain". The reason why CS3216 works is that there's shared suffering. When you're suffering alone trying to decipher some obscure piece of code, you start asking yourself if you're an idiot. When you're sitting in COM1 with a dozen other students, it becomes an experience. Such are the mysteries of life. :-)

I would like to wish all students a very Happy Lunar New Year. While I will not be physically around to give angbaos, those who have not already gotten my comments on your FB app critiques can look forward to CNY "good luck" comments that you will be expected to respond to.

P.S. I was "supposed" to write about the FB app seminar this week, but I decide I would read through all the critiques once more in more detail first. Akan datang.

Tuesday, January 26, 2010

On Cloud Computing

While I typically blog AFTER the students have blogged, I felt pretty inspired today and I thought I would pen down my thoughts before I forget them.

I would like to thank Simone Brunozzi from Amazon for taking time to come talk to the class about Amazon Web Services (AWS) and Cloud Computing in general.

The reason why we are deploying the class assignments on AWS and why I invited Simone to give a talk to the class is because I believe that cloud computing is future (and Amazon didn't pay me to say this). I'm saying this not because the technology is cool, but because it makes business.

Simple reason: it's annoying (and expensive) run a data center. :-P

I must admit that while I have a reasonably good idea of how the technology works 'cos my area of research is networking and distributed systems, I had never used a cloud computing service before until this semester.

I believe that it would be helpful for the students to understand how it works, because while many aspects are the same as traditional servers, there are also key differences. For example, persistent storage is something that requires a little more understanding and thought, i.e. should we put the data in S3, EBS or MySQL?

While students are expected to work mainly with EC2, I hope that the students will also use the opportunity (and free credits) to explore the other AWS services that Simone mentioned.

I'm not going to talk about the technical content of the talk since that's for the students to talk about and discuss. There are three things that I would like to highlight.

One, the conversion to cloud computing will not likely be an easy one. The reason is that people don't necessarily change just because something is better. Small companies probably don't need the full capabilities of the cloud; large companies are resistant to change.

The resistance is more often than not a human rather than a technical issue. Basically, change is scary because things can go wrong. Middle management in Asia is typically conservative.

This is the question: suppose they convince their boss to switch over to cloud computing and their company saves a lot of money, will they get a bigger paycheck? Suppose something goes wrong in the process - who's going to take responsibility?

The lesson here is that it's not enough to big something bigger and better. You've gotta convince the sucker to buy it. :-)

Next, I really really pleased by how Simone answered some of the questions. Basically, to almost all the questions of "how do we do it?", his answer was "it depends".

This underscores the importance of being flexible and understanding that life is complicated and that there are often different answers to the same question "what is the best way to make data persistent on AWS?" under different situations. In a nutshell, context matters.

Finally, I was very impressed by Simone's story about him advising the customer who had 200 EC2 instances to run his own distributed file system instead of using S3 or EBS (which would cost the customer more and increase AWS's profits).

This underscores the importance of integrity in doing business.

Many of my students will probably eventually end up starting their own businesses.

My wife does not have very many good things to say about the sorts of people she has come across in the corporate world. She said that integrity is severely lacking.

I hope that however that my students will learn from Simone's example and "do the right thing". Don't screw the customer to make a quick buck. Create value and build real businesses. :-)

Tuesday, January 19, 2010

The Paradox of Simplicity

CS3216 evolves over time.

We have had a lecture on "Principles of Software Engineering" since the first year.

The first year, it was guest lecture by Prof Stan Jarzabek. It was a good lecture -- but the non-programmers complained that it was too technical and they were completely lost.

Last year, Prof Stan was busy and so I did an abbreviated version of the lecture followed by a sharing session by three students, Zi Han, Wei Man and Justin. The sharing session was quite well-received but there were still complaints that the lecture was too technical.

So when it came to this year, I thought about what we should do and decided to keep the sharing session but do the lecture differently. Thanks Zi Han, Wei Man and Justin for coming down yesterday to do the sharing session.

What I had come to realize was that it's not very meaningful to cover the principles of software engineering that students are not likely to relate to in CS3216.

Software engineering is a complicated process and mostly relates to big systems. In CS3216, the focus is more on ideas and ideas, and while it would be preferable if students produce world-class and easily maintainable code, we have to be realistic about what can be accomplished in 13 weeks.

In this light, I decided to simplify and to focus on what is most likely relevant to the students here and now. I decided that it is important to talk about stuff that the students can relate to immediately even in their first assignment.

The simplification is evident on the number of principles we discussed in the lectures. Two years ago, there were six principles; last year, there were five; this year, I only talked about three of them. So much for dumbing down.

Some students seem to think that the stuff I mentioned: (i) modularity, (ii) abstraction and (iii) design for change are quite straightforward -- and they are right. It's mostly common sense actually.

The irony of life however is that many things are pretty simple and straightforward. Strangely enough, people often fail to do what is simple and straightforward.

For example, the following lecture on Time Management by Randy Pausch says pretty obvious things:

How many people can actually do it? Personally, I can't even manage some of those things.

In this sad state of affairs however is opportunity. Basically, this suggests that many people already know how to significantly improve their lives --- they just have to DO IT. :-)

Truthfully, one of the reasons why the lecture was the way it was is because of what I'd heard about how some of the groups are doing -- some groups were struggling to distribute the work, some groups didn't know how to start and others didn't know what to do with the non-programmers. It's a learning process for everyone. :-)

Sleep matters. Finally, I'm not always serious about everything I said in class. While it is true that people can do a lot more things if they don't sleep, I am not advocating that students should deprive themselves of sleep.

In fact, research has shown, and as Li Yen has kindly highlighted, sleep deprivation hurts performance.

In fact, it's more than just sleep. Some amount of balance and moderation is necessary for life in general. Many people focus exclusively on their careers to the detriment of the other parts of their lives (family, health, friends, etc.).

While I don't believe in well-roundedness and advocate focussing on developing one's strengths, I do believe that some amount of balance is necessary in leading our lives.

Our lives are pretty short. I should know. I actually feel quite old already. :-)

Wednesday, January 13, 2010

On Success

Further on the question of success, I chanced upon the following Anthony Robbins video. Title says "Wealth Mastery" but Anthony Robbins deals with the issue of what it means to be successful and why some folks are outwardly successful, but extremely unhappy.



We were talking about failure and celebrating failure. The following is a cool story about failure and more failure and even more failure ... and then success: