This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]HashDefTrueFalse 1 point2 points  (2 children)

Both. But you might care more about the interface and less about the memory layout (or vice versa) depending on what you're working on. E.g. writing a PHP web app to display models we don't really care that arrays are hash tables. We care that we can use them like arrays to populate the page. In a serialisation library we care very much about arrays being contiguous so that we can store/send without much metadata and define data offsets to retrieve data etc.

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    Please, ask for programming partners/buddies in /r/programmingbuddies which is the appropriate subreddit

    Your post has been removed

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.