What do you like more in your application? Handling complexity when reading the data or when updating it?
Imagine you have a model such as
Product with three potential date attributes:
publication_on- Nominal date of…
Sometimes you would like to define a method which takes an optional argument, but the programmer might pass
nil. And your code needs to distinguish between the value not being provided (default value) and
nil. How can it be achieved?
Around a month ago, I worked on a task, which required a more dynamic frontend behavior. I worked on a component with 2 selects and 2 date pickers and depending on what was…