Stringly Typed

Definition - What does Stringly Typed mean?

“Stringly typed” is a slang IT term related to coding strategies that describes the process where a developer uses string values excessively for variables. Stringly typed code is code in which variables are often typed as strings, and handled as strings, when there are better alternatives available to programmers. It is also a word play off of “strongly typed” code, which describes code where types are used rigidly to enforce results. Stringly typed code may be strongly typed, in that it reinforces the use of strings, but it is generally not “strongly written,” as it typically does not make use of the most efficient solutions.

Techopedia explains Stringly Typed

In stringly typed code, even different types of data variables like real numbers may be typed as strings and handled as strings within functions or procedures. Many of these functions and procedures return a string instead of an integer, floating point value or other numerical value. One of the best examples of stringly typed code is illustrated in a lolcatz meme accompanied by the text: “I can has string to store date valyooz?” Here, the meme’s creator is referencing the idea that date values are much more efficiently handled as numbers, but a programmer might type them as strings instead.

The idea of stringly typed code really goes to the heart of some of the big differences between how humans and computers write and interpret code. Some of these differences are covered in the semantic Web movement, which aims to label technologies in more human-friendly and semantic ways. By the same token, one of the biggest reasons programmers might choose to write stringly typed code is that it is more comfortable for them, if they inherently like words more than numbers. Stringly typed code is “word-friendly” code – when variables are typed as strings, they function as a string of text characters. In a sense, programmers might create stringly typed code because they are simply afraid of math. In many different cases, stringly typed code favors a human-centered approach, the creation of text strings for variables, rather than a computer-centered approach of using the numerical values that are more easily converted to machine language and binary code.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.