Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Brainfuck Interpreter written in x86 Assembly

Story time: A week ago I found a question about optimizing Assembly code, then I remembered how awesome Brainfuck was, and the match was made very quickly. I decided to write a Brainfuck Interpreter ...

assembly interpreter brainfuck  
asked by skiwi 22 votes
answered by Roland Illig 15 votes

How many days to Go?

Here's my first serious attempt at writing Go code. This program counts the number of days until a certain date and displays that in the system tray. To do that, it first reads the target date from ...

beginner datetime image io go  
asked by vvye 11 votes
answered by janos 1 vote

Assembler for CPU

I recently put together an assembler for a CPU I designed. I'm looking for feedback on my program structure, formatting, or anything else. I'm self taught on all of this so I don't have opportunities ...

python beginner assembly compiler  
asked by Ben Burk 10 votes
answered by Mathias Ettinger 7 votes

Picking 10 distinct words 'randomly' from List of unique words

My goal is to pick 10 unique words randomly from a List containing 20 unique words. I would remove the duplicate word from the List whenever a duplicate word is added and decrement the for loop ...

java random  
asked by Zero 8 votes
answered by bowmore 11 votes

Color substitution in a BufferedImage

The setPixelColor function below changes the color of pixels. I need some suggestions to optimize this function. Example: public static void main(String[] args) throws IOException { ...

java performance image  
asked by J.D 7 votes
answered by 200_success 4 votes

Library to be used against a specific REST web service

I have been trying to generate a basic library that I can use at work, to call different REST calls towards a software vendor that we are using. I would love someone's opinion on it, and what I could ...

python python-2.7 api rest client  
asked by Marius 6 votes
answered by Mathias Ettinger 5 votes

Simple Linux upgrade script in Bash

As I will be deploying this script on multiple machines with the very same system Linux Mint 18 with rather same configuration, I would like to be semi-sure I won't screw things up much. This little ...

bash linux installer  
asked by Vlastimil Burian 6 votes
answered by chicks 3 votes

Greatest hits from previous weeks:

Simple Java calculator

I am a beginner in Java programming. Here is my simple calculator. I hope you could scan through my coding and let me know if there is any error in my coding or how I could simplify the code. import ...

java beginner calculator  
asked by Isaac 11 votes
answered by Vojta 14 votes

Grouping elements in array by multiple properties

During work, I was given this task: to group elements with similar properties in the array. In general, the problem is as follows: var list = [ {name: "1", lastname: "foo1", age: "16"}, ...

javascript sorting properties  
asked by Saike 24 votes
answered by konijn 28 votes

Can you answer these?

Producer/consumer using counting semaphores and a binary semaphore

This is written using two counting semaphores (emptyBuffer/fullBuffer) and one binary semaphore (mutex): #include<stdio.h> #include<stdlib.h> #include<pthread.h> ...

c thread-safety producer-consumer  
asked by overexchange 2 votes

RC Plane Radio using the Raspberry Pi

This python code is for a homemade RC plane radio using the Raspberry Pi and a USB joystick. It sends values over serial to DSM2/X module for RC planes and other RC vehicles. This Python code is ...

python python-2.7 serial-port raspberry-pi  
asked by ethan Johnston 3 votes

Optimizing rendering with a lot of transformations and save/restore

I have implemented a renderer for shapes described with a L-System grammar. Implementation of that is not important. Basically you feed it an angle and some rules, and it spits out a string of ...

javascript performance animation canvas fractals  
asked by Derek 朕會功夫 2 votes

New blog posts:

Stack Overflow Podcast #94 - We Don't Care If Bret Is Famous

by Jess Pardue on Nov 14

Grab a cookie (before Joel eats them all) and listen to the Stack Overflow podcast #94, recorded Thursday, November 10, 2016 at the Stack Overflow Headquarters in NYC. Today's podcast is brought ...

Stack Overflow Job Search: Better, Faster, Stronger

by Kaitlin Pike on Nov 14

Finding a job you love should be easy and hassle-free, which is how we built Stack Overflow Jobs: Personalized job matches, and no recruiter spam. We’re expanding our promise to users today with even ...

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