Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

I can has(kell) cheezburger?

Edit 13 June: I have made a new and improved version here. Original Question This is a very rudimentary lolcats translator (it only works on the phrase "Can I have a cheeseburger") in Haskell. This ...

beginner strings haskell  
asked by Michael Brandon Morris 18 votes
answered by 200_success 29 votes

Tic Tac Toe vs PC

Please help me reduce its complexity and maybe optimize it a little bit more. #include <stdio.h> #include <string.h> #include <time.h> #define size 3 void Clear_board(char ...

beginner c tic-tac-toe  
asked by sergeyrar 10 votes
answered by Edward 21 votes

Chutes & Ladders Board Generator (June 2016 Community Challenge)

This is an "entry" I made for the June 2016 Community Challenge to make a Chutes and Ladders generator. It generates a random number of chutes and ladders with a total delta of -50 and displays their ...

c# game community-challenge mvp  
asked by Michael Brandon Morris 10 votes
answered by Heslacher 7 votes

Merge two already sorted linked list

This is code to merge two sorted linked lists. l1 and l2 are sorted. While calling the merge function via l3, I am passing l3 as an object by reference in that function. The code is running fine, but ...

c++ oop linked-list mergesort  
asked by Bijon Guha 9 votes
answered by Edward 14 votes

Snakes and Letters

This is the "Clean up the words" challenge from CodeEval: Challenge Given a list of words mixed with extra symbols. Write a program that will clean up the words from extra numbers and ...

python beginner strings programming-challenge error-handling  
asked by Legato 8 votes
answered by Evert 6 votes

Finding Pythagorean triplet in array

We have an integer array as: private int[] arr = {1, 3, 5, 14, 18, 29, 78}; We have a function which takes three inputs of the array and checks whether a*a=b*b+c*c If the function returns true ...

java array complexity  
asked by WISHY 8 votes
answered by Tunaki 9 votes

Thread to send heartbeat UDP packets

This C code will run on an embedded machine with a Linux OS. It should create data packets (ASCII) to repeatedly be sent to a UDP server. Just to give an overview about what functions should do: ...

c linux pthreads udp status-monitoring  
asked by Joao Ferreira 8 votes
answered by chux 5 votes

Greatest hits from previous weeks:

Swing calculator - first GUI program

I've recently made a calculator using Java and Swing. I'm okay with the results but I'm curious what are the major flaws I've made (assuming there are, because it is my first program making GUI). I ...

java swing calculator  
asked by Karkoon 14 votes
answered by Simon Forsberg 11 votes

Sorting an HTML table with JavaScript

The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make? <html> ...

javascript html sorting  
asked by Sharanya Dutta 8 votes
answered by ProGM 7 votes

Can you answer these?

Naive parallel Sieve of Eratosthenes in Java

My naive version now is too slow. I think setting/accessing concurrent atomic bit is way slower compared to access/modify an array of boolean. Second, the parallel execution only happens on the ...

java algorithm concurrency sieve-of-eratosthenes bitset  
asked by rdllopes 6 votes

Validation extensions v2

I have still another version of my validation extensions. I've reworked it and added some new features. It doesn't relay on expression trees any more but as a compensation the same extensions can be ...

c# unit-testing validation extension-methods framework  
asked by t3chb0t 4 votes

Mailmerge from Excel to premade template in Word

I've written the following code to take data from the Excel file "Data" and use it for a mailmerge in a prepare Word template named "Template." I'm new to using VBA in word or Access, so any feedback ...

vba excel  
asked by user1996971 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