All Questions

0 votes
0 answers
3 views

Fast and low Memory Requiring Lookup Tree Library

Background While working on solving the end game of the russian card game Durak I developed a library small_memory_tree to store the simulation results. You can try the game on my website Modern Durak ...
Koronis Neilos's user avatar
0 votes
0 answers
8 views

Error handling for singly linked list in C

I have seen many list implementation(C) in this site, I know its been asked many times. what i need is some advices regarding Quality of my code especially my list library. How to handle errors in ...
Sai_krishna's user avatar
3 votes
1 answer
131 views

Java: Benchmark findFirst() and findAny() methods on non-parallel streams

I would like to know how representative the following benchmark is? Can we infer from it that findFirst is much slower than ...
Tobias Grothe's user avatar
0 votes
0 answers
25 views

Beginner SwiftUI - Stanford Memorize game

I've started following along the 2023 Stanford iOS development course. I just completed the first assignment - it works fine but the code feels kinda clunky and I'd like tips on improving it, since I ...
Caketray's user avatar
  • 101
0 votes
1 answer
32 views

reassigning a variable with a divide operator gives nan in program when zero is entered [closed]

Please keep in mind that I am very new to programming. I was given a the following question as my assignment in C++: Write a program that computes the value of an nth degree polynomial $$A(x)=a_0+...
user284187's user avatar
3 votes
1 answer
186 views

Presence of UB and memory usage of a std::array initialization

I proposed several techniques to answer to https://stackoverflow.com/q/78672409/21691539. A classical way to answer would be to use std::index_sequence-based ...
Oersted's user avatar
  • 337
2 votes
1 answer
37 views

A Simple BlockingQueue implementation in C++

I'm just dusting off my C++ knowledge in area of multithreading. I started with implementing a producer-consumer pattern inspired by https://jenkov.com/tutorials/java-util-concurrent/blockingqueue....
Matt Black's user avatar
0 votes
0 answers
59 views

Full Promise Implementation

I have attempted to implement the native Promise object provided by the browser in JavaScript. The code is pretty easy to understand. It supports most of the promise functionalities, such as chaining, ...
Napoleon Bonaparte's user avatar
-4 votes
0 answers
35 views

Getting an error saying "android is not defined" [closed]

At the beggining of my code, I define android here: ...
anon1212's user avatar
2 votes
1 answer
368 views

Event sourcing javascript implementation

An event source built around an observer design pattern implementation… ...
user avatar
3 votes
2 answers
801 views

A chess engine in Java: generating white pawn moves - take II

Intro This post continues the A chess engine in Java: generating white pawn moves. I was advised to choose between efficiency and type safety. Since this is my first attempt at a chess engine, I have ...
coderodde's user avatar
  • 28.8k
0 votes
0 answers
33 views

Testing PHP CodeIgniter 3 controller with PHPUnit

I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller. I ...
RedDragonWebDesign's user avatar
4 votes
1 answer
68 views

Backend-snippet of a full-stack web application for creating, viewing, and registering for events

The backstory (you can skip this if you want to) This code stems from a project that I had to do for a presentation for a university class around November 2023. The task was the following: Create a ...
JupperTV's user avatar
-1 votes
0 answers
26 views

Hash Tables: Ransom Note JavaScript Timing Out [closed]

Here is my solution: ...
Patrick Kok's user avatar
0 votes
0 answers
31 views

Scrapy Spider - Code Audit and Optimization Suggestions

I've written a Scrapy spider to scrape product details from a specific website. The spider is designed to navigate through various pages, locate specific products, and gather detailed information ...
I DON'T KNOW's user avatar

15 30 50 per page
1
2 3 4 5
5186