python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Builder pattern that requires at least two properties to be specified
I am writing a RequestBuilder class, which will handle the creation of a query string, based on the following criteria
category (String)
country (String)
keywords (String[])
page (int)
pageSize (int)...

Kotaka Danski
Votes: 0
Answers: 2
How to make function's arguments optional as a group?
I was just wondering what would be the preferred way in Python to make a group of arguments of a function optional, but only as the whole group.
Meaning: they have to either all be given, or none.
For...
Sorontik
Votes: 0
Answers: 3
Jackson deserializes absent optionals as nulls instead of Optional.empty()
Recently I've stumbled upon this problem:
Let's have an example java class that contains Optional property:
@Getter
@Setter
private static class DeserializingTestBean {
private Str...

Aethernite
Votes: 0
Answers: 0
Default Parameter must be a compile-time constant / int[] C#
This method does not compile with the error "Default parameter for Index1 must be a compile-time constant. I am passing a int[3]; Why is this happening? How can I solve this?
public void C_Lo...
Roblogic
Votes: 0
Answers: 1