Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Modularise Project and Deduplicate Code By Loading External Modules On Startup

Starting point I kind-of inherited a VBA project at work that consists of a bunch of Word document templates that provide users with the tools they need to create documents according to company ...

vba ms-word  
asked by Chris 13 votes
answered by Raystafarian 6 votes

Word Inverter in C

I've just made this program and I want to know how to improve it. It just receives a word and prints it backwards. Sequences of numbers are also accepted, but not white spaces (that's why I used ...

beginner c strings  
asked by Lúcio Cardoso 12 votes
answered by David Foerster 21 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 11 votes

Drawing the flag of Liberia

I am working on this assignment to draw the flag of Liberia for my essentials of computer programming class. I finished it but had extra time to kill and noticed that a couple similar blocks of ...

java loop homework graphics  
asked by Smarticles101 7 votes
answered by StardustGogeta 8 votes

Repository Pattern without an ORM

I'm trying to learn the Repository pattern, and I have some questions regarding my current understanding of it. All the examples I've been able to find of database repositories use ORMs, but for a ...

php design-patterns repository  
asked by jpt 7 votes
answered by lilobase 2 votes

Button-clicking UI for a game

I've been working on this game for a couple weeks now as a purely personal project to help myself learn Java. I'd like to know if I'm on the right track with my project. Items I'd like specific ...

java beginner swing layout  
asked by Mikey Harris 6 votes

Comparing vehicle crash data the previous year

I have created an automated macro which takes vehicle crash data from a .csv file and automatically creates a pivot table and charts and compares it to the previous year. The code is approximately ...

vba memory-management excel csv macros  
asked by Cyclops 6 votes
answered by Raystafarian 4 votes

Greatest hits from previous weeks:

Getting/setting default values from my App.config

Imagine that I need a color palette form my Winforms application to have a consistent look. What I did was create a static helper class, and helper methods that I can call from anywhere in my code ...

c#  
asked by Sergio Tapia 50 votes
answered by akmad 34 votes

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 12 votes
answered by asteri 12 votes

Can you answer these?

Block Allocator

I wrote below block allocator for exercise and would love to get your suggestions. Main features I wanted to have : Detecting buffer overflows with canary terminator. Being able to allocate ...

c++ memory-management  
asked by trxsi 6 votes

Session expiration handler using PHP and jQuery

What are some good improvements on this script to detect when a session is no longer valid? Important definitions: session.gc_maxlifetime - (default 1440 seconds) defines how long an unused PHP ...

javascript php jquery ajax session  
asked by Richard_Grant 2 votes

Unit Testing Against Exceptions

I am writing a Swift library. I'm writing unit tests for that library. I am afraid that some of the code that I am testing will possibly throw exceptions. In Swift, we can handle errors, but we can ...

unit-testing objective-c error-handling swift  
asked by nhgrif 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