Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Battleships game in Python

The idea is, you enter an amount of ships, for example 10. It will then place 10 ships on a 10x10 grid (0-9). You may enter a coordinate, and it will tell you if it is a hit or a miss. A simplified ...

python beginner game python-3.x  
asked by UNST4BL3 18 votes
answered by Joe Wallis 14 votes

PHP gaming community website

I created a gaming community website about 13 years ago. It uses PHP, SQL, HTML, and CSS, and does not use a framework or template engine. It includes features such as a login system for members, ...

php  
asked by AdmiralAdama 14 votes
answered by tim 16 votes

Caffeine-Driven FizzBuzz

I have been given following problem to solve: If the integer is divisible by 3, return the string "Java". If the integer is divisible by 3 and divisible by 4, return the string "Coffee" If the ...

java fizzbuzz  
asked by Sarang Shinde 12 votes
answered by MT0 2 votes

Recreation of cat in C

I have a school project to create a program that works the same as the Linux cat. The code works, but I just need find out where I can Improve it or handle errors. The program has 3 .c files and 1 ...

c reinventing-the-wheel io posix  
asked by TenTen 11 votes
answered by 5gon12eder 8 votes

Python Keylogger With Built In Security Measures

The program I have developed is currently used for detecting and recording keystrokes. I have added some built in security measures that can easily(somewhat) be modified to suit individual user needs! ...

python python-2.7 windows  
asked by TheLazyScripter 10 votes
answered by Mocking 3 votes

Simple C# HashTable Implementation

Haven't put one of these together since college. How does this look overall? public class HashTable<T, TU> { private LinkedList<Tuple<T, TU>>[] _items; private ...

c# algorithm data-structures reinventing-the-wheel hash-table  
asked by Scott 9 votes
answered by Eric Lippert 10 votes

A status bar for the VBE

One of the most annoying things about the VBE (VBA's IDE), is that it doesn't have a status bar. Rubberduck 2.0 works around this by introducing the RubberduckCommandBar, which [ab]uses ...

c# rubberduck com  
asked by Mat's Mug 8 votes
answered by Heslacher 2 votes

Greatest hits from previous weeks:

More efficient way of doing this hide()/show() jQuery

I currently have the following jQuery code, which does work, but I know there is a better way of doing it without having to repeat myself so much: <script> $(document).ready(function() { ...

javascript jquery  
asked by Kyle 5 votes
answered by Chandu 5 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?

K-means clustering in Rust

I've implemented K-means clustering in Rust. It's my second Rust project (my first one is here: Randomly selecting an adjective and noun, combining them into a message) I would like advice on ...

beginner rust clustering  
asked by lochsh 4 votes

Delete engine for deeply nested linked structure

The background is the question at http://stackoverflow.com/questions/36634394/nested-shared-ptr-destruction-causes-stack-overflow. To summarize, for a data structure that looks like: // A node in a ...

c++ performance c++11 multithreading  
asked by Zizheng Tai 4 votes

Producer Consumer in C

I'm doing multithreading at university and we've been asked to implement the producer consumer problem in C. My code compiles and produces the right result. From debugging it, it seems to be waiting ...

c multithreading homework producer-consumer  
asked by TomJ 3 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