Code Review Stack Exchange Community Digest

Top new questions this week:

Solver for Wordle puzzle

After a success with the Jumble puzzle solver, I am doing a Wordle puzzle solver. I know many other Wordle solvers have been posted, yet this is my original version, which emphasizes list ...

python performance beginner game wordle  
user avatar asked by inyoot Score of 9
user avatar answered by toolic Score of 8

Infinite precision integer in C++20

This is my infinite precision integer implemented in C++20. It supports negative numbers. I have implemented addition, subtraction, multiplication and binary integer division, which returns quotient ...

c++ integer c++20 bigint  
user avatar asked by Ξένη Γήινος Score of 5
user avatar answered by indi Score of 5

Excel Bookkeeping Application, Create Ledgers from Chart of Accounts and Journal

I am writing an Excel bookkeeping application that would be suitable for a small business or contractor. The application is based on a book on double entry bookkeeping: https://www.amazon.co.uk/gp/...

vba excel  
user avatar asked by arcomber Score of 5

Timer coroutine

I was trying to learn more about C++ 20 coroutines. After trying to read the documentation and watching few videos, I tried to write a timer that uses coroutines. ...

c++ c++20 coroutines  
user avatar asked by kiner_shah Score of 4
user avatar answered by G. Sliepen Score of 1

More shortest unrestricted paths to touch every square in an n by n grid

This is a part two. The problem originates from here, it is solved for \$n<11\$. A GitHub repository for this code, printing paths, and a collection of all proven best paths, it is open to ...

c++ performance algorithm multithreading pathfinding  
user avatar asked by tomka700 Score of 3
user avatar answered by G. Sliepen Score of 1

Maze game from book Design Patterns with smart pointers and polymorphism

The Design Patterns book chapter 3 about Creational Patterns starts with a maze game. They use the maze as an example throughout the chapter and instead of rooms they have also things like enchanted ...

c++ design-patterns pointers polymorphism  
user avatar asked by elehtine Score of 2
user avatar answered by G. Sliepen Score of 2

MATLAB Gait Analysis Script

Could someone kindly help me review and fix any errors or inefficiencies in this MATLAB script? I’m trying to make sure it’s clean, robust, and optimized. Brief description of what the code does: This ...

csv matlab  
user avatar asked by elena conidi Score of 2
user avatar answered by J_H Score of 3

Greatest hits from previous weeks:

Finding the closest point to a list of points

I'm trying to find the closest point (Euclidean distance) from a user-inputted point to a list of 50,000 points that I have. Note that the list of points changes all the time. and the closest distance ...

python performance numpy clustering  
user avatar asked by dassouki Score of 52
user avatar answered by Jaime Score of 43

Triangle Type Program

Is there any way to simplify it further? ...

java  
user avatar asked by user53068 Score of 6
user avatar answered by maaartinus Score of 9

Update only modified fields in Entity Framework

I'm working on a website on ASP.NET MVC4 and EF5. I want to ensure that only modified values are updated in the database. I'm using a unit of work pattern and repositories for data work. Here's the ...

c# entity-framework asp.net-mvc-4  
user avatar asked by Narayana Score of 36
user avatar answered by Max Score of 30

Count number of each char in a String

I know there is a simpler way of doing this, but I just really can't think of it right now. Can you please help me out? ...

java strings  
user avatar asked by statius Score of 16
user avatar answered by Marco Acierno Score of 35

Very basic calculator using methods

I have made a basic calculator using methods. This is my first attempt at using methods and would like to see if I can improve on this as there is a lot of repeated code. ...

java beginner calculator  
user avatar asked by Niall Szalkai Score of 15
user avatar answered by asteri Score of 13

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++ file  
user avatar asked by Deepak Singh Score of 14
user avatar answered by Jerry Coffin Score of 19

Snake game using PyGame

I wrote a simple Python snake game which is about 250 lines of code. Can someone give me some advice on how I can refactor/make it better? game.py ...

python array pygame snake-game  
user avatar asked by Ryan Score of 27
user avatar answered by Gareth Rees Score of 29

Can you answer these questions?

Image preview and delete for Laravel blog application

I am working on a blogging application in Laravel 8. I have put togheter a way to preview and remove the main article image. In the ArticleController.php controller,...

php laravel blog  
user avatar asked by Razvan Zamfir Score of 1

Plugin to enforce individual-use coupon validation in WooCommerce admin

I'm working on a custom WordPress plugin that ensures individual-use WooCommerce coupons are properly validated when applied via the admin order editor. By default, WooCommerce only enforces this ...

plugin wordpress  
user avatar asked by Pavel Drow Score of 2
You're receiving this message because you subscribed to the Code Review community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3