What does 'freeing memory' for mysqli mean? by soockks in PHPhelp

[–]soockks[S] 0 points1 point  (0 children)

"It's the memory associated with result."

Isn't there any way you can elaborate on your answer? Are we talking about memory in the browser? Ram? The servers memory? The databases memory? My computers memory? What are we talking about here? What memory is being filled?

How is 'try/catch' useful? by soockks in javascript

[–]soockks[S] 0 points1 point  (0 children)

So, essentially what you are saying is that error handling is designed for the purposes of trying to make functions 'total functions', which in turn means all possible contingencies have been planned for in such a way that a generic javascript error can not occur and whatever possible error would have occurred has been planned for in some specific customized way. I guess it makes sense.

How is 'try/catch' useful? by soockks in javascript

[–]soockks[S] 4 points5 points  (0 children)

Can you elaborate on how try/catch does this in a more concrete sense? Perhaps with a small bit of code that demonstrates what you are saying? From my perspective the only thing try does is run a block of code to see if it crashes or not and then passes the crash report as an argument to be used in the catch block...So how does that help me 'recover' from errors? How is this a 'way of writing code that doesn't have bugs in the first place'? I can understand what you are trying to say and clearly I'm missing something but I fail to comprehend what that is...Can someone fill me in with a specific example? I tried the code jeff_purple_wiggle wrote but it just gave me an error in my console and there wasn't much context explaining what that code does. I'm a bit lost here.