Tuesday, March 30, 2010

CSS: The Good And The Bad

If you didn't know by now, Cascading Style Sheet (CSS) is a very powerful tool for web design. So with any great power, comes great responsibilities. Sadly misuse and improper use of such power happens very often with beginners. So after going over some of the online tutorials and reading some of the tips and tricks of CSS, I want to share some of my findings with you, which will hopefully reduce some of the bad habits and instill some good ones.

Separate CSS from Code
First off, CSS can be use in three ways: Inline, embedded, and external. External CSS is the preferred choice because all pages in your website with similar elements can have the same style from one single CSS file. Embedded CSS is place in the head tag of the HTML file, and applies styling only to that page. Inline CSS is just like HTML styling where it's place inline with the element code. This method should be avoided because it only applies style to that one element. Inline CSS are typically used for testing.

Minimal Work
Writing less code reduces the amount of work and makes it easier to maintain. HTML should be marked up using the most appropriate tags for the content, reducing the use of "id" and "class". This in turn will minimize the amount of CSS need.

One way of minimizing CSS is to let the hierarchy do some of the work for you. Applying style to top level such as the body tag will let all content on that page inherit the styling. Another way is to group selectors that use the same style by putting them on one line using the same rule. Lastly, learning some CSS shorthand will reduce the amount of time and code needed.

Blast from the Past
Tables are the thing of the past and should not be use for design purpose. Rather than using tables, you should use div instead. If you are converting from table to div, you should know that div tag is a block-level element that defines a section, thus it should be use correctly and not overused.
Declaring font size by using pixels is still commonly used but should also be avoided because with the varieties of screen size and resolution being used today, having a fixed font size will different effects on different resolutions. Instead, try declaring font size using the em unit such as 1em or 1.5em. This practice allows easy changing of your entire site's font size by simply changing the BODY tag’s (or any other container tag’s) font-size property.

Validate your work
Last but not least, make sure you always validate your pages using both the HTML validator and the CSS validator. Using these validators will ensure you that you are following the standards.



Well, after browsing the web to find some good examples of CSS that I could use for my current project, Here are some sites that I think we all could get some ideas from:

www.ndesign-studio.com adds personality and flare while keeping it simple.


www.carbonica.org nicely incorporate images relating to the theme into the menu and links. Also divides the page into columns which I find to increase usability.


www.yellowstonepark.com contains drop-down sub menu when you hover over each main menu choice, which I feel that it makes navigating to a specific page much quicker and easier.


foxie.ru was list as a good design but after looking at the source code, I found that the site was done completely using tables, which in turns makes it a bad design. The artistic value is there but they completely threw usability and maintainability out the window.



Following these guidelines will not make you the best web designer, but will guide you down the right path....

Reference:
8 Common CSS Mistakes
How to Develop with CSS
15+ CSS Tips and Tricks
Table vs. Div

Friday, March 19, 2010

CSS: Magic of web design

Have you ever wonder how some webpages look so nice while others just look like plain text? If you said it was because it was done professionally using expensive web design software, well you're partially correct. Any novice web designer (like me) can make webpages that are presentable without the need of any special software. All we need to learn in conjunction with HTML is another markup language called CSS (Cascading Style Sheets). Currently, CSS is the most used method for styling websites and for good reasons. CSS is fairly easy to learn, works great with most browsers (minus earlier versions of Internet Explorer, but who really uses IE by choice?), and contains numerous styling functionalities. And the best part it, It doesn't cost you a penny. Here is a before and after picture of a website with and without CSS.
Without CSS:

With CSS:


There are numerous tips and tutorials online where you can learn CSS without the need of a textbook. A great beginner's tutorial for CSS can by found on w3schools.com. And if you never made a webpage before, you might want to check out their HTML tutorial before hand.

The next project that I'll be on will be involving CSS. Kelli and I will be working on George's Pinax website for UH Dorm Energy. For this project we will be creating different layouts and themes for the website to eventually find the best design for it. But like every design, we will of course keep functionality and usability in mind. As I learn more about CSS, I hope to be able to create websites that will look as stunning as the examples on CSS Zen Garden.

We're both fairly new to CSS so we'll be going through some of the online tutorials and probably look at other website designs that we think we could incorporate into the UH Dorm Energy website.

For more tips and tricks on CSS, take a look at Philip Johnson's CSS bookmarks.

Thursday, March 11, 2010

HEEP: Milestone 2

MileStone 2 is knocking at our doors and we are able to answer with 3 working gadgets. After showing our prototypes to profession Johnson, some small changes were made. All that is left is to "gadgetized" or package it into iGoogle gadgets. Luckily there is a developer tool in the Google Gadget API called Google Gadget Editor that allows user to quickly edit and host gadgets. We just had to paste our code into the "content" section and it'll package it into a gadget. So without further a due, here are our 3 deliverable gadgets.

Don't Waste Money
This Gadget displays the HEEP Rebate + Money Saved. It gives the consumer a birds eye view of how much they will earn by choosing an EnergyStar model. The savings is automatically displayed as the yearly and upfront rebate savings. This application provides users a means to view the estimated savings they will receive as a result of purchasing one of the listed top energy star related appliances. The application calculates the difference in yearly electrical consumption of the selected energy star model and an average value for similar non-energy star models. The consumption of the energy star models are determined by the manufacturer’s specifications. The amount of savings is calculated using the current kilowatt cost.




Negawatt
This Gadget displays displays the estimated amount of negawatts generated by HEEP rebates for the current year. A negawatt (negative watt ) is assumed to be one watt of power saved. Each appliance's generation and percentage is displayed in the pie chart, which allows users to see the estimated amount of negawatts generated by each of the rebate appliance categories. The amount of energy savings is also displayed as a monetary value. This estimated value is calculated using the current kilowatt cost and the estimated total amount of negawatts generated.




HCEI Goals
This Gadget displays our progress towards achieving the Hawaii Clean Energy Initiative goals of reducing energy generation by 30% and having 40% of energy generation from renewable sources by the year 2030. The visualization shows the comparison of our total energy generation and energy generation by renewable sources to projected linear data towards achieving the HCEI goals by the year 2030. The dark-colored lines are actual data and the corresponding light-colored lines are the projected data. The overlapping of these lines shows the start of the Hawaii Clean Energy Initiative and shows how our current energy generation is compared to the projected goals.



These gadgets can be found simply by searching for it on iGoogle or you can click on the direct links to each gadgets below:
Don't Waste Money
Negawatt
HCEI Goals

Our next step is to schedule a meeting with the HEEP folks to present these gadgets to them. We did not create 2 of the gadgets that they have specific because we are still unclear on how to present such data. Hopefully they will like what we have so far and we'll see if they still would want us to make the 2 gadgets that they specified. Wish us luck in our presentation.

Tuesday, March 2, 2010

HEEP: Mock-Ups to Prototypes

For the last 2 weeks now, our group have been redesigning and making new mock ups of our applications for the HEEP website. After making numerous changes, we have some good news for everyone. We are now done with the mock-ups and are moving on to making prototypes. Here are some of the prototypes that we have been working on this week:

Appliance Savings Application: Instead of making it for one type of appliance, we've decided to show a table of different types of appliances and allow the user to choose a model of the appliance with a drop-down menu. By doing it this way, we can display all the appliance in one single application. We also added in the rebate amount into the savings category to make it more enticing for the users.


Rebate Negawatt Generation: This application looks almost exactly like its mock-up. It contains a pie chart that displays the Negawatt generation from each type of appliance rebate from HEEP. One functionality that we're still working on is the tooltip pop-up that displays information about "Negawatt".


Progress Towards HCEI Goals:This visualization displays Hawaii's progress towards achieving the goals set in the HCEI. It will display current data along with projected data that acts as objectives/markers for each year's progress. we have not found out how to separate the actual data from the projected data at this time. An option that we hope to use is the "fill" option in Google visualization to have a fill for actual data and no fill for projected data. We were unsuccessful in finding any information in the Visualization API or Google search. We are hoping that someone will reply to the post we've made on the discussion group.


There is still a lot of work ahead of us in order to make these and the other prototypes deliverable for milestone 2. I will definitely keep you updated with our progress.

Tuesday, February 23, 2010

HEEP: Design iterations

This week after receiving more feedback from professor Johnson, we've made a few more changes to improve our applications. One change that was made, which affected all of our applications is the tab interface. We decided to removed the tab interface from our designs to give the web design company more freedom of implementing it on the page. Starting with the Negawatt application, we added a definition of a negawatt so users would know what a negawatt is, and we added more descriptions for the pie chart by adding in a legend. Below is a screenshot of the new negawatt application.



The next design change we've made was on the Top EnergyStar Model application. It's a small change suggested by Robert to rephrase the amount of money consumers can saved to the extra amount of money consumer will pay by NOT switching to an EnergyStar Model.



The Appliance calculator application that we've created was a good idea, but its an old idea and a version of it is already being used on the EnergyStar website. we tried to think of a way to apply it specifically to HEEP but we couldnt come up with anything so we decided to scrap that application.

A few other refinements that we've made were on the visualization applications. We decided to split the Energy Generation graph into 2 graphs to better represent what we're trying to show. The first of these graphs will show the projected energy consumption by percentage from each source and the second graph will show the energy consumption by its value from each source. We also added data for every year to make the graph look more proportional by years and an indicator line to show the beginning of the HCEI which will be used as the base value to meet HCEI's goal.



The final change we made was a small change to the Oil Consumption graph to change it to actual value rather than the difference between each year. This way it's easier for users to put large amount of oil that we're consuming into perspective.



We're hoping that after these changes, we can begin implementing prototypes for these applications. MileStone 2 is creeping up on us and we really want to have some deliverables to show the HEEP forks. Come back next week to hear the good news.

Wednesday, February 17, 2010

HEEP: Mocking up some changes

So last week, I've said I will keep you guys updated on my HEEP project. So we presented the ideas we've came up with to professor Johnson in our Thursdays meeting and the overall feedback was that it was good that we were thinking outside the box but some of the applications were a bit too complicated. Also as a developer, we should always give what the costumer ask for, such as the HEEP report card that we've replaced with the Appliance report card.

Since we were doing so much redesigning, professor Johnson advised us to make mockups of our applications rather than jumping straight into implementing it. It was a really good idea since looking at the mockups gave us a better idea of how some of the functionalities were seem be more confusing or bothersome than being useful.

So after another trip to the drawing board, These are some of the applications that we're came up with:

Negawatt Application: it displays the Negawatt generated by switching from a non-EnergyStar appliance to an energyStar. For those of you who dont know what a negawatt is, it's a term used to describe energy that was saved or not used by being energy efficient. So in our case, it was the energy from switching to an EnergyStar appliance. The pie chart will show the amount generated from each different types of appliance.


Top EnergyStar ModelsThis is a simple visualization that shows the top EnergyStar models with the energy usage difference and the amount of money saved compare to an average non-EnergyStar model. It also acts as a recommendation page for users to use when looking for a replacement.


Appliance Calculator:We simplify the calculator to make it require less user input. All that the user have to do now is select roughly how old their current fridge is and the style from the icons. Hit calculate and viola, they'll get a rough estimate of how much money their current model uses compare to new EnergyStar model. This makes the application easy enough for kids and grandmas to use.


Oil visualizations We made some slight changes to these visualization, In the energy consumption visualization, we added in the energy source of "conservation" which are negawatts or energy that we didnt use/need. These projected data goes hand and hand with the Hawaii Clean Energy Initiative goals which states that 30% of the 70% clean energy will be energy that was saved. and for the Oil Consumption visualization, we changed it from a bar graph to a line graph.









We're still brainstorming on what to design for the HEEP report card and CDD applications. These applications are seriously giving us a hard time but it was requested by HEEP themselves so we have to come up with something to show them. Hopefully with more research, we'll think of something that is to their liking. Wish us luck.

Tuesday, February 9, 2010

HEEP- reaching the first milestone in the user's shoes

Entering the 4th week of our project and reaching our first milestone, I have to say that things have not been going according to our plans. Our initial notion that we got from the meeting with HEEP was to create a gadget that would display a "report card", "oil usage", and Cooling degree days". After getting some ideas on what to implement for each of these application, we requested for the necessary data from HEEP. Unfortunately, HEEP does not have the data that we needed at this moment, so we decided to generate our own data.

After our meeting with professor Johnson, we've realized that our implementation may not be the most practical considering that we're still not exactly sure on how they want to present those information. They know that they want a gadget that will display information to their users, but it may be that they themselves are still not 100% sure of what/how they want to do it at this moment.

So it was back to the drawing board and some critical thinking. But this time, we've removed the blinders and are thinking outside the box. We put ourselves in the user's shoes and thought of information that we want to see or use. Ideas started coming out since we stopped limiting ourselves to just using visualizations to present information. Some of these Ideas include:

  • Appliance report card (rather than HEEP report card)

    • Compare top energyStar model to a cheap non-energyStar model
    • Show the amount of time it'll take to make-up the price difference from savings on electric bill
    • Show the total savings from the average lifespan of each of the appliance.

  • Appliance Calculator

    • Allow users to compare their specified energyStar model to a cheap non-energyStar model
    • Calculate the amount of time it'll take to make-up the price difference from savings on electric bill
    • Show the total savings from the average lifespan of each of the specified appliance.

  • Cooling Degree Days Calculator (Usage)

    • User enter power usage and temperature of a specific year
    • Calculate the total and percent of change in power usages per cooling degree day

  • Cooling Degree Day Calculator (Generation)

    • User enter power generated for 2 specified years and base
    • Calculates the total and percent of change in power generation per cooling degree day

  • Energy Generation (Visualization)
  • Changes in Oil Consumption (Visualization)


From a user's point of view, we think that having these useful tools (calculators) would be a great addition to the page and rather than having a report card to display HEEP's performance, it would be more useful to have a report card that displays the appliance's performance instead. All of these are still just ideas that we intend to present to HEEP in the near future. We'll see what kind of feedback we're receive from them and continue from there. But I'm hoping that they'll be happy with these designs. I'll keep you guys updated