Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Event scheduler in C

One of my university assignments asked us to create a program using struct in order to create a simple event scheduler. This program is for a single day only, not multiple days. Sample Input / ...

beginner c datetime database to-do-list  
asked by Insane 24 votes
answered by Herickson 27 votes

Circular Buffer in C - Follow Up

This is a follow up to this post I uploaded a few days back on my alternative account about a circular buffer in C. I'm confident that I fixed most of the warnings and even added an iterator. ...

performance c data-structures circular-list  
asked by Herickson 7 votes
answered by Martin R 1 vote

A Java subclass of ArrayList that supports rotation in constant time

(See the next iteration.) I have subclassed java.util.ArrayList in order to be able to "rotate" it in constant time simply by moving a finger index. See what I have: RotableList.java package ...

java array data-structures unit-testing collections  
asked by coderodde 7 votes
answered by Pimgd 7 votes

Console app to teach bitwise operators

I'm creating a console app that has the purpose to teach you how to use C# bitwise operators. I have several classes which contain info about the different operators and I instantiate/add them in the ...

c# oop bitwise  
asked by denis 6 votes

Beginner's Calculator code

I am trying to learn AngularJS as a start to my revival of learning, I think that I am getting the hang of it so far, but would like to see what I can do differently with some super simple ...

javascript beginner html angular.js calculator  
asked by Malachi 6 votes
answered by Nilzone- 4 votes

Weaving an array

In preparing this answer, one of the components was an algorithm to rearrange a sorted array in a particular way. To put it succinctly, here's the problem description: Given an array \$A\$ with ...

c++ algorithm c++11 array  
asked by Edward 6 votes
answered by Jerry Coffin 5 votes

Quote of the day program

Create a class diagram and Java code for the following system and scenario, taking into account the possibility of future extensions. The system is a command line utility that prints a short ...

java beginner file  
asked by In78 6 votes
answered by janos 4 votes

Greatest hits from previous weeks:

Count number of words in a text file

Is this a good approach or is there some other solution that I am not aware of? //C++ program to count number of words in text file #include<fstream> #include<iostream> ...

c++ file  
asked by Deepak Singh 12 votes
answered by Jerry Coffin 16 votes

Implementing a linked list using C++

Any suggestions? #include<iostream> using namespace std; class node { friend class linked; private: int data; public: node ...

c++ beginner linked-list  
asked by shubham 3 votes
answered by Loki Astari 15 votes

Can you answer these?

Count groups of open cells around a cell on a grid

Consider a 3x3 square surrounding a cell (marked @) on a grid: 0 1 1 1 @ 0 1 1 1 I need to find the number of groups of open cells (ones) surrounding the center cell. In the above example, there ...

javascript algorithm ecmascript-6  
asked by Tilded 3 votes

Pushing data to an analytics API

This is code that handles pushing data to an analytics API, and IMO it feels too much like Java. logActivity is a method that uses Dispatch to POST the data to this API. I am worried that an ...

scala error-handling  
asked by Aslan Varoqua 2 votes

Simple OpenGL image viewer in C

I'm making an image viewer and before I continue development I want to make sure I haven't done anything bad. In particular, I was wondering if my error handling is sane. Most of the code is ...

c opengl c11  
asked by Ezechiel 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