How are JavaScript arrays represented in physical memory?

Normally, arrays allocate a contiguous block of memory of fixed length. However, in Javascript, arrays are Object types with special constructors and accessor methods. Which means, a statement like: var arr = new Array(100000); does not allocate any memory! In fact, it simply sets the value of the length property in the array. When you … Read more

Is C strongly typed?

“Strongly typed” and “weakly typed” are terms that have no widely agreed-upon technical meaning. Terms that do have a well-defined meaning are Dynamically typed means that types are attached to values at run time, and an attempt to mix values of different types may cause a “run-time type error”. For example, if in Scheme you … Read more

Seeking clarification on apparent contradictions regarding weakly typed languages

UPDATE: This question was the subject of my blog on the 15th of October, 2012. Thanks for the great question! What does it really mean for a language to be “weakly typed”? It means “this language uses a type system that I find distasteful”. A “strongly typed” language by contrast is a language with a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)