The T-Shirt story
Looking back at the site (which still runs) and especially at the code which is full of Governor Limits, I see many rookie mistakes I made. But I had a dream, getting a t-shirt for the job interview. The job that started my career in Salesforce.com where I currently work, enjoying every single day.
Why did I build this site?
When I was working in Developer Support, customer asked me tricky questions that required few days of investigation to come with a sample code. Sometimes these questions were repeated, so I decided to save them and I created a Word document called “My Brain.doc” which I kept on a network drive. When my colleagues in support asked me for those samples I would just tell them “it’s in my brain!” That worked great when I was in support and my friends could access the network drives, but when I moved to the training department and started teaching, I needed a way for my students to access my brain, I needed a Force.com Site to store those samples.
How was this site built?
I originally started with this website on a blogspot but I decided to move it to the Force.com Sites platform because I could have greater control as how I could write it and what features to put here.
There are three sObjects involved for this Site. Article__c contains the basic information about the article including the number of views, if the article is private or posted (I have some articles in draft mode that I am working on, and I do not want them to be posted yet), a checkbox indicating if it needs rewrite (I just pasted some code together, without explaining what the sample does) and couple more fields. The information for each article is stored in a separate Sobject called Article_Part__c where I store the content of the article in a simple text (code) or rich text format (paragraphs). When I render the article, I use the information on the Article_Part_Type__c to know how to render this specific part (header1, header2, header3, paragraph, Apex code, Visualforce code).
This Force.com site uses Visualforce and Apex, obviously, but I must also give credit to other very useful tools and libraries I used:
Thanks for visiting, and I hope this site helps you learn about this awesome technology from Salesforce.com