Negative Feedback

August 5th, 2008

So at my work, they’re currently thinking about implementing a new feedback system so that the employees can know about everything they’ve possibly done wrong. I don’t know any developers that can possibly avoid a “you didn’t work hard enough”, or a “you didn’t code well enough comment”. There isn’t a day I go by where I don’t look back at my code and say to myself, “I could’ve coded it better”, or felt that I could’ve gotten more out of that day. This is part of a programmer’s growing process. The issue I have with implementing an impersonal feedback system is that I feel it might do more harm than good.

On the plus side is that it can highlight all the weaknesses of the programmer, but depending on how you highlight those weaknesses, it can be a boon or a detriment to the programmer. A good manager can ascertain to whether or not these “rumors” are true, where they exercise to their best judgment on feedback that would be beneficial and those that wouldn’t. They can determine what will be the ultimate result of such comments, a systematic approach won’t. There are ultimately negative feedbacks that might have a positive effect, and there are ones which won’t. An example of a good negative feedback would be “you should try better to adhere to the coding standards we’ve implemented”. An example of a bad one is “you’re ability to code clean and efficient code is questionable”, or possibly, “people in your team have said you act overly confident in everything you do”. You effectively turned a friendly supportive environment into a hostile environment, where everyone is watching out for themselves and themselves only. They keep words and thoughts to themselves, very careful of expressing the lack of knowledge in fears that someone would give them a negative feedback regarding the code, even worst, if they were quiet and kept to themselves, they’ll be slapped with a “lack of communication negative feedback”. The moral of the story is that unless you’re perfect, you’ll most likely get negative feedback, and even if you’re near perfect, you’ll still get negative feedback. This impact to the confidence in yourself, and in your environment can’t be a good thing. So before the implementation of this system, I’ll like for it to be carefully reviewed.

I believe the team lead should be assigned the responsibility of providing feedback on the programmers under him. I believe he should be more than sufficient due to the fact that the team lead is in a position where he can oversee the activities and determine whether or not these activities have had a negative, positive, or no impact on the project. Due to his experience and ability to empathize with the developers he can also determine whether or not such activities are necessary or unnecessary and then advise accordingly.

Although I’m not sure if this system would be without its faults, I do believe a system where the team lead will take charge of growing and shaping his men makes more sense than having his men grow on their own by attempting to avoid random stray bullets flying at them.

Randy Pausch

July 25th, 2008

Today, the world has lost a great teacher and programmer. I can’t help but admire him for the things he decided to do given only 6 months left to live. Instead of succumbing to pre-mortem type activities such self-pity, he decides to keep doing what he loves to do, educating young minds. It’s amazing how he displayed so much energy and life during his lectures, despite having terminal cancer. Instead of dealing with his morbid situation is a sad and depressing way, he decides to make light of it. The things he did were amazing and his words were jewels of wisdom. The world of programming, if not the world, is going to miss him.

My views on how to properly use objects in a MVC Framework

July 17th, 2008

If you are familiar with a MVC framework you can skip this paragraph. There are two components to this term “MVC framework”. First, a framework is a code-base that strongly suggests that you code using certain methodologies. Obviously, generally frameworks are designed to help the developers code faster, more object oriented, reduce code redundancy (encourage code reuse); a bunch of good stuff. There are obvious negatives to frameworks as well, which is why finding a good framework is important. Certain frameworks might be too rigid and cause very simply things to become extremely complicated. Other frameworks might be too lax such that it no longer serves a purpose of a framework. Next, MVC is an acronym for model-view-controller. It’s coding approach that separates business logic, template, and the logic which combines them into three different components. The business logic is generally in charge of generating the data the MVC application is going to employ. The view uses the data the controller passes it to generate the things you’re supposed to display on a screen. And finally, a controller is pretty much a component that mediates between the two, basically, tying in the business logic to the template in order to generate the final page. Because the code is broken down into smaller more reusable parts, and then they’re generally reused, which saves the next developer from coding the same thing from scratch.

In an MVC framework, I believe if an instance of a model is created and then passed to the view, the instance should pass from the controller to the view unmodified. One of the reasons you’d want an object passed is because objects are supposed to have a predictable behavior. I can rely on string to be accessible like an array of characters. It gets weird when I’m supposed to access a controller modified version of the string to use something that might or might not be there depending on the logic employed by the controller. So in conclusion, if you find yourself modifying an instance of the model during run-time, you’re better off not altering the instance of the model. You can simply pass the parameters directly from the controller, or define it in the view.

Facebook vs. Myspace Microsoft vs. Apple

July 6th, 2008

People wonder if Facebook will overtake Myspace. The answer is I doubt it. Facebook’s strength lies in its simplicity, whereas Myspace’s strength lies in its ability to be “personalized”. As long as the two sites maintain their course, I doubt one will overtake the other.

I originally would have made the same argument about Microsoft, Apple, and Linux, but because Microsoft is starting to lose sight of what made it Microsoft, it’s starting to lose ground to Apple and Linux. They bragged about how they had advance graphics, the problem is, Macs and Linux OSes can do the same thing with a fraction of the system requirements. Vista is overly bloated and annoying to use. I personally think that if Microsoft maintains the course they did with Vista, more and more users will contemplate switching to Macs or Linux boxes.

Yesterday Google, Today Facebook

June 26th, 2008

So yesterday, we divided into my theory of how Google work, but today, we get to see the inner workings of how Facebook serves a picture. I came across a very interesting presentation. The presentation shows what kind of technology Facebook uses, how they customize their own kernels, file systems, use CDNs (Content Distribution Network), caching, and etc to improve speed. I guess for starters I’ll have to explain how the internet works before I even get around to explaining one of the roles CDNs play.

“The internet is a bunch of interconnecting tubes”. Although this doesn’t fully do the internet justice, I can see how it might make sense to others. The internet is really a series of interconnect computers. You have thousands and thousands of computers connected to each other all across the world. The interaction between computers generally consists of interactions between a server and a client. The further the server is from the client, the more computers it’ll have to go through to arrive at the client.

A CDN is a network of computers that are generally well distributed for the region(s) it serves. These distributed computers cache or save the information that are frequently requested and act as a server for such information. What this does is that it prevents a client computer from having to wait for the data to come all the way from that super far away server. Obviously, there are other uses besides speed, such as preventing the system which generated the content from having to regenerate redundant information a second time.

So in the Facebook’s image serving system every picture gets cached at three levels, according to the lecture; once at the CDN level, once at memcache, and once by MySQL. Although later on, the lecturer says two. In this case the most important reason for caching is to prevent disk reads or MySQL requests. If the request matches something in the cache, it simply returns the information which it has stored in the memory, bypassing any disk reads or MySQL queries. If the requested information isn’t in the cache the server will then perform either a disk read or a MySQL request, which on a heavily trafficked system can the be difference between a split second or 5 seconds. In this case if the information isn’t cached the server hits the “Net APP” which I visualize as a massive central database to request the file’s location. This file location information is then used to retrieve the file requested. This file gets sent back to the user through the pipeline again, but is also sent to the cache to be cached.

Their cache system uses a most accessed last out system. What this mean is that the more the image gets accessed, the longer it stays in cache, which simply makes sense.

The lecture also goes into how they created their own file system and kernel and the reasons why the needed to create their own file system and kernel.

It was a very interest lecture, I recommend my readers to check out.

http://static.flowgram.com/p2.html#2qi3k8eicrfgkv

Google

June 25th, 2008

Ever wonder how Google spell check, related topic suggestions, or ranking works? I do.

My theory (yes theory, I doubt anyone but the two founders truly know the secret to how Google works) is that Google collects information on how user’s behave, the clicks on a link, the amount of sites pointing to a link, and etc. It uses this information to statistically guess at what the user truly wants based on data that seem to correlate with the user’s behavior.

In the case of a misspelling, instead of doing a performing some sort of Levenshtein-word-distance type check to find the best candidate for the word, Google can simply collect the data on what the user typed after his typo, and suggest that word that has been frequently typed in response to the typo.

Topic suggestions probably work the same way as misspellings, they’ll look at behavioral similarities to suggest content that you might like.

My point is that in this process, Google probably doesn’t need have a slightest idea of what’s in the content that it’s displaying on its pages.

My belief is that initially Google was probably did content parsing to figure out how to sort the content to seed their database, and after their database was well seeded, they collected user behavior and used that to rank relevance.

I came across an article that seems to back this theory of mine, so I decided to post about it today:

http://www.wired.com/science/discoveries/magazine/16-07/pb_theory

I completely disagree with the author on how we can throw the scientific method out of the window now since we have so much data, but I did appreciate the possible insight on how Google does things.

Now hosted with DownTownHost

June 19th, 2008

I just moved my server to DownTownHost. What a WORLD of difference. BlueHost = 8 cpus with an average serverload of 100. DownTownHost 8 cpus with an average serverload of .07.

Also, I applied for the 4.95 per month plan and it’s offering all the features I want and need. After the 25% discount using the code below it’s 3.71 per month. That’s even better than GoDaddy. For now, I am very happy with the service.

Anyways, if you want to check out the host yourself use this link: DownTownHost

Oh btw, use the code “happy2008″ to qualify for a 25% discount.

BlueHost = LackOfDecentHostBluesHost

June 16th, 2008

So I’ve been with BlueHost for a couple of 2-3 months now. I can say with certainty that as soon as I find a decent host, I’m moving again. I’ve monitored BlueHost for 10 days from June 2 - June 12 and the logs show that BlueHost is pretty much overloaded all the time. When I called their tech support, they gave me some lame excuse like “It’s not unusual for servers to be overloaded during peak hours for 5-10 minutes at a time in a shared hosting environment”. Since the server load coincidentally went down by the time I was done waiting for the representative to pick up, I had no choice but to wait for it to go back up before I called. Unfortunately, the minute I hung up, the server load spiked again. This is when I decided to log the server loads. The log shows that server is overloaded per on an average of 50-90% of the time. I think that is simply unacceptable. If my web page takes FOREVER to load, I no longer consider it hosted. I think it’s okay if they’re overselling, as long as they keep the load under control. I’ve heard HostGator does a decent job of this, but that doesn’t mean I’m going to switch to HostGator. I want to find an even better host. Anyways, you can take my word for it, or you can click the links to my logs of BlueHost server loads (They’re in the format of: <time>, <server load>):

June 2
June 3
June 4
June 5
June 6
June 7
June 8
June 9
June 10
June 11-12

Bluehost Review

June 2nd, 2008

This entry is about my experience with BlueHost so far, after 2 months. I can’t say I’m particularly happy with their service. I’ve experienced high server loads at 3 am in the morning, due to mysql database backup. I’ve experienced high server loads from the hours of 10 am to 3 pm due to peak usage. I’m probably going to experience high server load as well during the evening. So my question is, when can I expect there to be a normal server load? When nobody surfs the web? What’s the point of having webhosting if that’s the case?

If you don’t know what a serverload is, it’s a number that roughly represents how many CPUs the load is taking. Your server performs best when that number is less than the total number of CPUs. I’m pretty envious at my co-worker because his server load at HostGator doesn’t ever seem to exceed 5 and doesn’t seems bogged down, whereas my server load seems to exceed 8 like ALL THE TIME and is constantly laggy.

I’m writing a script that tracks the server load and displays the information graphically. I’m going to use that information to try to get BlueHost to move me to a better server. If after all that, they still don’t do anything about my server load, I’m probably going to move on to a new hosting company.

Another quote I really like

May 18th, 2008

I stumbled across this quote while traversing the web.

Insanity: doing the same thing over and over again and expecting different results. (Albert Einstein)

I love this quote because it reminds us that, sometimes, in order to solve our problems, we have to think outside the box.