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 "Numbers.java"

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

Commodore-FizzBuzz

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 Heslacher 10 votes

Greatest hits from previous weeks:

Basic Java dice game

public class diceGame { public static void main(String[] args) { int dice1; int dice2; int count = 0; int theSum = 0; int lowest = Integer.MAX_VALUE; ...

java beginner random simulation dice  
asked by user3026468 14 votes
answered by 200_success 21 votes

Depth First Search & Breadth First Search implementation

I've implemented DFS and BFS implementations. I want to check if the code is readable, contains any issues, and can be improved. GraphImplementation package graphs; import java.util.*; import ...

java data-structures graph breadth-first-search depth-first-search  
asked by fscore 6 votes
answered by 200_success 19 votes

Can you answer these?

Aggregating data from multiple worksheets into a consistent format

First off, this is the 3rd (and probably last) review of the project in question. You can find the previous question here. The Macro accesses a workbook containing 8 worksheets each with similarly ...

vba excel  
asked by Zak 4 votes

Web scraping from the Google Play store

I am using this R function to web scrape data from the google play store. Is there a way to increase its efficiency using R? This code takes about 4 seconds for 14 urls with my machine/internet ...

performance r web-scraping  
asked by CFM 3 votes

Ruby-like squish in Haskell

squish is an onomatopoeic string function provided by Ruby on Rails that works on strings. Given a string, squish condenses all the consecutive spaces into one.1 (Imagine that you take a string at ...

beginner strings haskell  
asked by Caridorc 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