Unanswered Questions
17
votes
0answers
386 views
Factor script to change case of all filenames in a directory
In the absence of a full-fledged tutorial, I am teaching myself to program in the Factor language by writing a bunch of functions that I will eventually use in command-line scripts.
One common ...
8
votes
1answer
157 views
Mostly portable 128 by 64 bit division
I wrote this out of curiosity. It is based on the theory behind Knuth's Algorithm D and is intended to emulate the behavior of the x86 div instruction (though the ...
7
votes
0answers
28 views
Simple Java Wizard
Working on a project, I encountered a need to create a wizard and when I ran into the need for a second, slightly different wizard, I generalized into the following:
Top-level Wizard class:
...
6
votes
0answers
43 views
Creation of Queen Ann's Lace fractal
I've created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it ...
6
votes
0answers
240 views
Quicksort async vs serial
I am playing with async and I figured I'd write a parallel implementation of Quicksort while trying to look at various optimizations. I want to keep the generics ...
5
votes
0answers
36 views
Block_breaker clone in pygame with simple edge detection
I tried to make this clone of
brick_breaker on my own
in one day.
However I have some concerns about the code so far:
It uses simple edge detection code (as if ball goes out of screen <600 or ...
4
votes
1answer
18 views
Java (Android) abstract class correct implementation
I am looking for some comments on my code and whether or not this is the best way to create an abstract class. In addition, some of the abstract methods are rarely called so I use the base variables ...
4
votes
0answers
45 views
Python program that scrapes my CS teacher's website
I am new to programming, and I'm looking forward to seeing what I can do to improve my code.
I've been working on creating an individual final project for my python CS class that checks my teacher's ...
4
votes
0answers
38 views
Event Listener and Publisher
This is my first attempt at creating an event system.
My plan is that upon publishing, the listener receives both a reference to the model and to the publisher. This allows the publisher class to ...
4
votes
0answers
32 views
filter function implementations using copy_if Algorithm vs. For Loop
I have the following method of some class, which also defines the method isAllowed:
...
4
votes
0answers
25 views
Is there a better SQLite update / insert pattern than this?
I've got a function which updates an existing record or inserts a new one, but it looks very clunky to me.
...
4
votes
0answers
62 views
Optimizing variadic template pack subsequence matching algorithm
I'm building a small MPL module in one of my utility libraries for fun and learning experience.
One of the problems I'm trying to solve is getting a list of all indices where a sequence of types ...
4
votes
2answers
73 views
Getting HTTP Status Code
I have code that take in a URL (via URL or String) and returns the status code. I am new to web development, so it is very possible that I may be taking a poor approach at this. One thing I don't ...
4
votes
1answer
85 views
Removing popup notification, the dirty way
I'm new to coding and I am self-taught up to this point, so my scope for creativity is quite limited. As such I'm doing something in particular that I suspect isn't the "best" way of achieving this ...
3
votes
0answers
18 views
MS Access to PostgreSQL converter
I was hoping to get some feedback on the implementation of this class for programmatically converting an access file into a PostgreSQL schema (works by obtaining schema data from the cursor object).
...