Skip to main content

Questions tagged [default-values]

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

I have a class in which there are several methods that can act as an "entry point" to its private innards (or the "fruit" thereof). Said functions might be called multiple times ...
Shay's user avatar
  • 103
-1 votes
2 answers
7k views

I'm currently creating a class in C# that will be utilized to help standardize calls to restful web services in my company's code. While the majority of my code has been written and well tested, I ...
Taco's user avatar
  • 1,175
0 votes
2 answers
644 views

In one of the projects I work for, we have just added karma to run unit tests. When reviewing the MR of a coworker, I noticed the karma.conf.js (the configuration file) has 120 lines, which seems to ...
Gonzalo.-'s user avatar
  • 161
3 votes
2 answers
2k views

Today, I and my colleague had a difference of opinion regarding the usage of default values in software configuration. We both agreed that for a consumer software, the default configuration should be ...
Mukul Gupta's user avatar
3 votes
1 answer
532 views

Default values are often suggested to be part of failover mechanism for microservices. At a high level, for any services (say microservices here) the nature of the operation can be broadly classified ...
Divs's user avatar
  • 197
3 votes
3 answers
440 views

The business team in my company has come up with a new field to add to one of our entities. For new instances of this entity, it'll be calculated dynamically, but for previously existing instances, we ...
user3748908's user avatar
  • 1,667
3 votes
1 answer
10k views

I know in C#, by default, referenced type variables are passed by reference to a method. I have a function which sometimes I just need its return value and sometimes both return value and the changes ...
Ahmad's user avatar
  • 1,866
4 votes
6 answers
2k views

First, let me show you an example (written in ActionScript 3.0): class GameObject { public static function MakeFromName( pName:String, pAtlas:TextureAtlas ...
chamberlainpi's user avatar
2 votes
1 answer
175 views

There's a bunch of languages that automatically return the last value in a function (mostly functional) like Ruby, Haskell, Lisp, etc. Does this feature (or what do you call it) affect the ...
UncleLaz's user avatar
  • 129
5 votes
5 answers
5k views

In an embedded device, during the initializing of memory locations, is there any convention that are being practiced. I mean, say setting every byte to zero or 0xFF or any other value.
Shamim Hafiz - MSFT's user avatar