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.

Named tuple and default values for optional keyword arguments

I'm trying to convert a longish hollow "data" class into a named tuple. My class currently looks like this: class …

python default-value namedtuple optional-arguments
CURRENT_DATE/CURDATE() not working as default DATE value

Pretty straight forward question here, I think this should work but it doesn't. Why doesn't it? CREATE TABLE INVOICE( INVOICEDATE …

mysql date default-value
SQL Column definition : default value and not null redundant?

I've seen many times the following syntax which defines a column in a create/alter DDL statement: ALTER TABLE tbl …

sql default-value ddl notnull
JQuery ajax call default timeout value

I got a bug report that I can't duplicate, but ajax-call timeout is the current best guess. So I'm trying …

jquery ajax timeout default-value
What is the default value for Guid?

The default value for int is 0 , for string is "" and for boolean it is false. Could someone please clarify what …

c# .net guid default-value
Is it possible to have a default parameter for a mysql stored procedure?

I have googled this and keep coming up with "No it is not possible" but these posts were dated 2005-2007 …

sql mysql stored-procedures default-value
Default member values best practice

Is it good practice when writing C++11 code to set default values for class members in the header file of …

c++ constructor c++11 header-files default-value
Alter column default value

I know you can change the default value of an existing column like this: ALTER TABLE Employee ADD CONSTRAINT DF_…

sql sql-server default-value notnull
Best way to give a variable a default value (simulate Perl ||, ||= )

I love doing this sort of thing in Perl: $foo = $bar || $baz to assign $baz to $foo if $bar is …

php perl operators default-value
AngularJS directive with default options

I'm just starting with angularjs, and am working on converting a few old JQuery plugins to Angular directives. I'd like …

javascript angularjs angularjs-directive options default-value