A compiled set of exposed objects that isn't directly executable, but that can be referenced and used by other code.

learn more… | top users | synonyms (1)

3
votes
1answer
48 views

A Java library for formatting console output

In perl, there is that format facility for console output. I thought it might be good to practice some library design instead of algorithms once in a while. This may be compared to a GUI library: you ...
0
votes
0answers
37 views

User management library after hard reject on Codecanyon

I spent 2 months working on a user management library, with the intention of selling it on Codecanyon (I've never sold anything there before). On Codecanyon, there's a screening process for ...
1
vote
1answer
63 views

Library to handle strings and numbers

I have created a pretty bad (just being honest) Golang library. I will take any and all advice, as long as it's helpful. Sorry it's so long. Also, I easily forget some things, so many functions in ...
5
votes
2answers
49 views

Mini HTML document builder in Java - follow-up

(See the previous (and first) iteration.) Now, I have incorporated all the modifications proposed by janos, and, thus, I have the following: HtmlViewComponent.java ...
2
votes
1answer
42 views

Mini HTML document builder in Java

(See the next iteration.) I have this tiny library for building HTML pages in Java code: HtmlViewComponent.java ...
6
votes
1answer
57 views

Stack Exchange API Python library

I wrote a package a few years ago to make my interactions with the Stack Exchange API more straightforward. I've maintained it over the years and used it in several scripts I've written that interact ...
0
votes
0answers
26 views

Join several columns with a single formula returning an array in Google Sheets

The title was taken from Join several columns with a single formula returning an array a Q&A hosted at http://webapps.stackexchange.com. The content is based on the original version of the answer ...
3
votes
3answers
80 views

Bit manipulation tool set

I made a tool set to facilitate bit manipulation as follows. Any comments are welcome, be it about the interface design, the implementation, or even the naming. Also, I want to make sure that the tool ...
3
votes
1answer
54 views

Shorthand JS library, take 2

Based on the feedback and suggestions I received in my previous post (Lightweight shorthand JS library), I've updated and optimized Mozart JS. Again, the goal is to have some jQuery-like ...
2
votes
2answers
48 views

Lightweight shorthand JS library

Long story short: I wanted some of the time-saving functionality of jQuery without the bulk of the entire library. So, I wrote a lightweight shorthand library inspired by jQuery I'm calling Mozart JS, ...
6
votes
1answer
74 views

JavaScript DateTime library

To keep it succinct, I created a simple way to input dates and times into an input box without worrying about formatting. As an alternative to date time pickers, dropdowns and all the other various ...
14
votes
3answers
994 views

A library to do maths with matrices written from scratch

Background Some time ago I've encountered some very good articles about neural networks that represented an ANN as a set of matrices, so everything was done using matrix operations. These articles ...
5
votes
1answer
33 views

Initializing static, machine-specific data in C using a compile-time generated header

I'm using some rather old C code (circa 1996, written in K&R style) to do robust geometric computations, available here, for a library I'm trying to write. In order to work properly, this code has ...
5
votes
2answers
51 views

Single class which holds response and error message

I am working on a library which will make HTTP call to my rest service basis on inputs passed to this library. And whatever response comes back from service whether it is successful response or ...
0
votes
0answers
160 views

Floyd-Warshall algorithm and a tiny all-pairs shortest path library in Java

Now I have implemented the Floyd-Warshall algorithm with emphasis on dropping space complexity from \$\Theta(V^3)\$ to \$\Theta(V^2)\$. Also, I tried hard to make the API as logical as possible. What ...
2
votes
1answer
38 views

My library for 2 dimensional shapes

This is my first OOP PHP library and wanted to get advice on how I can improve what I wrote. This is what I needed to do: I'm also not sure on what it meant by "proportionally resize the shape up or ...
15
votes
1answer
243 views

C# Treap implementation

I recently developed a simple treap data structure in C#. In the future, I may have the class extend IDictionary. For now, I only expose a public accessor and a ...
15
votes
1answer
111 views

Event-based Xbox Controller polling

The goal of the following code is to be able to use an Xbox Controller in a Java program, it works with the jinput library. Unfortunately this library is rather old, has little to no documentation ...
1
vote
1answer
42 views

Grid navigation library

I am trying to turn my code into a working library (my first). Currently you simply call GridNav() and it sets up and executes. I am currently refactoring out all ...
2
votes
1answer
143 views

Functional pattern matching in C#

I recently read a really interesting post on adding functional pattern matching to C#. Here's a quick and dirty implementation using delegates and dictionaries. Right now, I require that ...
3
votes
0answers
85 views

Simple REPL command parser in Java

I have this tiny library for implementing simple command line languages. It is not flexible enough for handling actual programming languages, but hopefully it may help implementing simpler REPL's ...
10
votes
4answers
252 views

ASCII art generator in C

I have written an ASCII art generator library. I was practicing data abstraction and code abstraction and I wanted to know if there is something that can be improved. File tree: ...
12
votes
1answer
349 views

Cactus Reborn - A game engine for text-based adventure games

I'm currently working on reincarnation of the Cactus project, Cactus Reborn, and I've gotten the basic implementation so far. At this point, you can create simple, playable games. There are currently ...
11
votes
1answer
267 views

Framework to track changes and relationships in C#

Recently, I wanted to see how I might could track state changes to objects, and manage relationships (1 to 1, 1 to N, N to N) between types in C#. This was a really interesting project, and I'm ...
-1
votes
2answers
32 views

A better way to execute a streaming library [closed]

I am building a wrapper around the sharp image library. The usage revolves around chaining tasks. But I wish to execute it by just passing in a config. An example ...
4
votes
0answers
106 views

Better rand() API

I use this document as a basis for my mini-library: Motivation The std::rand friends are discouraged in C++14, so we want: A direct replacement to ...
2
votes
2answers
62 views

Library Class: Point - Follow up

This is a follow up of this post. Changes: I tried harder to make my code readable yet concise. All Point instances are immutable and unique. New, useful ...
8
votes
3answers
327 views

Floating point equality in Java - follow-up

This is a follow up post for this question. There aren't a lot of changes. The changes (all of them major) are: I've decided to ditch my previous approach using ...
6
votes
1answer
98 views

Password building and verification

I'm building a library for myself to use to store user passwords. The library itself shouldn't do the retrieval of data, but it should provide container classes for the data. I would like to know ...
4
votes
1answer
82 views

Dijkstra's shortest path algorithm in C

Now I have this C implementation of the famous algorithm: dijkstra.h: ...
3
votes
2answers
111 views

Library for C++ programs

Here is some of the code in my library. If there any inefficient things in my code, let me know. UPDATE: The following code is deprecated. All of your fixes have been incorporated. The project now ...
2
votes
2answers
56 views

C++ Minimalistic Unit Testing Library

I was looking for a unit testing library for C++, and I found many. Unfortunately, I decided I didn't want to use any of them. I decided to make my own. This is the result. I made heavy use of the ...
2
votes
2answers
244 views

C++ Optional Implementation

I haven't done much programming in C++, so I figured I'd try making an Optional class. I'm mainly concerned that I didn't follow good conventions or that I didn't ...
21
votes
4answers
831 views

Floating point equality in “Numbers.java”

Floating point inaccuracies are really annoying. I understood that in its true sense while developing the next version of Point (this time I'm actually foolproofing my code). Before I upload it for ...
4
votes
1answer
119 views

Generic vector implementation in C using macros

I while ago I experimented with macros in C and came up with the idea of implementing a generic vector library using macros. This code uses the non standard typeof ...
2
votes
0answers
91 views

Efficient Sets and Maps with Treaps

I wrote up a Treap implementation to serve as the base class for a bunch of augmented data structures (interval sets, plane (2D) sets, order statistic trees), replacing my RB-tree base. Some ...
4
votes
3answers
399 views

Solidworks EPDM add-in

I need to expand the functionality of this project to encompass more commands (you may notice in GetSelectedFilePaths() I have a case that is not currently used, ...
3
votes
1answer
90 views

Class in a DLL to extract data from a file via many accessors

I'm making a class that takes a path to a text file as an argument in its constructor, and then parses the text file and pulls out a lot of data that it stores as private members. Most of these ...
7
votes
1answer
129 views

Image manipulation using HTML5 Canvas

I have recently started researching some computer vision, and in the process of discovering some interesting things I have been compiling some functions that allow me to manipulate images at a low ...
12
votes
2answers
543 views

Returning result and error status for number type conversions

Looking for review of design strategy of using a struct to return the functional result and error status. Your experience of how my design approach may succeeded ...
7
votes
1answer
64 views

Using delegates to avoid duplicate creation of resources

I'm writing a PCL that uses an HttpClient to go visit a few sites and extract data from them. My initial code looked like this: ...
4
votes
4answers
238 views

Engineering a minimalist image interface without templates

I'm practicing different ways of class design, so I'd like feedback on the design characteristics. Of course code practice comments are also welcome. It was a conscious decision to omit templates. My ...
3
votes
1answer
101 views

OpenGL-based library

I've been working, for a month, on an OpenGL library called alpha++. Basically, it is a framework that allows the user to create 3D scenes easily. I would like to ask your advice on how I could make ...
1
vote
1answer
153 views

System to handle the short lived async task

I'm developing an application in which there are many short-lived tasks which are run in separate threads. I've developed a generic and reusable system to handle such a requirement. The code snippet ...
0
votes
0answers
41 views

Foundation for MVP in Android

I have been experimenting with the MVP pattern in Android, especially inspired by Advocating Against Android Fragments. I'm trying to build a library out of it, where the concept of ...
7
votes
1answer
102 views

Korean Romanization to Hangeul library

After a little work, I've finally ironed this out... Though could I get someone to go over this and see if there is a better way to present this library within the code, before I publish it? Premise: ...
7
votes
1answer
126 views

Validation macro

I would like a review of a Scala validation library I am writing. For now we can focus on the regular expression component. The usage is described in RegexExample.scala There is an outline of the ...
11
votes
1answer
356 views

Cactus (Prototype) - A game engine for text-based adventure games

@Annonomus Penguin, @QPaysTaxes, and I are building an engine for easy creation of text-based adventure games, like Zork. The engine is still in its early stages of development, and the following code ...
2
votes
1answer
119 views

ThreadPool based on ASIO, using a particle emitter

This code exists in my home repo and in general nobody else has really touched it. Living in such a vacuum has left me kind of uncertain of the actual code quality and correctness which is why I am ...
5
votes
1answer
153 views

Pyglet: scene manager

This is my brief summary of Pyglet: it's a powerful, efficient, high-tech cage. But once you're in there, once you call pyglet.app.run(), it's all over - you can't ...