Skip to main content

Code Review Weekly Newsletter - Thursday, February 26, 2015

Code Review newsletter

Top new questions this week:

Calculate distance using speed of sound

I've been working on learning Java and this was a challenge as part of a chapter on data types: Create a program that computes how far away, in feet, a listener is from a sound. Sound travels ...

java beginner oop  
asked by Phrancis 19 votes
answered by 200_success 24 votes

Parsing log files of HearthStone: Loading card data without external libraries for JSON

I'm still working on a parser that can parse log entries from a game called HearthStone, the overall idea is that it will read the log file live when the game is running, parses the log file and show ...

java javascript json  
asked by skiwi 12 votes
answered by Simon André Forsberg 9 votes

Lottery number generator

def getRandomNumbers(count, min, max) array = [] while array.length < count tmp = rand(max) + min if array.include?(tmp) next else array.push(tmp) end ...

beginner ruby array random  
asked by Frommel 10 votes
answered by 200_success 6 votes

YAuB - Yet another Micro Benchmark

Note -> Follow-on question posted here: YAuB - Micro Benchmark Follow-on I recently answered this Beautiful String question, where the task is to maximize the value of a string by assigning each ...

java performance  
asked by rolfl 9 votes
answered by Simon André Forsberg 4 votes

The Beauty and the Strings

This originally appeared in Facebook's hacker cup 2013. Solving it was fun, though I find myself looping through similar data quite often. Challenge: Print the maximum beauty of strings. ...

java performance programming-challenge lambda rags-to-riches  
asked by Legato 9 votes
answered by janos 5 votes

World Map Viewer with LibGDX

I am working on a game where the player can walk around a world comprised out of a grid of tiles. The World object contains a HashMap of Region objects which each has a HashMap of Tile objects. ...

java game libgdx  
asked by bazola 9 votes
answered by Simon André Forsberg 6 votes

Solving a Binary Puzzle

A while ago I started solving Binary Puzzles. Not having done much C++ in my life, although it feels like I have a pretty good understanding of C++ in general, I figured it was time to do some C++! ...

c++  
asked by Simon André Forsberg 9 votes
answered by R Sahu 5 votes

Greatest hits from previous weeks:

Very simple PHP PDO class

There are many PHP PDO classes out there, agreed. However I find they do not allow for flexibility. So I created one that helps reduce development time as little as it may be but it does the job ...

php oop database pdo  
asked by Yusaf Khaliq 23 votes
answered by Elias Van Ootegem 37 votes

Fade-in and fade-out in pure JavaScript

I decided to build my own fade-in fade-out function, since that is all I need on my page. Please comment on things I can make better. <!DOCTYPE html> <html> <head> ...

javascript animation  
asked by Hakan 10 votes
answered by palacsint 4 votes

Can you answer these?

Long running Python "server status" collector

I wrote a small program that collects the server status, caches it for a certain amount of seconds, and then sends that to a mothership server. It's broken down into a few pieces, starting with ...

python performance python-2.7  
asked by jsanc623 3 votes

Simple Chess Game, Part 2: The Pieces

As I was writing my first part of my Chess question, I realised that I couldn't fit all my code into one question (I exceeded the character limit), so I will continue here. The pieces all share the ...

java game  
asked by Manny Meng 4 votes

An .htaccess for our entire site

We have this long .htaccess mainly rewriting our URLs. Everything works fine (except blog titles containing a ' , but we're working on that) but I'm sure it can be shorter. Feel free to rewiew our ...

.htaccess  
asked by G.EGCB 5 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

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...