DEV Community

Discussion on: 5 JavaScript core concepts you should understand

Collapse
 
rattlingshinuiba profile image
Rattlingshinuiba • Edited

Hello there. For Multi-paradigm in Javascript, shouldn't functional programming be replaced with declarative programming?

Functional one of course exists, but am I right to think it is better to contrast imperative with declarative programming?

edit: sorry! That's my fault. I just read through a article which states

functional programming is a subset of declarative programming.

Collapse
 
jasterix profile image
Jasterix • Edited

Thanks for commenting! I think it might be fun to explore what people mean by declarative or functional

Collapse
 
rattlingshinuiba profile image
Rattlingshinuiba • Edited

Thanks for replying. This article has explored the difference between imperative and declarative programming. The author also mentioned functional programming.

An idea flashes into my mind. I thought functional has something to do with to break something down to pieces with regards to programming principle. Instead, Functional is probably applied to the sense to work. It's kind of like "hey! It just works! Just don't care about details", which is a bit like declarative programming. This might sound silly, but I am not native English speaker so feel free to point out errors.