Unanswered Questions

32
votes
0answers
514 views

Capture the notion of invertible functions

I find sometimes it is useful to capture the notion of invertible functions. The idea is that if two functions f :: a -> b and ...
16
votes
0answers
180 views

FizzBuzz in Forth

There are quite a large number of existing implementatons of FizzBuzz but I awoke this morning in a cold sweat with the terrible revelation that Code Review had no FizzBuzz implementation in Forth! ...
14
votes
0answers
272 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 ...
13
votes
0answers
202 views

Shift and merge numbers as in 2048 game code

I started to learn Rust last night. Given its parallelization capabilities, I thought a good starting point would be porting my C++ AI for 2048 to Rust. This is the function implementing the shift ...
12
votes
0answers
65 views

Tiny Lua library to get char pointer from string

Background I'm using Lua with luaglut to do some OpenGL stuff. The luaglut API is almost identical to the gl/glut C APIs. Sometimes, gl functions want a pointer to some data, for example: ...
11
votes
0answers
212 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: ...
11
votes
1answer
654 views

boost::any replacement with std::unique_ptr support

I needed a boost.any look-a-like, that could handle a std::unique_ptr. I came up with this. Please provide some C++11 criticism. ...
10
votes
0answers
274 views

Portable CMake script

I'm trying to write a portable CMake script for a simple Qt application. The target platforms are Win and Mac OSX. But as you can see, it's quite a monster already. Are there any CMake profs? Can you ...
7
votes
0answers
99 views

Git hook that checks out branch that was pushed to this repository

Description If you install this hook in your repository and push branch foo-automerge to this repository, this hook will merge this branch into working copy if: ...
7
votes
0answers
80 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: ...
6
votes
0answers
70 views

Game Server Querying

I made a package for Node.js that allowed the querying of game servers (or any UDP server(untested)) using UDP. What it does is sends the query to the server and adds the query into a queue. When the ...
6
votes
0answers
51 views

English-Russian irregular words tester

Could you please offer some suggestions about my self learning project? It is really hard-coded, but I have no idea what to do next. I'm using angular (only few ...
6
votes
0answers
123 views

Is my LoginView class valid?

I know the Model, Controller and View's purpose, but I have never really found a good concrete class example of a View class. Usually I see people having some small ...
6
votes
0answers
250 views

Optimizing puzzle game involving sequence numbers

I am currently developing a puzzle game that has sequence numbers. The player has to fill the grid with sequence numbers in ascending order. Starting from 1 the ...
6
votes
0answers
291 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 ...

15 30 50 per page