Top "Types" questions

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

Append a tuple to a list - what's the difference between two ways?

I wrote my first "Hello World" 4 months ago. Since then, I have been following a Coursera Python course provided by …

python list types append tuples
Return multiple fields as a record in PostgreSQL with PL/pgSQL

I am writing a SP, using PL/pgSQL. I want to return a record, comprised of fields from several different …

sql postgresql stored-procedures types plpgsql
Appropriate datatype for holding percent values?

What is the best datatype for holding percent values ranging from 0.00% to 100.00%?

sql-server types sqldatatypes
How to pass a type as a method parameter in Java

In Java, how can you pass a type as a parameter (or declare as a variable)? I don't want to …

java types
YAML equivalent of array of objects in JSON

I have a JSON array of objects that I'm trying to convert to YAML. {"AAPL": [ { "shares": -75.088, "date": "11/27/2015" }, { "shares": 75.088, "date": "11/26/2015" }, ]} …

arrays json types yaml
Python JSON encoding

I'm trying to encode data to JSON in Python and I been having a quite a bit of trouble. I …

python json encoding types simplejson
Why in C++ do we use DWORD rather than unsigned int?

I'm not afraid to admit that I'm somewhat of a C++ newbie, so this might seem like a silly question …

c++ winapi types dword
Generics in C#, using type of a variable as parameter

I have a generic method bool DoesEntityExist<T>(Guid guid, ITransaction transaction) where T : IGloballyIdentifiable; How do I …

c# .net generics types
When and where to use GetType() or typeof()?

Why this works if (mycontrol.GetType() == typeof(TextBox)) {} and this do not? Type tp = typeof(mycontrol); But this works Type …

c# .net types typeof gettype
Accessing elements by type in javascript

A while ago I was making some test in Javascript, and played with a code to get the text of …

javascript types element document