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 19 votes
answered by nhgrif 65 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 6 votes

Java hex dumper

Can somebody please try and help me speed up my code? The file is ~12MB (you can download it here). It takes around 500-600 milliseconds to run on my i7 4790k. import java.io.FileInputStream; import ...

java performance file  
asked by Jonathan Beaudoin 9 votes
answered by janos 6 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

Error-testing be with cucumber/capybaraweb

I'm working on writing tests for a rails application using cucumber and capybara. I have a scenario for a user editing a post, and making it invalid. The scenario looks like this: Scenario: I edit ...

unit-testing ruby-on-rails comparative-review webdriver cucumber  
asked by user2367593 8 votes
answered by sled 5 votes

Greatest hits from previous weeks:

Simple Java calculator

I am a beginner in Java programming. Here is my simple calculator. I hope you could scan through my coding and let me know if there is any error in my coding or how I could simplify the code. import ...

java beginner calculator  
asked by Isaac 11 votes
answered by Vojta 13 votes

Client/server implementation in C (sending data/files)

I wrote this code to send any binary file from server to client (in our example, I am sending sample_file.txt); the client should recreate the file locally. Code works fine (I tested with one or two ...

c networking socket  
asked by user38434 9 votes
answered by Loki Astari 7 votes

Can you answer these?

Batch script to make folders hidden

I just wrote a simple script cmd to hide private folders by combining several scripts from the Internet. Can anyone give me suggestions for improvement? This batch file uses a password hidden by ...

security file-system powershell batch  
asked by Muthiullah 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

UDP server for a multiplayer game using socketserver

I am making a multiplayer platforming game, and currently there are server performance issues once I have about 7+ clients connected. I was told earlier last week that I should investigate ...

python performance server udp  
asked by Dysprosium Dysprosium 2 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