Top "Default-value" questions

A default, in computer science, refers to a setting or value automatically assigned to a software application, computer program or device, outside of user intervention.

Setting the default value of a C# Optional Parameter

Whenever I attempt to set the default value of an optional parameter to something in a resource file, I get …

c# default-value optional-parameters
Using XML decorations to specify default values during de-serialization

I have a problem deserializing some XML; the XML supplied by a third party is quite verbose, so if there …

c# serialization xml-serialization default-value xml-deserialization
How to set default values with methods in Odoo?

How to compute the value for default value in object fields in Odoo 8 models.py We can't use the _default …

python python-2.7 odoo odoo-8 default-value
How to set default value of TextBox empty string instead of null

I may be out of date, but one principle I adhere to is avoid nulls as much as possible. However …

asp.net-mvc model textbox null default-value
Invoking methods with optional parameters through reflection

I've run into another problem using C# 4.0 with optional parameters. How do I invoke a function (or rather a constructor, …

c# .net reflection invoke default-value
Creating (and Accessing) a Sparse Matrix with NA default entries

After learning about the options for working with sparse matrices in R, I want to use the Matrix package to …

r default-value sparse-matrix na
Set highcharts y-axis min value to 0, unless there is negative data

I'm having an issue with highcharts where I have a number of different charts being generated by JSON calls. For …

highcharts axis default-value minimum
Best practice for setting the default value of a parameter that's supposed to be a list in Python?

I have a Python function that takes a list as a parameter. If I set the parameter's default value to …

python default-value pylint
Why does Scala language require you initialize a instance variable instead of relying on a default value?

Scala language requires you initialize your instance variable before using it. However, Scala does not provide a default value for …

scala initialization default-value instance-variables
Is un-initialized integer always default to 0 in c?

I'm reading source code of nginx and find it's not initializing many of the numerical variables, including ngx_int_t …

c default-value initialization