Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

"ONCE", "UPON", "A", "TIME"

I'm working on a small program to perform various tasks on text content, primarily at the word level. I wrote these methods as ways to help prepare the raw text file into something more malleable, ...

java strings array regex io  
asked by Phrancis 19 votes
answered by 200_success 14 votes

Oh my goodness: How many selfies have I taken?

The title is a joke on how some people take a lot of selfies pictures Recently, in The 2nd Monitor, there was a brief discussion on selfie answers, starting with this post. At one point, a user said ...

sql stackexchange  
asked by SirPython 17 votes
answered by Phrancis 14 votes

Floating point equality in ""

Floating point inaccuracies are really annoying. I understood that in its true sense while developing the next version of Point (this time I'm actually foolproofing my code). Before I upload it for ...

java library floating-point  
asked by ambigram_maker 15 votes
answered by Tom Leek 17 votes


I felt nostalgic recently, and decided to install a Commodore-64 emulator. C-64 BASIC 2.0 is the first language I ever programmed in... some 20 years ago (yes, C-64 was already well beyond deprecated ...

fizzbuzz basic  
asked by Mat's Mug 15 votes
answered by Heslacher 10 votes

AngularJS - REST + Authentication service

I have a REST web service that uses OAuth 2 for authenticating and authorizing requests. I have an endpoint, that when receiving the correct credentials, responds with an access token that will be ...

javascript angular.js  
asked by Mati Cicero 13 votes
answered by A Red Herring 13 votes

Full C++ Snake game

I managed to finish my approach on the legendary Snake game. You move around with the WASD keys. I would like to hear your opinion and maybe ideas on how I can improve frame rate because now it sort ...

c++ game console windows  
asked by TheTask1337 13 votes
answered by Ethan Bierlein 10 votes

Project Euler #1: Multiples of 3 and 5

Challenge Description: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples ...

python programming-challenge python-2.7  
asked by Song Kyungwoo 12 votes
answered by Taemyr 12 votes

Greatest hits from previous weeks:

Simple authentication in ASP.NET MVC 5

I am building an ASP.NET MVC 5 application and, for reasons which are irrelevant at this point, I am attempting to build my own means of authenticating users. I'm still very new to programming, ...

c# beginner reinventing-the-wheel authentication  
asked by Jason 5 votes
answered by Marc-Andre 4 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 12 votes
answered by Gaui 14 votes

Can you answer these?

Generating an attendance spreadsheet

I have written a Ruby class to generate an attendance spreadsheet based on user input of a date range. The below find_all is a class method which queries data and after manipulations is saved in a ...

ruby conditions hash-table iterator  
asked by Sam Snoop 2 votes

My own version of a search binary tree

I wrote my own version of a search binary tree in Java. Could someone kindly review it? public class Tree { private Node root; public Node find(int id) { Node current = root; ...

java data-structures tree  
asked by user1883212 2 votes

Nothing compiler/interpreter, Part 2

Part 1 I've followed some of the suggestions: Adding newlines to error messages Implementing options (I decided to use boost instead of getopt) Using strerror for fstream failure Allow multiple ...

c++ c++11 compiler  
asked by user82726 6 votes
Subscribe to more Stack Exchange newsletters

Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3