« first day (3297 days earlier)      last day (720 days later) » 

12:01 AM
REFRESH! There are 8078 unanswered questions (89.2964 answered)
 
12:14 AM
0
Q: Clojure Prime Numbers from 1 to 1000

amicharskiI am a beginner to Clojure and I made a little script that prints out every prime number from 1 to 1000. Let me know if there are any improvements that I can make: (loop [i 2] (loop [j 2] (if (= j i) (println i)()) (if (= (mod i j) 0)() (recur (inc j)))) (if (< i 1000) ...

 
 
3 hours later…
 
1 hour later…
4:10 AM
Questions about improving working code can also be asked on Code Review (though not both simultaneously), but in either case, people need to be able to see code in order to comment on it. — outis 39 secs ago
 
 
3 hours later…
7:25 AM
0
Q: string vs integer as map key for memory utilization in golang?

AndyPI have a below function which is called by multiple go routines to read s3 files and it populates two concurrent map as shown below. This read method is called during server startup and also periodically every 30 seconds after server is started up. I have a use case where I need to populate map f...

 
8:15 AM
0
Q: Map: Group Tuple keys Together with Empty Elements

Hani GotcIntroduction We have std::map<key,std::vector<std::string>> m; where the key is represented by std::tuple<std::string, std::string,std::string>. But there is a constraint, the last field of the tuple can be an empty string. If the last element of the tuple is an empty string then we should merge...

 
8:41 AM
0
Q: A Python 3 script that generates ART with programming using matplotlib

Ξένη ΓήινοςI am always super interested in both science and art, science and art are two different ways to describe the objective reality, they are two sides of the same coin, in many areas they overlap, and mathematics is the most prominent one of such areas. So I used the last three days to write a bunch ...

 
 
1 hour later…
10:48 AM
0
Q: MapboxGL, multiple layers performance issue

mihalca bogdanPremise: I have a set of data (stops on the map)loaded via geoJSON in a clustered source, each of these stop locations can have a different icon. I have over 140 variations of icons. I am iterating through all of them and I generate a "symbol" type layer for each one. Also, I am loading each stop...

 
11:13 AM
0
Q: Sampling from k circles with different radii

ThePortakalDescription: I would like to sample n_points points from k circles whose radii and centers are given as lists. Note: This is my first question :) And k is not a very large number, usually k<7. My code: I guess the parts where I compute the number of points for each circle, and the for loop can be...

 
12:04 PM
0
Q: display processes children

MikeThe following program uses a parent program to determine the PIDs of multiple child processes. A function is called to return them to a dynamic vector (with the children's pids, but also the elements in the vector) #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> ...

 
12:26 PM
Sounds like you'd be adding obfuscation for no reason. The important thing is "clarity of the code", and the only way for us to judge that is for you to post realistic samples with and without your proposal. (You might then get told off by people saying "this is not a code review forum"). — dangling else 46 secs ago
 
1:05 PM
It’s doing hundreds of things. That’s not any more specific of a question. This type of question is closer suited to the Code Review Stack Exchange site, but they may not be eager to simply do your homework for you when it’s basically an essay… — Tenfour04 42 secs ago
 
1:28 PM
Is this a good answer? It is more of a design review and not much of a code review.
 
1:43 PM
This question should go to the code review stack exchange website. — RomainL. 57 secs ago
 
2:14 PM
Monking
 
 
1 hour later…
3:43 PM
Monking
@pacmaninbw It has enough suggestions about the approach/code provided to count, I think.
 
4:00 PM
@pacmaninbw That's the problem with electing people who are active in the queues.
Preferably there would be enough diversity in the queue for it not to matter.
But we hadn't.
@DerKommissar How did it go?
 
 
2 hours later…
6:19 PM
@Mast went alright, have 3 prospects right now, all state-side
 
 
2 hours later…
8:30 PM
possible answer invalidation by greybeard on question by Luis Barros: codereview.stackexchange.com/posts/276503/revisions
possible answer invalidation by greybeard on question by Luis Barros: codereview.stackexchange.com/posts/276503/revisions
Questions about refactoring working code belong over on codereview in general (I'm not saying this question is a good fit there though!) — Chris G 35 secs ago
 
 
2 hours later…
10:12 PM
0
Q: "Fast Pimpl": aligned storage instead of the pointer, special member functions

Ave MiliaI have attempted to implement a "fast Pimpl" idiom based on the talk slides and further sources, which is essentially an aligned storage of some size that can be used as a drop-in replacement for std::unique_ptr when implementing the Pimpl idiom: // ... private: // std::unique_ptr<Impl> pimpl_;...

 

« first day (3297 days earlier)      last day (720 days later) »