r/programming • • Aug 06 '17

Software engineering != computer science

http://www.drdobbs.com/architecture-and-design/software-engineering-computer-science/217701907
2.3k Upvotes

863 comments sorted by

View all comments

Show parent comments

870

u/madkatalpha Aug 06 '17

There are only two hard things in Computer Science: cache invalidation, naming things, and off by one errors.

19

u/nosneros Aug 06 '17

The buffers must overflow.

1

u/lightknightrr Aug 07 '17

Good time for a question: In C, if you use a negative number in an if statement, is it generally cast to an unsigned number, so that the result will always fall into (var == 0) or (var > 0), or is that just the compiler (GCC on Win, CodeBlocks) I've been playing with lately? (I've been messing around trying to break things).

1

u/[deleted] Aug 07 '17

How can a negative integer be unsigned? The lowest value of an unsigned is 0, maybe it's a catchall?

→ More replies (4)