大约有 42,000 项符合查询结果(耗时:0.0519秒) [XML]
Is it bad practice to have a constructor function return a Promise?
I'm trying to create a constructor for a blogging platform and it has many async operations going on inside. These range from grabbing the posts from directories, parsing them, sending them through template engines, etc.
...
Why avoid increment (“++”) and decrement (“--”) operators in JavaScript?
...
16 Answers
16
Active
...
How do I rename all folders and files to lowercase on Linux?
I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ source code, but that shouldn't matter).
...
Why are there no ++ and -- operators in Python?
Why are there no ++ and -- operators in Python?
19 Answers
19
...
Are there any downsides to passing structs by value in C, rather than passing a pointer?
Are there any downsides to passing structs by value in C, rather than passing a pointer?
10 Answers
...
Define global variable in a JavaScript function
Is it possible to define a global variable in a JavaScript function?
13 Answers
13
...
REST API error return good practices [closed]
I'm looking for guidance on good practices when it comes to return errors from a REST API. I'm working on a new API so I can take it any direction right now. My content type is XML at the moment, but I plan to support JSON in future.
...
static const vs #define
Is it better to use static const vars than #define preprocessor? Or maybe it depends on the context?
11 Answers
...
How to replace multiple substrings of a string?
I would like to use the .replace function to replace multiple strings.
23 Answers
23
...
Creating an abstract class in Objective-C
I'm originally a Java programmer who now works with Objective-C. I'd like to create an abstract class, but that doesn't appear to be possible in Objective-C. Is this possible?
...
