Code Review Weekly Newsletter

Code Review newsletter

Top new questions this week:

Easier user input in C++

I've always been a little bothered by the fact, that in order to get user input in C++, one had to use up to three lines of code in an ugly manner like the below to get user input for a specific type, ...

c++ io c++14 user-interface  
asked by Ethan Bierlein 23 votes
answered by 5gon12eder 31 votes

Searching for bad Minecraft questions on Gaming.SE

To preface this post a little bit, I'll explain a little bit of the "backstory" here. The Stack Exchange site, Gaming.SE, also known as Arqade, often has a large influx of bad questions about the ...

sql-server stackexchange t-sql  
asked by Ethan Bierlein 15 votes
answered by rolfl 13 votes

Event-based Xbox Controller polling

The goal of the following code is to be able to use an Xbox Controller in a Java program, it works with the jinput library. Unfortunately this library is rather old, has little to no documentation ...

java library wrapper  
asked by skiwi 15 votes
answered by VoiceOfUnreason 3 votes

Comparing two lists

I am getting two different lists of members, then if certain conditions meet, I add more members to the list before converting into an array. Is there any way this could be improve? I guess we can ...

c#  
asked by Please Teach 11 votes
answered by Jeroen Vannevel 10 votes

Checking if two numbers have the same sign

Is there a more elegant way than the following to check if two numbers have the same sign? bool sameSign(int num1, int num2) { if (num1 > 0 && num2 < 0) return ...

c# integer  
asked by John Demetriou 9 votes
answered by durron597 0 votes

The Handy-Dandy Apocalypse Assistant

Code Review is running rampant with an infection. A zombie infection. Everywhere posts are becoming rapidly mutated into slobbering, green freaks of nature. But the citizens of Code Review are ...

javascript stackexchange userscript  
asked by SirPython 9 votes
answered by Quill 6 votes

Custom networked remote manager

I've spent my fair share of time criticizing other people's code on this site; but I'm finding out I'm kind of a hypocrite. Almost everything I've written so far has been some program whipped together ...

java networking  
asked by Motoko Kusanagi 8 votes
answered by Dronz 0 votes

Greatest hits from previous weeks:

Program to insert, search for and delete an element from an array

I'd like this code to be improved. package com.array.demo; import java.util.Arrays; public class ArraysDemo { public static void main(String[] args) { // TODO Auto-generated method stub ...

java beginner array  
asked by Arun Prakash 8 votes
answered by janos 6 votes

Brute force password-cracker

I am just coding some classic brute force password cracking program, just to improve myself. I've explained how my program works at the start of the code. Check some of those screenshots to ...

c++ performance beginner loop  
asked by daktari 12 votes
answered by Jamal 13 votes

Can you answer these?

Scala - Console User Interface Framework

I've been learning Scala and I'd love to get your feedback in order to improve. As an exercise I made a simple framework for creating command-line user interfaces. Any and all comments are welcome, ...

beginner scala console  
asked by RonyHe 2 votes

Scala Binary Search Tree

In an attempt to get deeper down into Scala, I decided to make a BST using as many interesting concepts as possible in order to explore everything Scala has to offer. Taking inspiration from this ...

scala  
asked by rosshsr 1 vote

Directed graph isomorphism in Java

Given two input directed graphs \$G_1 = (V_1, A_1)\$ and \$G_2 = (V_2, A_2)\$, the problem of isomorphism asks whether the two directed graphs are isomorphic, or in other words, whether the two input ...

java algorithm graph  
asked by coderodde 4 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