Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

The right way to hang a man

Problem: I have seen a few questions around hangman. Usually this is done in a very hackish way, which usually can not be generalized any further. My thought or question is about the creation of the ...

python python-2.7 hangman ascii-art  
asked by N3buchadnezzar 20 votes
answered by Mathias Ettinger 16 votes

I can has(kell) cheezburger?

This is a very rudimentary lolcats translator (it only works on the phrase "Can I have a cheeseburger") in Haskell. This is my first ever attempt at Haskell (or any functional programming language). I ...

beginner strings haskell  
asked by Michael Brandon Morris 18 votes
answered by 200_success 29 votes

Merge two already sorted linked list

This is a code to merge two sorted linked lists. l1, and l2 are sorted. While calling the merge function via l3, I am passing l3 as a object by referance in that function. Code is running fine, but ...

c++ oop linked-list mergesort  
asked by Bijon Guha 9 votes
answered by Edward 14 votes

Chutes & Ladders Board Generator (June 2016 Community Challenge)

This is an "entry" I made for the June 2016 Community Challenge to make a Chutes and Ladders generator. It generates a random number of chutes and ladders with a total delta of -50 and displays their ...

c# game community-challenge mvp  
asked by Michael Brandon Morris 9 votes
answered by Heslacher 6 votes

Basic Calculator - Takes 2 numbers and does an operation with them

I was wondering if anyone has any suggestions to improve my code. The code works perfectly fine for me (compiled it in BlueJ and Eclipse) but I was wondering what other more experienced programmers ...

java beginner calculator  
asked by Zoratu 9 votes
answered by Tunaki 9 votes

Simple Hangman game in C++

I am trying to create a simple Hangman game. The game has an edit mode for first run in which the user has to supply 6 unique words. The game starts by shuffling words, then for every turn, it selects ...

c++ hangman  
asked by MORTAL 8 votes
answered by coyotte508 4 votes

C++ Heap Sort Implementation

Just checking if I could still do it: #include <iostream> #include <algorithm> std::size_t getParent(std::size_t n) { return (n - 1) / 2; } template<typename I> void heapify(I ...

c++ heap-sort  
asked by Loki Astari 8 votes
answered by MAG 4 votes

Greatest hits from previous weeks:

Very basic calculator using methods

I have made a basic calculator using methods. This is my first attempt at using methods and would like to see if I can improve on this as there is a lot of repeated code. import java.util.Scanner; ...

java beginner calculator  
asked by Niall Szalkai 15 votes
answered by asteri 13 votes

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 14 votes

Can you answer these?

Compacting code for World's Hardest Game remake

I was wondering if someone could quickly skim over this for me really quickly and tell me if there's anything I could improve code-wise. What I have right now seems pretty big and clustered, and I'm ...

java game swing  
asked by Dan95363 4 votes

Quickly applying gravity force between bodies

I have a function for applying gravity forces between every possible pair of bodies on my game. It is the most used function, and can run more than 100k times per frame so every minor improvement on ...

javascript performance ecmascript-6 physics  
asked by Tiago Marinho 3 votes

Storing MySQL data in Memcache

I have written a script that checks if data is known in memcached, and if not it queries it from the mysql db and stores it. I would appreciate any inputs if i have done this the "correct" way, since ...

php mysql memcache  
asked by JPJens 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