api-design
Using -1 as special value in API functions taking numeric arguments
Consider this example function from a fictive game engine API: function Entity.SetHealth( Number health )[详细]
2023-03-14 13:51 分类:问答What is wrong with the DOM? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-03-14 08:02 分类:问答Re-define wait method in a Java interface
I would like to use wait(int) as the signature of a method in a fluent API (used for http://www.jooq.org). The goal is to be able to construct SQL queries like this example:[详细]
2023-03-13 18:21 分类:问答Path to remove deprecated APIs
We have some external APIs in our codebase that have been deprecated over the years, with no clear path on who/when to remove them. How would you recommend we would go about removing them? Can we cons[详细]
2023-03-13 11:17 分类:问答Why TypeError when too many / too few args in Python function call
I\'m having trouble understanding why Python raises a TypeError when you provide arguments that aren\'t part of a method signature.[详细]
2023-03-09 19:02 分类:问答Choosing a REST framework for using alongside asp.net-mvc
I already have my site built using asp.net mvc, which basically talks to my service layer. The service layer is designed so that outside applications can call into it as an API (probably similar to tw[详细]
2023-03-06 19:26 分类:问答How can I design my Java / C# library so it stays binary compatible in case of future changes?
Task: I am designing a library which will be used by developers. Objective: I need to make sure that changes in future versions will not impact existing developers.[详细]
2023-02-27 05:17 分类:问答How do you implement the factorial function in C++? [duplicate]
This question already has answers here: 开发者_如何学编程 Closed 11 years ago. Possible Duplicates:[详细]
2023-02-26 20:28 分类:问答Java API Design: NumberFormatException for Method that Parses a Semi-Numeric String?
I\'m making a library that contains a few methods for parsing string dates and times.I am having difficulty deciding what exception those methods should throw when the string argument isn\'t parseable[详细]
2023-02-26 13:03 分类:问答Abandoning overloads in favor of Extension methods
Now that we have extension methods in C#, Is there any point left in keeping overloads in implementation of any class for passing default values?[详细]
2023-02-22 16:36 分类:问答