An interesting interview question
Mar. 26th, 2012 03:48 pmThis morning in the shower I came up with this question for interviewing a web developer: "How many ways can you come up with, to draw a circle in a web browser?"
Here's my list:
Here's my list:
- Declare a canvas element and draw a circle on it using JavaScript.
- Construct one artificially in HTML from scaled table segments.
- Use inline SVG code to describe a circle inside a div.
- Embed an object - Java, Flash, video, etc - and draw a circle using that.
- Print a unicode character of a circle, really really large.
- Reference an image of a circle, in HTML or in an associated stylesheet.