/dpt/ - Daily Programming Thread

When I read about new stuff, first I just read the whole book and I know I will only understand like 20%, but it gives me a broad overview. I just read it fast, I read it in every situation when I have free time.
Later I go more in depth.

Are you learning C, or are you learning programming in general?

Its a shit book for learning C as a beginner. Start with something like C Primer 6th edition. Just make sure to do all the exercises.

Haskell encodes imperative procedures as an abstract datatype. It doesn't give you any way to run a procedure via a function, but it does give you functions that can combine procedures together into larger procedures. It turns out this is enough.

getChar is not a function, it doesn't vary by any argument, and it's certainly not a Char. It's not an 'x'. It's an imperative program.

putChar is a pure function that gives an imperative procedure given a character.

getChar >>= (\c -> putChar c) expresses an imperative procedure that echoes one character input.

>There, it is done by monads
The fact that you can map functions over procedure results (fmap), collapse procedures that compute procedures into combined procedures (join), and make do-nothing procedures that give pure results (return) is certainly convenient, but it's a distraction if you just want to know what they are.

Don't use that book
CS50x (free course)
Modeling with Data (has an extensive first part tutorial in C)
21st Century C (a bit advanced, but covers important modern things such as gdb, valgrind, git, make, has an appendix which quickly covers basics)

>(in the Jow Forums sense of the word)
read 3 sets of 10 pages after waking up. Don't forget the oats.

>I mean I already know how to program in C
Ahh, then also Modern C (free pdf)
Expert C Programming
Mastering Algorithms in C, for some algo/data structures/complexity side of things, but using C

>CS50x (free course)
I actually learnt most of my C by doing CS50. Except the Psets felt really heavy and actually difficult.
The difficulty gap between each of them felt very steep for a brainlet such as myself.
Maybe I'll try again though, it might be easier than to actually sit and read a book.

Attached: 1514701406674.jpg (645x729, 49K)

*blocks your path*

"Oh hey user, I just finished writing that compiler"

How do you react?

Attached: quil.png (1095x629, 286K)

>Mastering Algorithms in C, for some algo/data structures/complexity side of things, but using C

Yeah this sounds very interesting.
Thanks a lot everyone.

I dont talk to women