Top new questions this week:
|
I’m practicing C and wrote a function to trim leading/trailing spaces in a string: …
|
…
|
We have worked an idea out that seems to have a wide usecase and there seems to be no examples for it on the web for python tkinter. Having unlimited space to draw can be crucial and can be done wrong …
|
I decided to learn more about how interpreters work and made a simple Scheme interpreter in Python. I’d like to hear some advice on how I could have written this better, or on the mistakes I’ve made. …
|
I implemented the following code for determining if two floating point numbers are equal is_float_equal(…). It handles the tests for my use cases well, but I was …
|
I made a borders filter in C. It works properly, but I think it could be optimized and better designed; the formatting is abysmal. It uses too many lines for the border cases and has too many …
|
I am new to coding, I hope you can help me to improve my code 🙂 First of all: The code works correctly. …
|
Greatest hits from previous weeks:
|
After a few pages reading Learning Python Hard Way, I’ve decided to try to make a simple cm-to-inch calculator. I am very excited about this achievement, and I want someone to check my code. It works …
|
I’ve been working on this elevator program for quite some time now and finally finished it and made it work and I’m pretty proud of myself, but I’d like to see ways how to optimize my code so I can …
|
Are there any ways I can clean this code up to make it more user-friendly? …
|
According to Donald Knuth in “The Art Of Computer Programming”, the following is how to find the greatest common divisor of two positive numbers, m and n, using Euclid’s Algorithm. Divide m by n …
|
I am using ExcelDataReader to import an Excel file to a dataset. Example Excel table: …
|
I have recently written the following Pong game in Java: Pong class: …
|
Here is my code for removing duplicated values from an array. I think I tested it with the most possible cases. Any suggestions or bugs? …
|
Can you answer these questions?
|
The problem statement is as follows: Sudoku is a game played on a 9×9 grid. The goal of the game is to fill all cells of the grid with digits from 1 to 9, so that each column, each row, and each of …
|
What I Want? I want to make an event system in React that cuts back on unnecessary re-renders and stops props drilling. What I Did? The code I came up with is the following: …
|
I’m building a Laravel app (with Vue3 and InertiaJS), and I’m attempting to create relationships between three models: User Area WorkHours where WorkHours is the …
|