Lesson 2: The Joy of Redundant Functionality
Welcome to Lesson 2: The Joy of Redundant Functionality. Today we will be exploring the delicate art of adding unnecessary features to an already working product. This will be a hands-on, interactive lesson where you will be tasked with creating a simple calculator that not only performs basic arithmetic operations but also includes features like a built-in weather forecast, a real-time stock market analysis, and a personalized fortune teller.
Your mission, should you choose to accept it, is to add the following features:
- A weather forecast that displays the current temperature, humidity, and wind speed in 5 major cities around the world.
- A real-time analysis of the stock market, including the Dow Jones, S&P 500, and NASDAQ.
- A personalized fortune teller that provides you with a daily horoscope based on your astrological sign.
You will be working with the following tools:
- A simple calculator that performs basic arithmetic operations.
- A weather API that provides current conditions for 5 major cities.
- A stock API that provides real-time stock market data.
- A database of astrological signs and their corresponding fortunes.
Exercise 1: Adding the Weather Forecast
Exercise 2: Adding the Stock Market Analysis
Exercise 3: Adding the Personalized Fortune Teller
Exercise 4: Combining the Features
Return to Lessons