Unanswered Questions
25
votes
0answers
313 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 ...
12
votes
0answers
205 views
Yet another 'any' class implementation, named 'some'
This is a follow-up of 'any' class implementation. After posting my answer, I kept working on the code towards parameterizing with respect to memory management as I had promised. I ended up in some ...
12
votes
0answers
240 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 ...
10
votes
0answers
2k views
Fluent LinkedIn REST API client interface design
There is a handful of LinkedIn clients written in C# on the NuGet package library, but afaict most only do authentication via LinkedIn. I found a couple which offer a linkedin rest api interface. Of ...
8
votes
0answers
568 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.
...
8
votes
1answer
865 views
Intranet PHP application
I'm more of an IT guy (no CS course) with a strong and passionate relationship with Unix and I love KISS.
I'm writing an application to help my coworkers with their daily tasks. Every now and then I ...
7
votes
0answers
64 views
Storing global styles and utilizing them throughout view controllers
Assuming an app has many display styles, fonts, colors, etc., and that we never want to hardcode values, I've created an AppVariables object that houses properties ...
7
votes
0answers
99 views
Sequencially remove members that “repelled” by previous members
I was working on a project that need to remove extra data such that the remains are not "too close" to each other, and the algorithm should be as generalize as possible. To have more general usage, I ...
7
votes
0answers
91 views
PHP-framework with MVC architecture and Active Record pattern for the DB management
I tried to create the PHP-framework, with no experience in the task like this:
Folders:
...
7
votes
0answers
93 views
Recursively using reflection to merge fields
I'm using the Observer pattern to notify my UI that the object they're representing has changed. Also, I'm refreshing this object from the interwebs. Therefore, I'm ending up with two instances ...
7
votes
0answers
132 views
Bash script to clone all public repos or gists for a specified user, optionally to a directory of choice
I wrote this script as a way to backup and/or download quickly a set of repos or gists from a user. I don't have any major concerns but I'm a noob at bash scripting, and I've been scouring the ...
7
votes
0answers
81 views
Runtime expression autocompletion
I've written a function that can be used at runtime to suggest how the provided incomplete Lua expression can be completed so that it would make sense (that is, it would evaluate to a non-nil value). ...
7
votes
0answers
107 views
Out of order class resequencer
I got bored recently and wrote a tool to re-order out of order classes in Python files. This can occur with some auto-generation code tools for databases and the like; these files can sometimes be ...
7
votes
0answers
174 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:
...
7
votes
0answers
229 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 ...