python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
References to IDs in APIs responses, null or 0?
I consider myself that 0 is not a good thing to do when returning information from an API
e.g.
{
userId: int|null
}
I have a colleague that insists in that userId should be 0 or -1, but that forc...
JorgeeFG
Votes: 0
Answers: 1
Cross Cutting Concerns / Invariants / Domain Logic Query
Im finding this a tough question to phase accurately but here goes.
Suppose I have a request handler on my server that looks something like:
async function finishGame(userId: string, gameId: string) {...
mikeysee
Votes: 0
Answers: 0
What is the name of the design pattern where I dynamically pick the correct implementation based on data?
Originally I picked the correct User implementation, based on domain and realm data from the Java EE server. However that was company code, so I had to rewrite the example with numbers. I hope the und...
Frigo
Votes: 0
Answers: 1
Could you make a entire software with JavaScript?
Javascript is a really good web-dev language, and it's also not bad at programming the backend side of websites. So is there a way to make software out of it?
Albert Yao
Votes: 0
Answers: 1