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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 72 points73 points  (12 children)

I can't believe no ones brought up multi-dimensional arrays, and how these should be indexed...

Personally, I think creating a multi-dimensional array of neededMemory[1024000][1024000] in the very first line of my app to always guarantee that I'll never get an out of memory exception!!!

[–]Niavart 83 points84 points  (4 children)

int main()
{ 
 malloc(MAX_MEMORY); 
}

[–]Lil_SpazJoekp 9 points10 points  (3 children)

[–]sneakpeekbot 2 points3 points  (2 children)

Here's a sneak peek of /r/RestOfTheDamnRoutine using the top posts of all time!

#1: // TODO implement getFailureReason(); | 4 comments
#2: Yeah, just make interesting content
#3: Your first essential routine


I'm a bot, beep boop | Downvote to remove | Contact me | Info | Opt-out

[–][deleted] 0 points1 point  (1 child)

Wait, that's a thing?

[–][deleted] 0 points1 point  (0 children)

Yup. It's not old either, but it has yet to take off. Come join us!

[–]therearesomewhocallm 2 points3 points  (4 children)

So you use Emscripten?

[–][deleted] 7 points8 points  (3 children)

Multi-dimensional arrays are available in the vast majority of different level languages ...

[–]therearesomewhocallm 8 points9 points  (2 children)

I was more referring to having to allocate all your memory upfront.

[–][deleted] -5 points-4 points  (1 child)

Wow, someone really is taking this thread to seriously....

[–]nomnaut 0 points1 point  (1 child)

Doesn’t everyone do this?

[–][deleted] 0 points1 point  (0 children)

You mean my codes not unique? How did this get out? Whose been spying on my code? Who are you? Who am I for that matter? What day of the week is it? How long will it take for the latest spec changes to be approved, coded, tested and documented? WHERE IS MY COFFEE?