4 ms·
I think comparing programming languages to natural languages will lead your listener down the wrong path. Programming is writing instructions for a computer. I
by travisjungroth 9y ago
I think comparing programming languages to natural languages will lead your listener down the wrong path.
Programming is writing instructions for a computer. It's just like how you program your alarm clock to go off at a certain time. But imagine if you could write instructions like, "If it's a weekday ring at 8, if it's a weekend ring at 9. If I hit snooze, ring again in 5 minutes." A programming language is a formal way of writing this down so it's easy for the computer to understand.
- thomk 9y agoIts not just for computers, it's also (usually) for other programmers; people.
- laythea 9y agoYes but then it would be for other programmers for computers. Or for other programmers for other programmers for computers. Better to say its for computers :)
- wyager 9y agoProgramming imperative languages is like giving instructions to a computer. Logic programming is like explaining your problem to a computer. Functional programming feels somewhere in between.
- nicolashahn 9y agoI'd say functional programming could be compared to constructing a mathematical expression (at least, this is what it feels like Haskell is trying to push).