Learn Functional Programming with Ticking Clock
PROBLEM : Build a ticking clock
CONSIDERATIONS :
1. The clock needs to display hours, minutes,seconds, and time of day in civilian time.
2. Each field must always have double digits, meaning leading zeros need to be applied to single-digit values like 1 or 2
3. The clock must also tick and change the display every second.
What is Functional Programming
-
It's a programming paradigm that emphasizes the use of functions and immutable data structures as a main building block to develop predictable, maintainable, and scalable software.
-
It considered as a DECLARATIVE programming paradigm,
Imperative vs Declarative programming
Both are a style of programming
Imperative Programming
It only concerned with HOW to achieve result with code.
Declarative Programming
A style of programming where applications are structured in a way that prioritize