Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

Immutable objects in Java

I just finished studying immutable objects and their advantages so I thought I'd create one of my own. Here is my employee class that extends a person class. It is not mutable since I have getters to ...

java beginner immutable  
asked by Ishan Soni 22 votes
answered by rolfl 30 votes

Wait, is this... LINQ?

Context I'm working on a little project that consists in a series of Microsoft Excel add-ins (.xlam). The code being submitted for review here, is located in the Reflection project: Feel free to ...

data-structures linq vba delegates  
asked by Mat's Mug 16 votes
answered by RubberDuck 5 votes

Is wrapping exceptions good practice?

I have recently been refactoring some code in an effort to improve the exception handling, particularly to aid in improving the level of information given to developers during development. However I ...

c# design-patterns exception-handling error-handling  
asked by Nick Williams 14 votes
answered by Jeroen Vannevel 15 votes

Self-made Linked List

I was tasked by my teacher with making a linked list by myself, so I could understand the concept better. Here is the MyLinkedList class: public class MyLinkedList<T>{ private Node<T> ...

java beginner linked-list  
asked by Attila Herbert 13 votes
answered by rolfl 14 votes

Small password generator app with GUI

This is a GUI-based random password generator, which supports internationalization. It consists of 6 small classes: Main classes: Application - entry point GUI - self-explanatory PassGen - class ...

java swing  
asked by SingularityFX 12 votes
answered by Pimgd 10 votes

LW, MTD, STD, YTD Sales... all in line and looking pretty

That's Last Week, Month-to-Date, Season-to-Date, and Year-to-Date sales. I have a table-valued function for each one, that takes a date and returns all CalendarDate values for the interesting time ...

performance sql-server t-sql join  
asked by Mat's Mug 11 votes
answered by rolfl 5 votes

Snake game in C++

This is my version of the Snake game written in C++. How could it be improved and what general advice would be useful for future projects? #include <iostream> #include <conio.h> void ...

c++ beginner game  
asked by TheKittyKat 11 votes
answered by Yann4 17 votes

Greatest hits from previous weeks:

Consuming an ASP.NET Web API call in an MVC controller

In a new project I am creating for my work, I am creating a fairly large ASP.NET web API. The API will be in a separate Visual Studio solution that also contains all of my business logic, database ...

c# performance asp.net web-services  
asked by davidisawesome 11 votes
answered by Peter Kiss 3 votes

Implementation of Heap Sort

Is this the correct implementation of Heap Sort using Java? How can it be improved further? import java.util.Arrays; public class HeapSort { public static int heapSize; public static int ...

java sorting heap  
asked by n1234 5 votes
answered by 200_success 6 votes

Can you answer these?

War Game GenServer Implementation

One of the Etudes for Elixir exercises is to create a War game that uses the spawn, send, and receive primitives, but I went all out and made it an OTP GenServer. I run the game in iex with: {:ok, ...

elixir  
asked by Havvy 3 votes

Multithreading in a 2D Mining Game

I have implemented some basic multithreading in my 2D mining game that I asked about in a previous question. The first part is working out great (creating the initial object instances in the ...

game multithreading objective-c sprite-kit grand-central-dispatch  
asked by bazola 5 votes

Ruby Koans: Greed Game

I am learning Ruby with Ruby Koans. This is my code for the final assignment: the Greed Game. here are the rules: Playing Greed Greed is a dice game played among 2 or more players, using 5 ...

ruby programming-challenge random  
asked by jc newb 1 vote
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