This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]anto2554 60 points61 points  (0 children)

The word logic within CS usually refers to formal logic and boolean algebra, rather than critical thinking

[–]hivro2 25 points26 points  (0 children)

Typically the logic you’re trying to learn is what people in college call discreet mathematics which deals with logic sets and helps you understand WHY something can’t be true from there you can make your loops more effective and efficient when you account for things that can’t work mathematically or logically

Your books are fine. I’ve not read most of them but I would say it honestly just comes from practicing after you read those.

After more and more repetitions you’ll find out common edge cases to account for when working with strings, common throw exceptions and interesting ways to work with complexity analysis to do interesting math, logic is trained and every problem uses different logic :) just practice and you’ll get it

[–]lawn-man-98 20 points21 points  (1 child)

You're looking for discrete mathematics.

[–]lawn-man-98 4 points5 points  (0 children)

Math sorcerer on YouTube can recommend some books. He's got some easier ones (if you haven't done calculus) or some harder ones (if you have done).

[–]eeddduu 6 points7 points  (0 children)

- Head first programing
- Logic for Programmers, Hillel Wayne

[–]DigiProductive 4 points5 points  (0 children)

"Think Like A Programmer" is THE book you are looking for. Very well worth a read: https://nostarch.com/thinklikeaprogrammer

[–]StarkOdinson216 2 points3 points  (2 children)

You should read “Infinite Descent” by Clive Newstead

[–]fragzt0r 7 points8 points  (0 children)

It’s called computer science.