Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Tokenizer for my programming language

Here's my attempt at porting the Lua codebase for my programming language to C++(11). This is just the first step, the tokenizer, and I wanted to remove all the bad performance / practices / code ...

c++ c++11 language-design lexical-analysis  
asked by user6245072 12 votes
answered by Loki Astari 5 votes

All the knight moves in all the right places

Challenge Find all possible moves for a knight on an empty chessboard. Specifications The first argument is a path to a file. The file contains multiple lines. Each line is a test case ...

beginner c programming-challenge  
asked by Legato 9 votes
answered by I'll add comments tomorrow 13 votes

Finding an element in an array that occurs a given number of times

I am trying to solve the below problem from an online coding site: Fredo is pretty good at dealing large numbers. So, once his friend Zeus gave him an array of N numbers, followed by Q queries ...

python programming-challenge python-2.7 time-limit-exceeded  
asked by krishna 7 votes
answered by Mathias Ettinger 7 votes

Velocity, Distance and Time Calculator

This is a velocity, distance, and time calculator that I wrote not too long ago. How can I improve upon this code? import java.util.Scanner; import javax.swing.JOptionPane; //imports ...

java beginner swing calculator  
asked by SeanJ 7 votes
answered by 200_success 10 votes

Print matrix diagonals method

I need to print (or store) all diagonals of a matrix. This includes the main diagonal ( { (i,i) | i = 1, 2, ... min(m,n) } ). Then all super and sub diagonals. For example: 1 2 3 4 5 6 7 8 ...

python python-3.x matrix  
asked by pmdaly 7 votes

Hash map implementation

I'm a student in college, and while I have coded a lot, I still feel like I've only scraped the surface. I have learned a lot of things over the years, but very few of my professors ever did code ...

c hash-map  
asked by Argus 7 votes
answered by pacmaninbw 3 votes

Streaming a Pin functionally(ish)

Earlier today I wrote a question (Validating a StreamingPin) and I thought it was a good idea (apparently I was the only one who thought so, but whatever), so I proceeded further with it and developed ...

.net security validation f#  
asked by EBrown 6 votes

Greatest hits from previous weeks:

Monopoly simulator

I was advised by a Reddit user to get my code reviewed on this site. 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 47 votes
answered by Joe Wallis 60 votes

Snake game in C++

This is my version of the Snake game, written in C++. How could it be improved, and what general advice would be useful for future projects? #include <iostream> #include <conio.h> void ...

c++ beginner game snake-game  
asked by TheKittyKat 25 votes
answered by Yann 23 votes

Can you answer these?

Generating large Sudoku grid in C#

I'm new to C# and am trying to write a program that randomly generates complete Sudoku grid of variable size. I'm able to generate a 25x25 grid in usually less than 10 seconds but I haven't been able ...

c# beginner sudoku  
asked by Aaron Allen 3 votes

Python push notifications - How to make password secure

I have built a tiny script to send out push notifications. I would be glad to receive general suggestions / feedback. My main problem is that the only security offered is coming from the o.s. ...

python  
asked by Pitto 2 votes

Android generic SQL database handler

Starting with the fact that creating the classic database handler in Android is really annoying and it usually takes a lot of time since you have to create one handler for each object, I thought at ...

java performance android sqlite  
asked by Pier Giorgio Misley 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