Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Capitals and countries game

This is my simple game that gives you a country and has you enter the corresponding capital. What do you think? (Before running it you need to do score.txt.) package com.company; import ...

java beginner quiz  
asked by kezc 17 votes
answered by Hosch250 23 votes

VIM colors downloader in Python

Recently, I wanted to change my vim colors to something new. So I went to the vim colors website and then I decided that I wanted to download ALL the colors. So I wrote this simple Python script ...

python python-3.x web-scraping beautiful-soup network-file-transfer  
asked by Kernel.Panic 13 votes
answered by Graipher 8 votes

Determining if the kangaroos will land in the same position

Problem There are two kangaroos on an x-axis ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location x1 and moves at a rate of v1 ...

c++ performance programming-challenge  
asked by amallard 13 votes
answered by Rainer P. 27 votes

Building car factory with custom features per car

I was once asked in an interview to build a factory that makes cars. All cars has common features like price, rating and color and they have some features like fuel injection which can on specific car ...

c# oop design-patterns interview-questions factory-method  
asked by Ziv Weissman 10 votes
answered by t3chb0t 8 votes

Yet another minimax tree for TicTacToe

I have written a working minimax tree for Tic-Tac-Toe. What I have done so far is create a tree with end node having value 10, 0 or -10 base on win, lose or draw. After I create a tree I then ...

c++ tree tic-tac-toe ai depth-first-search  
asked by pokche 10 votes
answered by FirefoxMetzger 0 votes

ALOHA network simulation in Python

I'm currently studying the book From Algorithms to Z-Scores: Probabilistic and Statistical Modelling in Computer Science In the first chapter of the book the ALOHA network protocol is introduced as ...

python algorithm python-3.x simulation  
asked by Sorrop 9 votes
answered by janos 9 votes

Simple Python username scraper

I started learning Python recently and I really like it, so I decided to share one of my first projects mainly in hopes of someone telling me what I can do to make it run faster ...

python beautiful-soup  
asked by edsheeran 9 votes
answered by smarx 10 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

Simple Java animation with Swing

I am learning to use Java Swing and have made a simple animation that makes a small shape bounce around the predetermined borders of a panel. The program works well, but I am looking for feedback in ...

java swing animation  
asked by Jeremy Johnson 18 votes
answered by syb0rg 25 votes

Can you answer these?

Manage Labels in a Gitlab Project

Background This is the first (and only) Go program I've written so far. My employer just formed a small team to make a prototype written in Go ready for production, so I (and everyone else on my ...

beginner go rest git  
asked by erturne 4 votes

Java program that can compile, execute and match output of given code

I have written code that can compile, execute, generate output and match that output with the actual output of the given code, kind of like this site. Currently, this supports only Java and C++ code. ...

java oop  
asked by seal 3 votes

Toggle menu under specified screen width

I've done simple toggle menu in jQuery which is avaible at specifing breakpoint, but I'm afraid my code is too complicated. How can I make it simplier? I also have a question about performance of ...

jquery html css  
asked by kr099 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