|
You are here |
outflux.net | ||
| | | | |
blog.oddbit.com
|
|
| | | | | Overview I was recently working with someone else's C source and I wanted to add some basic error checking without mucking up the code with a bunch of if statements and calls to perror. I ended up implementing a simple must function that checks the return value of an expression, and exits with an error if the return value is less than 0. You use it like this: must(fd = open("textfile.txt", O_RDONLY)); Or: | |
| | | | |
bijanebrahimi.github.io
|
|
| | | | | ||
| | | | |
gist.github.com
|
|
| | | | | GitHub Gist: instantly share code, notes, and snippets. | |
| | | | |
qntm.org
|
|
| | | [AI summary] The provided text is a collection of comments and discussions about the book 'Clean Code' by Robert C. Martin. It includes various perspectives on the book's content, examples, and recommendations for alternative resources. The discussion covers topics like code readability, side effects, method design, and the use of specific programming techniques. Some users criticize the examples in the book, while others appreciate its insights and find it helpful for learning clean coding practices. There are also mentions of other books and resources that are suggested as alternatives or supplements to 'Clean Code'. | ||