Code Review Weekly Newsletter
Code Review Weekly Newsletter
Have you found help on Code Review? Take just two minutes to sign up now, and you’ll be ready to give back when you can.
Sign up for Code Review

Top new questions this week:

Monopoly simulator

I was advised by a Reddit user to get my code reviewed on this forum. The complete code is on GitHub. # Monopoly Simulator # http://img.thesun.co.uk/aidemitlum/archive/01771/Monopoly2_1771742a.jpg ...

python beginner game python-2.7 dice  
asked by ohjuny 34 votes
answered by Joe Wallis 37 votes

Match Three game for a job interview using Cocos2d-x

The problem is that I had an interview for a gaming company and I had to write a prototype of a Match Three style game. The time line was 3 days. I made the code in about 2 days and sent it to them. ...

c++ game interview-questions  
asked by Димитър Димитров 10 votes
answered by Emily L. 4 votes

Platformer in C

GitHub repo. main.c #include <stdio.h> #include "level.h" static void flush_stdin(void); int main() { int level; puts("Enter a negative integer to exit."); for (;;) { ...

c game opengl  
asked by Daniel Sunday 10 votes
answered by luser droog 2 votes

Brainf*ck interpreter written in x86 assembly

I have written a program in x86 assembly (Intel syntax/MASM) that interprets brainfuck code that is fed to it via an interactive console and prints the final stack to stdout. Note that it does not ...

assembly brainfuck  
asked by Wasabi Fan 10 votes
answered by Sep Roland 4 votes

Using Fibonacci sequence to generate musical melodies

I recently started picking up the Haskell programming language. I've managed to learn other languages rather quickly, but I'm still having a difficult time grasping some of the basics of Haskell. I ...

beginner haskell fibonacci-sequence music  
asked by Jake Rieger 9 votes
answered by Caridorc 6 votes

Small Python class for Lindenmayer Systems

L-systems are basically rules for recursively rewriting a string, which can be used to characterize e.g. some fractal and plant growth. I wrote a small class to represent deterministic L-systems and ...

python beginner pygame fractals  
asked by Anna 8 votes
answered by Gareth Rees 4 votes

Calculating the amount of cubes needed to form a sum

Since I've never done any performance programming (Aside from the better choices such as array vs list etc. The real basics.), I should probably read up on it. But I had to start somewhere, so, ...

c# performance  
asked by sxbrentxs 8 votes
answered by Dmitry 5 votes

Greatest hits from previous weeks:

Reversing words in a string

I have to reverse the string "He is the one" to "one the is He". I have written some programs in Java but am looking for other best solutions. Suggest any possible ways to minimize the current ...

java algorithm strings  
asked by Sumeet 7 votes
answered by 200_success 3 votes

Implementing a linked list using C++

Any suggestions? #include<iostream> using namespace std; class node { friend class linked; private: int data; public: node ...

c++ beginner linked-list  
asked by shubham 3 votes
answered by Loki Astari 15 votes

Can you answer these?

Finding shortest paths in a Wikipedia article graph using Java

I have this sort of a web crawler that asks for two (English) Wikipedia article titles (the source and the target), and proceeds to compute the shortest path between the two. My code is as follows: ...

java algorithm graph web-scraping  
asked by coderodde 2 votes

Pomodoro timer in Go

My goal is to implement a simple pomodoro timer using Go: channels, goroutines. I'm newbie in Go world and have some misunderstanding about naming convention. I read a lot of Docker's code on GitHub ...

beginner go timer  
asked by Martin Shil 5 votes

The rusty Sieve of Eratosthenes

To get familiar with the Rust language I've decided to implement the method of Sieve of Eratosthenes to find primes up to a number N. I have created the following code that both prints the prime ...

beginner primes sieve-of-eratosthenes rust  
asked by skiwi 5 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