Top "Types" questions

Types, and type systems, are used to enforce levels of abstraction in programs.

Better way to get type of a Javascript variable?

Is there a better way to get the type of a variable in JS than typeof? It works fine when …

javascript types typeof
What data type to use for hashed password field and what length?

I'm not sure how password hashing works (will be implementing it later), but need to create database schema now. I'm …

mysql hash types passwords cryptography
How to find out if a Python object is a string?

How can I check if a Python object is a string (either regular or Unicode)?

python string types compatibility
Test if a variable is a list or tuple

In python, what's the best way to test if a variable contains a list or a tuple? (ie. a collection) …

python types list
What are POD types in C++?

I've come across this term POD-type a few times. What does it mean?

c++ types c++-faq
Difference between text and varchar (character varying)

What's the difference between the text data type and the character varying (varchar) data types? According to the documentation If …

string postgresql text types varchar
How to cast Object to its actual type?

If I have: void MyMethod(Object obj) { ... } How can I cast obj to what its actual type is?

c# object types casting typeof
How To Change DataType of a DataColumn in a DataTable?

I have: DataTable Table = new DataTable; SqlConnection = new System.Data.SqlClient.SqlConnection("Data Source=" + ServerName + ";Initial Catalog=" + DatabaseName + ";Integrated Security=…

c# types datacolumn
Long vs Integer, long vs int, what to use and when?

Sometimes I see API's using long or Long or int or Integer, and I can't figure how the decision is …

java types numbers
Convert a byte array to integer in Java and vice versa

I want to store some data into byte arrays in Java. Basically just numbers which can take up to 2 Bytes …

java types endianness