Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Human-like mouse movement

The code will move the mouse from a start point (xs, ys) to finish point (xe, ye) like a human would. I'd like some help possibly shortening the code (by optimizing it) and making it more readable. ...

c# performance animation pascal  
asked by Owen 11 votes
answered by Dannnno 9 votes

Simulate a printer

I'm trying to recreate a printer in java,I'm fairly new to programming so I'm using huge if else blocks inside a single function to dictate the logic of the program, I'm noticing this is creating a ...

java  
asked by PacketSniffer 9 votes
answered by yitzih 13 votes

Functional Framework

First Class Functions So, VBA doesn't support functions as first class objects - no passing functions as arguments or storing them in variables. I eventually found a way to implement function ...

vba functional-programming  
asked by Blackhawk 8 votes
answered by ThunderFrame 2 votes

Saving the Universe - Code Jam 2008 Qualification problem A

I'm trying to brush up on my Python, so I'm going through some simple problems. Big concerns are style, though any algorithmic problems I'm open to suggestions on. Basically you have an input file ...

python programming-challenge python-3.x  
asked by Adam Martin 7 votes
answered by vnp 4 votes

print(fizz..buzz)

I couldn't help but notice we didn't have a FizzBuzz in lua yet. I've always wanted to take a shot at Lua, so here goes nothing. Code: function fizzBuzz(maxNum) local fizz = "Lua" local buzz = ...

beginner fizzbuzz lua  
asked by Mast 7 votes
answered by hjpotter92 2 votes

Bare bones battleship game

This is basically the beginnings of a battleship game. There is only 1 ship which takes up 3 of six locations on a 1 x 6 grid. The locations are created by finding a random location on the grid and ...

javascript oop game  
asked by bcmcadam 7 votes
answered by juvian 0 votes

Retrieving all institutions in a specified country

I'm checking each variable to prevent null exception, but still wondering can this be improve in much simpler and cleaner if you will be writing the same code? Please see the below snippet: ...

c# asp.net-mvc-4  
asked by Robert Peter Mansion 7 votes
answered by Mat's Mug 3 votes

Greatest hits from previous weeks:

A* search algorithm

NodeData stores all information of the node needed by the AStar algorithm. This information includes the value of g, h, and f. However, the value of all 3 variables are dependent on source ...

java algorithm search graph pathfinding  
asked by JavaDeveloper 18 votes
answered by amon 15 votes

Convert object array to hash map using lodash

The use case is to convert an array of objects into a hash map where one property is the key and the other property is the value. Common case of using this is converting a "link" object in a ...

javascript beginner lodash.js  
asked by Pete 23 votes
answered by Jon Anderson 42 votes

Can you answer these?

Document Merger using PhpDocX

I'm developing a document merger that utilizes an FTP site containing hundreds of documents. FTP Connection Function private static function establishFTP() { $ftp_conn = ...

php laravel ftp ms-word phpdocx  
asked by Trojan404 3 votes

TCP chat room in Python

I have recently started looking into networking with Python. I saw some tutorials about the socket library so I decided to give a "live chat room" idea a go. It works (on Windows, os.system("cls") may ...

python python-3.x socket tcp chat  
asked by cheiffeast 3 votes

Prim's MST Java implementation

Can someone review this code, just have look if it's logically correct or If you may point me to a more simple and minimalist program import java.util.ArrayList; import java.util.Arrays; import ...

java algorithm graph  
asked by aishwat singh 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