Unanswered Questions
15
votes
0answers
333 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 ...
12
votes
0answers
156 views
Object storing and retrieving using wildcard identifier
I'm writing an interpreter for a scripting language which allows objects to:
Have an alias
Be referenced using a wildcard
Contain child objects
Combination of all three above
For example:
...
11
votes
0answers
111 views
+100
Modeling a Mage character from nWoD, using Django
Goal
Design a representation of a mage character from the World of Darkness RPG, as well their associated spells.
Here is a visual representation of the schema. You can see it more closely ...
11
votes
0answers
232 views
Lua OOP and classically-styled prototypal inheritance
I want to do some object-oriented programming in Lua, and I decided on something like this:
...
10
votes
0answers
468 views
Connect Four AI (Minimax) in Clojure
I wrote a Connect Four game including a AI in Clojure and since I'm rather new to Clojure, some review would be highly appreciated. It can include everything, coding style, simplifications, etc.
But ...
9
votes
0answers
102 views
Go Go Gadget Web Crawler
In A Tour of Go, you are given the following problem:
In this exercise you'll use Go's concurrency features to parallelize a
web crawler.
Modify the ...
8
votes
0answers
136 views
Object-oriented file upload handler for a CMS
I've started with a bunch of functions, made the code work, then I spent a day rewriting it in an OO way, as much as I can.
I've tried to group up the task into objects, letting the relative data go ...
8
votes
0answers
125 views
Implementing a generic and covariant Set in Scala
I'm struggling with manually implementing a simple purely functional Set that's also generic and covariant on its type parameter:
...
8
votes
1answer
365 views
A program to proxy MDNS requests to the DNS server
I wrote a program to proxy MDNS requests in a local network to the DNS server. This is useful because in some private networks, host names ending in ".local" are configured in the DNS server. But ...
7
votes
0answers
93 views
Mapping a textual method name to a function
My program (a daemon hosting a Minecraft server) exposes a D-Bus interface to allow interaction with the server from other processes. To that end, and to avoid a chain of repetitive conditionals in ...
7
votes
0answers
125 views
Let's play some Swift Poker
Before you can do any sort of card game, you must first write some code to define your deck of cards.
One thing I've noticed in looking at some of Apple's Swift interfaces is that they very much so ...
7
votes
0answers
98 views
UIntArray class in PHP (part 2)
This question is the follow up of the question:
UIntArray class in PHP
@Brythan provided a really nice review and I have improved my class.
I have addressed almost all the issues he pointed out ...
7
votes
0answers
95 views
Simple, encapsulated C++ logger that can deal with fork/exec situations
Motivation: for whatever reason, some of the available 3rd party logging libraries don't really deal with programs that get fork'ed/exectuted well. For instance, ...
7
votes
1answer
114 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 intended to emulate the behavior of the x86 div instruction (though the ...
7
votes
1answer
396 views
MembershipProvider with Entity Framework and IoC
I am using Castle Windsor as my IoC container and I registered it as a DependencyResolver to let the MVC framework know about it.
With the Entity Framework I have this DbContext:
...