Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Generating formatted multiplication tables in C++

I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want ...

c++ performance beginner comparative-review formatting  
asked by user31782 14 votes
answered by Edward 11 votes

Implement rate limiting by cookie ID

I want to develop a simple in-memory web request rate limiting module, I am allowed to have 50 requests from each unique cookie ID every 60 seconds. I am wondering if the following code is an optimal ...

java  
asked by jcm 11 votes
answered by Mat's Mug 8 votes

Singly Linked list implementation in C++

How can I improve this code Please tell proper indentation and usage of camel-case. #include <iostream> using std::cout; struct Node { int data; Node* next; }; Node* Create(int data){ ...

c++ linked-list  
asked by Dhruv Sehgal 11 votes
answered by Matthieu M. 3 votes

Student/Class Project Java MySQL

I have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables: students student_id | student_name | hometown ...

java beginner mysql  
asked by Rassisland 9 votes
answered by mdfst13 7 votes

Chrome extension that marks Reddit entries with clickbait sources

So, I've created my first Chrome extension! What this does is it highlights every post on Reddit that comes from a source of dubious quality. It provides a few sources by default and allows the user ...

javascript html css google-chrome reddit  
asked by Jeroen Vannevel 8 votes
answered by Joseph the Dreamer 3 votes

Setting up a development environment

I'm looking for feedback on improving the structure of this code. Also, I could not find the command line executable for Chrome. General feedback is also requested. # # # # Divider - configures ...

bash  
asked by cade galt 0 8 votes
answered by janos 12 votes

Java Singly Linked List Implementation

I've implemented a singly linked list in Java as a practice exercise and would appreciate a review. LinkedList.java public class LinkedList { private Node head; private int size; ...

java linked-list  
asked by j.castillo 8 votes
answered by tim 5 votes

Greatest hits from previous weeks:

Class for reducing development time

There are many PHP PDO classes out there, agreed. However I find they do not allow for flexibility. So I created one that helps reduce development time as little as it may be but it does the job ...

php oop mysql pdo  
asked by Yusaf Khaliq 31 votes
answered by Elias Van Ootegem 48 votes

jQuery dynamic elements like TR and TD, add to HTML table

Is it possible to create dynamic TR and TD elements in an HTML table? Something similar but better than this: jQuery(document).ready(function() { $('button[name="new-title"]').on('click', ...

javascript jquery html  
asked by sebob 4 votes
answered by George 5 votes

Can you answer these?

Making my code faster: Finding the longest path, avoiding obstacles in a 2D plane

The Scenario You are given a matrix of size m x n (width x height) with m*n spots where there are a few obstacles. Spots with obstacles are marked as 1, and those without are marked as 0. You can ...

python programming-challenge recursion pathfinding dynamic-programming  
asked by xor 2 votes

MySQL connection using a static connection

I have been using a static class to connect and retrieve information from a MySQL database and also reading about how static works in php. I'm still not sure if the code is bad or not and why (besides ...

php static  
asked by incompleteness 3 votes

n-queens puzzle in Python

I want to increase the efficiency and reduce the time complexity for the n-queen problem in n*n matrix chess. I am able to run only still (11*11) in normal time otherwise for the big number it is ...

python performance algorithm python-3.x n-queens  
asked by Pooshan Vyas 6 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