Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Generating formatted multiplication tables in C++

I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want ...

c++ performance beginner comparative-review formatting  
asked by user31782 13 votes
answered by Edward 9 votes

Singly Linked list implementation in C++

How can I improve this code Please tell proper indentation and usage of camel-case. #include <iostream> using std::cout; struct Node { int data; Node* next; }; Node* Create(int data){ ...

c++ linked-list  
asked by Dhruv Sehgal 11 votes
answered by Edward 18 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 10 votes
answered by Volune 6 votes

Student/Class Project Java MySQL

I have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables: students student_id | student_name | hometown ...

java beginner mysql  
asked by Rassisland 9 votes
answered by mdfst13 7 votes

Java Singly Linked List Implementation

I've implemented a singly linked list in Java as a practice exercise and would appreciate a review. LinkedList.java public class LinkedList { private Node head; private int size; ...

java linked-list  
asked by j.castillo 8 votes
answered by tim 5 votes

Randomly generate spelling mistake in string

My code will generate a spelling mistake inside of a string 50% of the time. It will retrieve a letter from a random index in the string like, "t" and then duplicate that letter like, "tt" and store ...

javascript strings random  
asked by Owen 8 votes
answered by Jonah 21 votes

Milking a COM type library: "fun" with COM reflection

Once upon a time, there was a duck that wanted to know where and how user code was calling into the VBA standard library and Excel object model. To match the rest of its API, the poor little duck had ...

c# reflection rubberduck com  
asked by Mat's Mug 7 votes
answered by RobH 2 votes

Greatest hits from previous weeks:

Grouping elements in array by multiple properties

During work, I was given this task: to group elements with similar properties in the array. In general, the problem is as follows: var list = [ {name: "1", lastname: "foo1", age: "16"}, ...

javascript sorting properties  
asked by Saike 15 votes
answered by konijn 17 votes

Sorting an HTML table with JavaScript

The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make? <html> ...

javascript html sorting  
asked by Sharanya Dutta 8 votes
answered by ProGM 6 votes

Can you answer these?

Tic Tac Toe - Stage 2: console PvP + PvE + "EvE"

A while back I had opened this topic: Tic Tac Toe - Stage 1: console PvP I had to put that mini-project on hold due to exams, but I've started working on it again a couple of days ago. Now it's ...

java tic-tac-toe  
asked by Beko 3 votes

Tracking the bounding box of a map

Context I have a bunch of data points that look roughly like this: (defn rand-key [] (into [] (repeatedly 3 #(- (rand-int 19) 9)))) (defn rand-val [] (rand-nth [:foo :bar :baz :qux])) (def ...

data-structures clojure coordinate-system  
asked by Elogent 5 votes

Snake Game OCaml

I wrote the following two players snake game in OCaml. It is working fine (I did not pay much efforts to the graphical appearance though). As a beginner in OCaml, I would be happy to have some review. ...

game ocaml snake-game  
asked by RUser4512 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