Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
2 votes
Accepted

Spawning a child process that is accessible in global scope through use of eval()

Unless there's some reason the child processes need to have their own names in the global scope, the easier and safer solution would seem to be having a global array which the child processes are kept ...
user avatar
  • 2,573
2 votes

Server code to upload and save images to cloud storage

Within resizeImages, the if (req.files.media)... seems to be highly redundant. You seem to be unnecessarily checking for ...
user avatar
1 vote

Can I optimize my implementation of generating Fibonacci series using recursion?

Bug As pointed out in comments the start of the sequence is [0, 1, 1, 2 ...] you function starts with [0, 1, 2 ...] Code style ...
user avatar
1 vote
Accepted

A reduce method which aggregates common data in objects

A couple of things that can be simplified/refactored: Conditionals can be reduced to improve code readability. No need to clone an object if it already exists. Instead, we can just update the ...
user avatar
1 vote

jQuery building select control

There are a couple of ways that I know how you could improve the code, although the benefit ultimately is that the code is cleaner, for the size of your code it doesn't really matter that much, but it'...
user avatar
  • 208

Only top scored, non community-wiki answers of a minimum length are eligible