Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

Isn't this Interest-ing?

This is the fifth project in my CS1 class. It's a bit more drab than my past projects, so my titles are getting worse unfortunately. :( Write a program that computes the annual after-tax cost of …

c++ beginner homework finance  
asked by syb0rg 17 votes
answered by EngieOP 22 votes

Retro Rocket ASCII Art

Inspired by Nested for-loop ASCII art, I looked at building a more complicated ASCII art than just the normal 'diamond' and 'triangle' variations that crop up occasionally here. The challenge: …

java formatting rags-to-riches  
asked by rolfl 15 votes
answered by maaartinus 11 votes

Multiplayer bowling in Ruby, with variable skill

This is a multiplayer bowling simulator in Ruby. It allows for variable skill levels, and produces weighted random results for each roll based on those skill settings. The methods are grouped in four …

beginner ruby game conditions  
asked by a2bfay 11 votes
answered by Flambino 8 votes

Finding longest word in a string

I was working on a problem from Coderbyte. The challenge was to write a function that takes in a string and returns the longest word in the string. If two words are the same size then it asks to …

javascript strings parsing programming-challenge  
asked by user2801122 10 votes
answered by 200_success 11 votes

Probabilistic matchmaking simulation

The following is a problem I found on this wiki. What can I do to optimize my algorithm, and make this code more C++11? Write a program to discover the answer to this puzzle:"Let's say men and …

c++ c++11 random simulation numerical-methods  
asked by EngieOP 9 votes
answered by glampert 4 votes

Threadsafe HashMap with snapshot support

The problem ConcurrentHashMap provides very weak consistency guarantees w.r.t iteration: guaranteed to traverse elements as they existed upon construction exactly once, and may (but are not …

java concurrency  
asked by radai 9 votes
answered by rolfl 3 votes

Piano app in Swift

I'm making my first app in Swift: a Piano app. I'd like to get your feedback especially about how I can make codes shorter. I maybe have to use arrays and loops and something, and searched by myself …

swift audio  
asked by Keita Bick Ohshiro 9 votes
answered by vacawama 14 votes

Greatest hits from previous weeks:

Learning to code a graph

This is my first attempt at putting the conceptual knowledge I've gained about graphs into code. When searching for examples they all seem overly complicated, and searching for a tutorial or …

c++ graph pointers  
asked by Tyler Hills 5 votes
answered by Loki Astari 5 votes

Faster way to convert DataTable to List of Class

I am using ExcelDataReader to import an excel file to a dataset. Example Excel table below: //ID Name Display Order Active //1 John 1 1 ID, DisplayOrder and …

c# performance linq converting datatable  
asked by devspider 3 votes
answered by IharS 2 votes

Can you answer these?

The Functional FizzBuzz Kata

I run a coding dojo at work. For one session I'm to showing that you can use a kata to get into a new language. I'm using the FizzBuzz Kata to to show F# (and JavaScript) because it is short. The …

beginner f# fizzbuzz  
asked by Paul Spencer 4 votes

Unity Dependency Injection

This is my first time using Unity so bear with me for a moment. I have a sample Visual Studio 2012 solution with 4 projects (but only two of these projects will be used with Unity). This is the …

c# dependency-injection  
asked by burritowarrior 2 votes

AsyncTask and IntentService

I was disappointed using GCM, so I'll use long polling for crucial parts. Following my approach: protected void onCreate(Bundle savedInstanceState) { new LongPolling().execute(); } private …

java android  
asked by Bob 2 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