Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Mandelbrot image generator and viewer

This is a C++ program which outputs a Mandelbrot fractal image in a graphics window and lets the user zoom and pan around the image, generating a new image each time the user does so. I'm using SFML ...

c++ performance sfml fractals  
asked by monopole 26 votes
answered by Edward 34 votes

Project Euler #7 10001st prime

I decided to start working on the Euler project exercises. I'm doing fine for now but the seventh problem is running quite slow and I can't think of anything to make it work faster. It takes around ...

c# performance beginner programming-challenge primes  
asked by denis 14 votes
answered by nhgrif 46 votes

Simple worker class program

I Have written this program to add workers into a list and print them. I'd like a review of this. I'm especially concerned if the method Addworker should be inside the class or in the main program. ...

c# beginner oop  
asked by Yorke York 13 votes
answered by Ethan Bierlein 16 votes

From new Q to compiler in 30 seconds

Reviewing code doesn't necessarily require actually building it, but it's often helpful to do so in order to evaluate fully. I usually create a CMake project and build from there. Since we're all ...

c++ file-system cmake c++17  
asked by Edward 12 votes

Make a summary from a larger text-file

This code makes summaries from larger texts. I have searched around for an algorithm and found the following: Associate words with their grammatical counterparts. (e.g. "city" and "cities") ...

javascript algorithm node.js machine-learning natural-language-proc  
asked by Nilzone- 10 votes
answered by janos 4 votes

Extracting Country Names from Cell Values

This fairly clunky looking VBA script successfully pulls names of countries from an Array, but could it be made shorter? Mass of text from Column C onward in each row may contain the names of ...

vba excel  
asked by user1996971 9 votes
answered by Kaz 10 votes

Finding all contiguous sublists such that each member appears an even number of times

The program needs to find all contiguous sublists of numbers where the number of occurrences of every member in the contiguous sublist is divisible by 2. The first line of input is N (the number of ...

python algorithm programming-challenge combinatorics time-limit-exceeded  
asked by Marko Mackic 9 votes
answered by DarthGizka 3 votes

Greatest hits from previous weeks:

Swing calculator - first GUI program

I've recently made a calculator using Java and Swing. I'm okay with the results but I'm curious what are the major flaws I've made (assuming there are, because it is my first program making GUI). I ...

java swing calculator  
asked by Karkoon 14 votes
answered by Simon Forsberg 11 votes

Snake game using PyGame

I wrote a simple Python snake game which is about 250 lines of code. Can someone give me some advice on how I can refactor/make it better? game.py # game.py - 3/22/2013 import pygame, sys, os from ...

python array pygame snake-game  
asked by Ryan 12 votes
answered by Gareth Rees 19 votes

Can you answer these?

A "policy-based" design for a generic CUDA kernel

I am faced with a design issue that has been discussed on SO several times, the most similar question being this one. Essentially, I want polymorphism for a CUDA kernel in the form of a "generic" ...

c++ oop template cuda  
asked by icurays1 4 votes

Thread-safe algorithm to make trades based on moving window of prices

Here is problem to be solved TradingAlgorithm employs a trading algorithm which, based on the prices it receives, will return a trade to execute. The trading algorithm must implement the ...

java performance multithreading finance  
asked by sam 5 votes

Extend API of complex source-code parsing CPAN module

I am working on a source line parser using PPI. After working a while, I realized that it would be nice if the PPI API had included such and such functionality. As a very simple example, the ...

parsing perl  
asked by Håkon Hægland 3 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3