Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

Voxel World Optimization

This is not related to a Minecraft clone. I am currently writing a turn-based strategy game like Final Fantasy Tactics. The game is played on floating voxel-style islands, which are generated from …

c# performance game concurrency  
asked by Krythic 25 votes
answered by Krythic 1 vote

Calculating freefalling object's height

This is the code for my first CS1 project, I hope to be posting my code here to track my progress of learning the language of C++. I shouldn't be too shabby, since I know C considerably well and have …

c++ beginner  
asked by syb0rg 13 votes
answered by Aurelius 10 votes

Javascript Minesweeper (with Stack Snippets!)

As Stack Snippets are live on Code Review now, I wanted to do something quick in it as part of rolfl's challenge on meta. And when you make things quick, they probably get dirty. And when things get …

javascript jquery game community-challenge  
asked by Simon André Forsberg 12 votes
answered by Joseph the Dreamer 7 votes

Lexer+Parser code for my "Reedoo" programming language

I've been working on my own programming language, as a hobby for the past couple of months now, called Reedoo. It is implemented in pure C++ 11 and uses only the libraries that come with C++; no …

c++ c++11 parsing  
asked by Francis 11 votes
answered by firda 6 votes

Rewrite code from Objective-C to conform with Swift power tools and concise style

I started a project with Objective-C and rewrote it with Swift. The project contains two UITableViewControllers: MasterViewController and DetailViewController. MasterViewController is linked to …

objective-c ios swift  
asked by POB 11 votes
answered by rob mayoff 17 votes

Split camel cased/snake cased String

I want to implement a method which, given some camelcased or underscored String, will return a list of separate words that make up this String. Examples: ISomeCamelCasedString -> {I, Some, Camel, …

java strings  
asked by Kao 11 votes
answered by Kao 2 votes

Living off of chocolate

This is the second project for my CS1 class, this time I'm actually getting it reviewed before I submit it ;) The Harris-Benedict equation estimates the number of calories your body needs to …

c++ beginner homework  
asked by syb0rg 10 votes
answered by Loki Astari 14 votes

Greatest hits from previous weeks:

Different way of writing multiple click functions

I have the following .click() functions: $('.tab').click(function(){ $('.tab').removeClass('activeTab'); $(this).addClass('activeTab'); }); $('.edit').click(function(){ $(this).hide(); …

jquery html  
asked by Kris Hollenbeck 4 votes
answered by Flambino 10 votes

Conway's Game of Life in C++

This is my attempt at Conway's Game of Life. It works, and it's the most complicated program I've made to date. I'm sure it's pretty poorly done. Any ideas on how I can improve on it? #include …

c++ game-of-life  
asked by Twooey 26 votes
answered by Kordalien 42 votes

Can you answer these?

Run length encoding of vectors in MATLAB: looped version and vectorized version

A project I'm working on requires something akin to run length encoding on a vector in matlab. The data is in the form of a numeric vector, and the output is in the form of two vectors, elems and lens …

matlab compression  
asked by M A 1 vote

Variadic template pack, similar to std::tuple, but left-to-right and tightly packed

Preface I am currently writing this pack template to pack all the values (raw / fundamental + arrays of such, especially c-strings) as a helper for my rqueue - record queue currently used for debug …

c++ c++11 template template-meta-programming  
asked by firda 2 votes

Stylish range input, Google Chrome only

I have an input[type=range] element which is customized using CSS to look more modern. I'm unhappy with my CSS because of the need to use position:relative on the wrapping element and …

html css  
asked by Sean Anderson 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