Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Keeping track of the tennis score

I'm trying to get hired by some company and they gave me a simple remote test to take at home so they can judge my coding skills. It's a really simple problem. It's based on the website HackerRank. ...

c++ interview-questions  
asked by Philippe Balleydier 19 votes
answered by Loki Astari 36 votes

'Game of Life' in C#

Unrelated to code: I have only been programming for three weeks, and this is my first project. About the code: Uses a preset grid. It was all done on a single page. This, I realise, was a ...

c# beginner game-of-life  
asked by Ikm 12 votes
answered by dmoonfire 11 votes

Telling me what lesson I have tomorrow and emailing me the results

This program tells me what lessons I have tomorrow then emails them to me. This program works fine, but I was wondering whether there is a way to simplify the script or make it more efficient. I have ...

python python-3.x email  
asked by Samuel Terrett 9 votes
answered by Graipher 10 votes

Object-oriented dungeon crawler game

I am creating a simple dungeon crawler game. My program runs and does what I want it to do so far, but I am starting to run into difficulty with adding new functionality, and I think one of the main ...

c# oop role-playing-game  
asked by Iceape 8 votes
answered by Eric Lippert 15 votes

The veiled guise of binary and string

Challenge Conceal a binary code within a word. Specifications The first argument is a path to a file. The file contains multiple lines. Each line is a test case represented by a space separated ...

beginner c strings programming-challenge  
asked by Legato 8 votes
answered by vnp 9 votes

Hangman in stateless JavaScript

I just want some feedback to improve readability and structure for this implementation of Hangman. The goal was to write it in a purely functional way. However, coming from an imperative background, I ...

javascript functional-programming hangman  
asked by Pete 7 votes
answered by konijn 3 votes

Automated backup of remote git repos

This is the first python script I've written. It's used to create a local backup of git repos from BitBucket. It works, but I'd like to make it more pythonic if possible. """ Script to check ...

python beginner python-2.7 git  
asked by movieglass 7 votes
answered by Quentin Pradet 2 votes

Greatest hits from previous weeks:

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 14 votes
answered by Gareth Rees 21 votes

A* search algorithm

NodeData stores all information of the node needed by the AStar algorithm. This information includes the value of g, h, and f. However, the value of all 3 variables are dependent on source ...

java algorithm search graph pathfinding  
asked by JavaDeveloper 18 votes
answered by amon 15 votes

Can you answer these?

Parser for an bifurcation analysis tool

So during my thesis I used xppaut quite extensively. In the end there were some minor problems and I decided to have a look at the code, which was just released at github. So after 30 years of on and ...

c++ parsing math-expression-eval  
asked by miscco 3 votes

Grid displayer: Game of Life and Langton's Ant

Re-use Given that both the Langton's Ant and the Game of Life use a grid, I decided to code a generic grid_diplayer code and use it both for GoL (Game of Life) and Langton's Ant to put into practice ...

python python-2.7 game-of-life pygame cellular-automata  
asked by Caridorc 5 votes

Auto-INSERT query for NLog

I use NLog everywhere and I really don't like writing the inserts everytime. You need to write the same variable three times: two for the insert and one for the parameter for example: <target ...

c# logging t-sql  
asked by t3chb0t 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