Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

Recording Audio Continuously in C

As an ongoing little side project of mine, I've been working on recording audio with the C language. You can see a progression of my code by looking at my past two versions (V1.0, V2.0). I've ...

performance c audio memory-optimization  
asked by syb0rg 18 votes
answered by Iwillnotexist Idonotexist 11 votes

Who's using what where - turning code into symbols

The Rubberduck project is coming along pretty nicely, and for the next version the parsing strategy is getting yet another revision, and this time around it really feels like it's done right. Or is ...

c# parsing antlr  
asked by Mat's Mug 15 votes
answered by Jeroen Vannevel 10 votes

Streaming Collatz

Challenge The recent question The 3n + 1 algorithm for a range inspired me to investigate a Java-8 dependent streaming mechanism for solving the programming challenge: For any two numbers i and j ...

java functional-programming stream rags-to-riches collatz-sequence  
asked by rolfl 15 votes
answered by 200_success 2 votes

Asteroids game clone

I have recently been teaching a JavaScript module on a games programming undergraduate course and I made this game as a learning exercise and as an example for my students to study. I have made games ...

javascript game canvas  
asked by Graeme Stuart 13 votes
answered by 200_success 8 votes

My Rational struct, version 2

I implemented most of the suggestions from Version 1. Thanks to all who took time to review and offer really good comments. namespace NotSystemAndOthersThingsThatIHaveNoPracticalUseFor { // This ...

c# rational-numbers  
asked by Rick Davin 13 votes
answered by Sneftel 4 votes

Object-oriented design for Wheel of Fortune

I'm trying to design the classes for the Wheel of Fortune game in Java. The below diagram represents the classes and the interaction between them. . Below is the partial implementation of it. I ...

java oop game  
asked by FourOfAKind 11 votes
answered by Gerold Broser 8 votes

Beginner text editor

I wrote a simple text editor and I would like to get some critical comments. Below I present only a main part of code. I removed icons, irrelevant functions, etc. I am aware,that JTextArea is not best ...

java beginner swing  
asked by m.cekiera 9 votes
answered by tim 8 votes

Greatest hits from previous weeks:

Java Implementation of Quick Sort

This is my implementation of quicksort (algorithm taken from Cormen book). This is an in place implementation. Please let us know issues with this or any ideas to make it better. It performs at logN. ...

java sorting quick-sort  
asked by user830818 16 votes
answered by Jeff Mercado 16 votes

Stack implementation using linked list

This is a working stack implementation using a linked list. I'm just curious to know if this is a good way of doing it. Any suggestions are welcome. Can we keep track of the number of elements in ...

c++ data-structures linked-list stack  
asked by Software Dev 5 votes
answered by Jamal 4 votes

Can you answer these?

Brainfuck interpreter in F#

I have some concerns, like the updateValue function. I was trying to follow the functional paradigm, but I wonder if I could use another approach or something. My parsing function seems overly ...

f# interpreter brainfuck  
asked by Bruno 4 votes

Using Roslyn to find interfaces within a solution

The intent of the below code is to find all interfaces within a solution whose fully-qualified names match the given predicate. It seems to work, but as I am new to Roslyn I'm guessing there are ...

c# .net roslyn  
asked by Kent Boogaart 3 votes

Timeout watchdog using a standby thread

The simple but generic timeout class to be used watching for network connections, user input, filesystem events, and is intended to have a very simple interface specific to only our use cases (i.e. no ...

c++ c++11 multithreading thread-safety  
asked by Vlad Didenko 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