tag:blogger.com,1999:blog-2304251215826746968.post5151977706345525783..comments2023-08-25T07:40:19.012-07:00Comments on Life Is Too Short For Bad Code: Forcing Abstractionahttp://www.blogger.com/profile/03202031495623868181noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2304251215826746968.post-39878146756532045112008-08-04T10:56:00.000-07:002008-08-04T10:56:00.000-07:00There's actually an entirely-valid reason for the ...There's actually an entirely-valid reason for the use of numeric offsets into arrays: when you're writing C/C++/Java, and have arrays that are in fact simply contiguous memory buffers. Abstraction is great for application code, but sometimes you're doing low-level systems work that really does need to peek and poke at individual bytes of memory.<BR/><BR/>That being said, the template support in CUnknownhttps://www.blogger.com/profile/15044818722181140240noreply@blogger.comtag:blogger.com,1999:blog-2304251215826746968.post-68198996620046579792008-08-02T09:00:00.000-07:002008-08-02T09:00:00.000-07:00Though the basic idea is nice (abstractions lead t...Though the basic idea is nice (abstractions lead to more concise and readable code), one must remember that abstractions do tend to <A HREF="http://www.joelonsoftware.com/articles/LeakyAbstractions.html" REL="nofollow">leak</A> and that one shouldn't accidentally give away resources (speed/memory). Maybe you will be interested in this <A HREF="http://www.acm.org/ubiquity/views/v7i24_fallacy.html"Anonymoushttps://www.blogger.com/profile/00195363512347208156noreply@blogger.comtag:blogger.com,1999:blog-2304251215826746968.post-78128904197297315462008-07-30T12:54:00.000-07:002008-07-30T12:54:00.000-07:00Nice post. Ruby could do without its while loop an...Nice post. Ruby could do without its while loop and no one would notice the loss. I think some bare looping functionality is useful (ping a server every 10 seconds to see if it is alive), but even that could be eliminated through recursion, right?<BR/><BR/>I also think that Yegge's story about the 15 million line assembler program is a perfect example of why abstraction is generally more jonhttps://www.blogger.com/profile/13347284973348220851noreply@blogger.com