Newest Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

I already asked this question, but the script I provided was not compliant to PEP-8, so I rewrote the script for better readability. I'm making a platformer game called Uni where this small character ...
Chip01's user avatar
  • 35
3 votes
3 answers
25 views

I'm making a platformer game called Uni where this small character has to go as high as possible, in which the player constantly has to choose between jumping (W) going left or right (A-D) climbing ...
Chip01's user avatar
  • 35
4 votes
1 answer
22 views

Intro (The full repository is here. It contains also some unit tests that do not fit in this post due to size limits.) I am making my very first steps in data compression, and so, decided to practice ...
coderodde's user avatar
  • 32.2k
-4 votes
0 answers
44 views

After another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) it turns out using static methods alternatively to method ...
user294861's user avatar
0 votes
0 answers
29 views

References WebSocketStream Explained WebSocketStream API design Source code https://github.com/guest271314/websocket-stream-impl Implementation ...
guest271314's user avatar
3 votes
1 answer
420 views

I am learning to write an arrows-only, Term only foundations in C, because I noticed Lean4 has types and terms, so I thought maybe it would be nice to have term as the basic building block. Please ...
Attila Vajda's user avatar
3 votes
5 answers
421 views

This code below aim to listing all folders in one directory and get size of each in byte. It uses only pathlib module for that. ...
wilfrid julien's user avatar
1 vote
1 answer
114 views

I created this module to help with the creation of HTML elements: ...
Justin Massey's user avatar
6 votes
2 answers
715 views

I’m implementing a templated LRU cache in C++17 and C++20. High-level design: Recency: ...
sam's user avatar
  • 441
0 votes
0 answers
45 views

I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose. I'm creating a universal system that can model almost any enterprise, but I have a ...
Андрей Александров's user avatar
0 votes
0 answers
34 views

I've been looking on how to use Builder pattern on rust with structs, but all examples I've seen only use primitive data. Given the structs: ...
user31872722's user avatar
2 votes
1 answer
108 views

Intro (This is the continuation of HuffmannEncoder.java - computing prefix codes for arbitrary (generic) alphabets.) (See the GitHub repository.) This time: I have fixed the misspelled ...
coderodde's user avatar
  • 32.2k
-1 votes
0 answers
47 views

I am designing Bash functions that take a timeout argument. The question is, what would be the best way to notify the user that the operation has timeouted, as compared to normal or error condition. ...
KamilCuk's user avatar
  • 109
6 votes
2 answers
442 views

I never remember without looking how to write RB or AVL balancing. but I wanted to make sure I would be able to still write a reasonable dynamically balanced binary tree. If it is asked of me in ...
Ralender's user avatar
4 votes
2 answers
340 views

(See the continuation of this post at HuffmanEncoder.java - computing prefix codes for arbitrary (generic) alphabets - Take II.) I have this Java implementation of the Huffmann encoding. It looks like ...
coderodde's user avatar
  • 32.2k
3 votes
1 answer
706 views

Is there any way to improve my spaghetti as a new C programmer? I'm both trying to make my program functional and nice, as well as easy to debug, and I've done a lot for this, can the codebase be ...
Unknownias's user avatar
9 votes
2 answers
818 views

This is my first time doing any kind of serious coding in C. I watched a Youtube video on what an Arena Allocator should do and I tried my best to make an implementation for it. As of now, we have the ...
Aron Cauê's user avatar
2 votes
3 answers
1k views

I am working on this LeetCode problem where I have to count the minimum number of operations to make all elements in an array equal to zero 3542. Minimum Operations to Convert All Elements to Zero ...
Jared McCarthy's user avatar
7 votes
3 answers
773 views

I've written a class to handle my custom errors in Python. The idea is to simplify raising exception with custom messages, all you should do is raise the class and pass it a message. Everything in the ...
Hossein TwoK's user avatar
4 votes
1 answer
222 views

I decided to practice by modeling some simple, hand-solvable problems using z3py. Below is an example: ...
Flint's user avatar
  • 43
6 votes
4 answers
764 views

First C++ project: write a hash set for a specific scenario where I only need inserts and containment checks. This is not AI slop, everything except for the avalanche function is hand written. Please ...
Bananach's user avatar
  • 191
7 votes
6 answers
768 views

Is there a more direct way (loop-free) to compute this number than computing a level and then going back? ...
CPlus's user avatar
  • 1,467
5 votes
1 answer
456 views
+300

I'm finishing my parsing tool split into three libraries, the first two being: https://github.com/pczarn/cfg https://github.com/pczarn/gearley I am working on PR https://github.com/pczarn/cfg/pull/...
Peter Blackson's user avatar
4 votes
3 answers
83 views

I have a custom object which stores dataframes in memory given a certain hierarchy, and I want to store this data in a file while maintaining the hierarchy. This hierarchy involved parents, children, ...
Marcus Carpenter's user avatar
4 votes
1 answer
198 views

The objective was to create a weight-balanced binary search tree with a well-defined interface. Any critiques or suggestions for improvement are welcome. ...
Chris's user avatar
  • 5,407
2 votes
1 answer
112 views

I have made a Laravel 8 blogging application that supports themes. I had made a custom 404 template for every theme, the path to it being ...
Razvan Zamfir's user avatar
8 votes
3 answers
123 views

I am writing tests for legacy software which has a dependency on CGI scripts on a remote machine. Mocking the dependency would entail modifying the code under test, which is a thing I cannot do at the ...
Afelium's user avatar
  • 133
1 vote
0 answers
25 views

I've implemented a SvelteKit handleFetch hook that manages authentication for API requests with automatic token refresh. The API provides a 15-second grace period where a refresh token remains valid ...
tony's user avatar
  • 433
3 votes
0 answers
78 views

I originally titled my last question as a Unit Test and there was a comment that it was a integration test rather than a unit test. I will say this, indi that comment was an answer and you could have ...
pacmaninbw's user avatar
  • 26.2k
-1 votes
2 answers
178 views

Another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) led to disposing if statements ...
user294861's user avatar
6 votes
2 answers
496 views

This code requires: tile map exported as .csv file tile set as .png knowing tile size knowing the rows and cols of the tile set .png For example, this tileset has 2 rows and 6 cols ...
Hossein TwoK's user avatar
2 votes
0 answers
57 views

I put together this Native Messaging performance test to determine based on evidence which programming language, JavaScript engine or runtime, and WebAssembly compiled code is fastest to round trip 1 ...
guest271314's user avatar
2 votes
2 answers
838 views

Intro In this post, I will present three (3) non-negative integer encoding techniques: Elias gamma coding Elias delta coding Golomb-Rice coding Code ...
coderodde's user avatar
  • 32.2k
8 votes
3 answers
2k views

I'm working on a replacement for make written in Python. Instead of a Makefile, you create a Wormfile.py. This file gets imported dynamically and a Context object ...
Daniel Walker's user avatar
4 votes
3 answers
468 views

Intro In this post, I will elaborate on A simple method for compressing white space in text (Java). Here, I have incorporated some advice offered by Chris. Also, this version preserves a single new ...
coderodde's user avatar
  • 32.2k
2 votes
2 answers
252 views

Intro A sort is called super linearithmic if its running time is \$\omega(N \log N)\$. For example, \$f(N) = \omega(g(N))\$ means that \$f(N)\$ grows "faster" than \$g(N)\$. In this post, I ...
coderodde's user avatar
  • 32.2k
8 votes
1 answer
371 views

I wrote a toy s-expression parser, and I'd like to know if I can make it more Rusty. I'm not terribly worried about the functionality. It's only a Rust exercise for me. ...
adrianton3's user avatar
5 votes
1 answer
524 views

(The story continues in A simple method for compressing white space in text (Java) - Take II.) Intro Now I have that text space compressor. For example, ...
coderodde's user avatar
  • 32.2k
1 vote
0 answers
29 views

I was facing an issue with changing models on the fly — since we don’t just need isolation based on string or ID, but also data-level differences for each HIMS instance. To handle this, I created a ...
Owais Qureshi's user avatar
3 votes
4 answers
2k views

Context I'm returning to Python development after a break and actively learning AI/ML. As part of my learning journey, I'm building a dozen pet projects to strengthen my skills. This is my first ...
Rustem K's user avatar
6 votes
3 answers
968 views

How do I optimise my code more? The goal is to have my code work with more than 200 moving balls, but that takes forever right now and doesn't look smooth at all. Furthermore, I can't get the sizing ...
Theron_Isengard's user avatar
-6 votes
1 answer
122 views

The java.util.Deque implementation from Object oriented programming deque implementation that consists of three elements linked arrays, each array holding reference ...
user avatar
2 votes
1 answer
145 views

Intro This time, I have implemented the Shannon-Fano coding. Code io.github.coderodde.compression.ShannonFanoEncoder.java ...
coderodde's user avatar
  • 32.2k
0 votes
0 answers
38 views

Native Messaging host using Mozilla SpiderMonkey JavaScript/WebAssembly engine. Documentations Chrome Developers MDN Web Docs Microsoft Edge Developer documentation Messaging between the app and ...
guest271314's user avatar
1 vote
1 answer
108 views

(Refer to the entire repository in GitHub.) How it looks like Intro This time, I present my take on Jump point search that I translated from Javascript (PathFinding.js/src/finders/JumpPointFinderBase....
coderodde's user avatar
  • 32.2k
3 votes
1 answer
74 views

I have been making a deep learning framework modelled after Pytorch in pure Python. I have made good progress but my framework is currently not seamless to use because the end user of the framework ...
Featherball's user avatar
7 votes
4 answers
651 views

I'm a hobby coder at best. I know enough to make helpful programs to assist me with day to day life and work (mostly with PHP/JS, some C#). I'm wanting to learn more about good coding practices. I ...
Aethar's user avatar
  • 71
8 votes
1 answer
106 views

I have recently implemented a Mandelbrot set visualizer, which I used to reacquaint myself with multithreading using pthreads. I'm just wondering whether the way ...
blablatruck's user avatar
11 votes
5 answers
904 views

I have a utility that updates, transcodes and renames audio files. Previously I used a function that simply yielded every file that was a good match (based on file extension). As some tasks can take ...
it_serf's user avatar
  • 111
10 votes
4 answers
664 views

I've built a Split Flap Clock, and the code has grown quite a lot, and although it does work in its current state, I am wondering if it could be cleaned up. The whole thing runs on an ESP32 and is ...
Besi's user avatar
  • 265

15 30 50 per page
1
2 3 4 5
1558