r/programming • • Mar 11 '13

Programming is terrible—Lessons learned from a life wasted. EMF2012

http://www.youtube.com/watch?v=csyL9EC0S0c
650 Upvotes

368 comments sorted by

View all comments

Show parent comments

2

u/ngroot Mar 11 '13

I'd try again tomorrow.

-1

u/moor-GAYZ Mar 11 '13

Explain, please, instead of being snarky for no reason.

My reasoning is here.

2

u/ngroot Mar 11 '13

I was snarky because you didn't give your reasoning before.

Languages like Perl and Lisp that handle memory allocation themselves (a hallmark of which is built-in garbage collection) don't have buffer overruns precisely because it isn't left to the user to do range checks. Dumping in more data than expected to a routine might result in a greater allocation of memory, or an exception, or some other defined behavior, but what it's not going to do is run over the end of an allocated buffer and alter a code segment, or a return address on the stack. Data will not inadvertently be treated as code or a pointer to code.

1

u/moor-GAYZ Mar 11 '13

But how is that related to separating the cabin from the passenger space on planes? (So that you totally don't even have a door between the two, I presume? And then we don't need checks in the airports?)

Range checks are all right, but those are not about separating the data from the code, and automatic memory management is not about separating the data from the code.

I don't know, I feel that the whole thing might seem to make some sense at a casual glance, but if you try to make sense of it, things just don't connect.

→ More replies (1)