Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Bush Wanderer - code intended for teaching

I am teaching computing to an AS class and this was their assignment: Bush Wanderer Task 1 Create a 5x5 grid of hashes(#) where the player is an x on the board Prompt the player ...

python game python-3.x  
asked by Toby Adams 23 votes
answered by Pimgd 29 votes

Stack Exchange User Activity Score

About This is a SEDE query which will calculate your activity and participation on a site. It's geared for Programming Puzzles & Code Golf where questions are values more, but the values can be ...

beginner sql stackexchange t-sql  
asked by Downgoat 18 votes
answered by Quill 14 votes

First solution to FizzBuzz

I'm a first year college student, Computer Science major. This is my crack at the FizzBuzz interview question in Java. What kind of improvements could I make? //Prints numbers 1 - 100, 25 values per ...

java fizzbuzz  
asked by P. Fernandez 16 votes
answered by Tunaki 26 votes

Snakes Game Using ncurses

This is my version of snakes in C++ using the ncurses library. I would like to hear from you how this piece of code can be improved and general advice for future projects regarding coding and ...

c++ oop game snake-game curses  
asked by user3762742 12 votes
answered by Pimgd 16 votes

FiniteArrayQueue type with interface and unit tests

Doing some exercises on basic data structures, I learned about queues, and decided to roll my own to better understand how a basic queue can function. As the name indicates, this Queue is made from a ...

java array queue circular-list junit  
asked by Pin Crash 11 votes
answered by nhgrif 12 votes

Tracking Entity Changes (not EF)

So, I kept refactoring my Sage300 API wrapper - I wanted the client code to feel just like using Entity Framework - this is the closest I got to it: using (var context = new SageContext(/*redacted ...

c# linq reflection expression  
asked by Mat's Mug 10 votes
answered by Pimgd 2 votes

Hangman learning AI

I have been learning AngularJS and have written my first app. It's a Hangman AI which learns words and guesses the solution based on the words it knows. Please look over my code and provide some ...

javascript html css angular.js hangman  
asked by Tom Hanson 9 votes
answered by Volune 6 votes

Greatest hits from previous weeks:

Stack implementation using an array

I am trying a stack implementation using an array. I want to know if this approach is OK or if there is a logical problem. This program is working fine. #include <stdio.h> #define MAXSIZE 5 ...

c array stack  
asked by Ace 7 votes
answered by Edward 13 votes

Design a chess game using object-oriented principles

I would like to know if my approach is correct and how could it could be improved? Also, is there a way to get rid of the relation between the Piece and the Board? At the moment, I am storing the ...

java oop design-patterns game chess  
asked by SummerCode 21 votes
answered by Kyle Hale 14 votes

Can you answer these?

Parse HUGE csv file

I've got ~20GB of data (coming from small files of 16ko that I've concatenated to one file) which is like so: HeaderA|HeaderB|HeaderC|HeaderD|HeaderE| <= File1 value A|value B|value C|value ...

c# parsing csv  
asked by Thomas 3 votes

C++ segment tree implementation

I created my own implementation of Segment Tree structure. It works well, it is lazy, it supports arbitrary functions and is able to change the value of the whole segment fast. But there are some ...

c++ tree  
asked by Ayaz Salikhov 2 votes

A full-duplex connection to an IRC server

This connection class can be used, through composition, to make IRC clients for different kinds of IRC services. #ifndef CONNECTION_HPP #define CONNECTION_HPP #include <string> #include ...

c++ socket boost chat  
asked by Francisco Aguilera 4 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