Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [library]

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

Filter by
Sorted by
Tagged with
32 votes
3 answers
2k views

Small PHP Viewer/Controller template

I have written a small template Viewer/Controller esque library that I would like some critiques on. The library is located here If you are looking for where to start, check out ...
Naftali's user avatar
  • 1,089
31 votes
1 answer
4k views

Unit Testing in VBA

Unit testing in VBA is... lacking. (What isn't lacking in VBA though?) Since I've become more interested in unit testing lately, I decided I needed something better than ...
RubberDuck's user avatar
  • 30.8k
29 votes
1 answer
5k views

Extensible logging

Whenever I need logging functionality in .net, I use a logging framework, such as NLog. Obviously there's no logging framework for vba, at least none that I know of. As much as I love using NLog, the ...
Mathieu Guindon's user avatar
28 votes
5 answers
4k views

Automagic testing framework for VBA

Building on @RubberDuck's recommendations, I now have something I find... beautiful. I'm sure there's a couple of things left to polish - this site is about making great code out of good any code, ...
Mathieu Guindon's user avatar
27 votes
4 answers
2k views

PHP Autoloader Library

Basically, I had written this class a little while ago to ease autoloading of our local libraries. The premise is that everything is split by packages into multiple layers of sub-packages. Classes ...
ircmaxell's user avatar
  • 714
26 votes
4 answers
2k 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 ...
Hungry Blue Dev's user avatar
25 votes
6 answers
2k views

A Library Class : Point

I am trying to create a library of my own which contains (among others), a class called Point. As the name suggests, it is intended to encapsulate a point ...
Hungry Blue Dev's user avatar
25 votes
5 answers
839 views

Templating libraries' intelligibility and their performance (compared to mine)

I've just started writing my own little templating library in JavaScript, because as I went through others, there is always this voice in head, which says: "Oh, this is a lot of code and functionality....
Jon Lamer's user avatar
  • 405
24 votes
2 answers
2k views

parcel: a JSON parsing library in C

I've created a JSON parsing library in C, and would like some feedback on it (feel free to submit a pull request on GitHub). Any and all suggestions are acceptable, but I would prefer if reviews were ...
syb0rg's user avatar
  • 21.8k
21 votes
1 answer
787 views

Coroutines in C

Please have a look at this little coroutines library ccoro: http://sam.nipl.net/code/ccoro I'd appreciate a general code and style review, and your kind comments! ...
Sam Watkins's user avatar
20 votes
0 answers
2k views

Building a good C++11 template library - compile-time checked enum array [closed]

The task is to add data or values to members of a given enum class. The compiler should check if a value for each enum member is ...
Mike M's user avatar
  • 341
19 votes
3 answers
3k views

Min function accepting varying number of arguments in C++17

Come across this problem once again in the book The Modern C++ Challenge. 18. Minimum function with any number of arguments Write a function template that can take any number of arguments and returns ...
Lingxi's user avatar
  • 818
18 votes
3 answers
2k 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 ...
ForceBru's user avatar
  • 455
17 votes
2 answers
1k views

Python-like C string library

Most of the C code I have written has never been seen by anybody else, and I wonder if my code follows normal practices, especially how my code performs security-wise. The code is for a library that I ...
Sindre Smistad's user avatar
17 votes
1 answer
989 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 ...
rookie's user avatar
  • 1,233
16 votes
1 answer
1k views

value_ptr<T> - a C++11 header-only, deep-copying smart pointer that preserves value semantics for polymorphic and undefined types

== UPDATED: next revision HERE == My previous two iterations were here and here. I've since finalized the concept as described in the title, and would appreciate any feedback on the new solution ...
Tom's user avatar
  • 417
16 votes
1 answer
362 views

Open source project to ease the Assert part from the functional tests of .Net Core Web APIs

I have built an open-source project based on FluentAssertions in order to solve some recurring tasks I was doing while testing the .Net Core APIs I'm developing. I find the capability of doing in ...
Adrian Iftode's user avatar
15 votes
3 answers
5k views

Building a better Collection. Enumerable in VBA

VBA's 'Collection' is.... lacking, so, I've been working on a better Collection object that implements many of the features of C#'s Enumerable. This is very much inspired by this question and a follow ...
RubberDuck's user avatar
  • 30.8k
15 votes
2 answers
8k views

2D counterpart of std::array in C++17

I implemented a 2D counterpart of std::array named array2d in C++17. It is an aggregate like ...
Lingxi's user avatar
  • 818
15 votes
1 answer
640 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 ...
skiwi's user avatar
  • 10.6k
15 votes
1 answer
543 views

Virtual Texturing - Page Indirection Table

I'm working on a Virtual Texturing library for mobile devices based on OpenGL-ES. This is the PageIndirectionTable, one of the library components I would like to ...
glampert's user avatar
  • 17.1k
14 votes
2 answers
2k views

Efficiency/design of trim() library code

I am working on some library code and I am trying to optimize my trim() functions. To that effect I am trying to figure out how best to deal with each kind of input....
Galik's user avatar
  • 403
14 votes
2 answers
3k 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 ...
chux - Reinstate Monica's user avatar
14 votes
1 answer
675 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 ...
Ethan Bierlein's user avatar
14 votes
1 answer
538 views

Extensible logging - DatabaseLogger

Recently I wrote a logging API that features an ILogger interface. I wanted to extend my library with a DatabaseLogger ...
Mathieu Guindon's user avatar
13 votes
3 answers
395 views

MMMRjs a product of BYTES Genesis

We have published a product today called MMMR.js this product is licensed under the MIT license and is built by Syed Mohammad Sannan. The uniqueness of this product is that it is built with and for ...
Syed M. Sannan - alt's user avatar
13 votes
4 answers
409 views

Bare-bones string library

After years of criticizing others, I've finally found the time and worked up the courage to polish up one of my bits of code and solicit criticisms of my own. This is a simple dynamic-string library ...
Corbin's user avatar
  • 10.6k
13 votes
1 answer
2k views

Steganography for images

For a school project I'm working on a small library to do steganography. I've just finished the first method of steganography and thought I'd get some feedback. This steganography method works by ...
Simon Verbeke's user avatar
13 votes
1 answer
286 views

Logging library

Due to several limitations of the standard library's logging module, I wrote my own. Below are the most important parts. You can find the whole library here. Any feedback is welcome. ...
Richard Neumann's user avatar
13 votes
1 answer
137 views

ThorsSQL Lib: Part 3: Layer 1

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
Martin York's user avatar
  • 95.2k
13 votes
1 answer
486 views

A vanilla JavaScript library for typesetting pseudocode in HTML documents

I have this plain JavaScript library for typesetting pseudocode in HTML documents. (See the documentation for details.) (See the GitHub repository - broken as of now.) Source code algotype.js <...
coderodde's user avatar
  • 28.5k
12 votes
3 answers
19k views

Implementation of C Standard Library Function ntohl()

This is an implementation of ntohl() that I wrote as an exercise. ntohl() takes a uint32_t ...
ad absurdum's user avatar
12 votes
3 answers
149 views

Dynamic library to intercept oddsock hostname lookups

Just for the fun of it, I decided I would try to create sort of an intermediate DNS system for the oddsock SOCKS proxy. With this, the domain name extension .unet is statically resolved when requested....
phyrrus9's user avatar
  • 223
12 votes
1 answer
3k views

A regular expression parsing library in C

I've created a regular expression (regex) parsing library in C, and would like some feedback on it. Speed is really important to me, but any and all suggestions are acceptable. ...
syb0rg's user avatar
  • 21.8k
12 votes
1 answer
683 views

String interpolation library

I was bored over the last couple of days and wrote up a string interpolation library for JavaScript. I'm very pleased with its functionality, it passes it 79 tests cross browser and the comments and ...
Ivo Wetzel's user avatar
11 votes
3 answers
2k views

strcat_new() function, not present in standard C library

strcat_new() function, not present in standard C library. Syntax: char *strcat_new(char *delim, long num_args, ...); The code is ...
user avatar
11 votes
3 answers
436 views

Preconditions library

Over the past year I've quietly developed a library for checking method preconditions. The project is hosted at https://bitbucket.org/cowwoc/preconditions/ I would like to get your feedback on the ...
Gili's user avatar
  • 219
11 votes
2 answers
4k views

Cross-platform message box library

I recently started work on a game project, and decided to use GLFW for windowing / OpenGL context handling. GLFW doesn't have support for creating message boxes / dialogs, and I was unable to find ...
Samusaaron3's user avatar
11 votes
2 answers
10k views

Having sync and async methods by implementing future interface

I need to make a library in which I will have synchronous and asynchronous methods in it and this library will be used by our customer in our company. Some customer will call the ...
david's user avatar
  • 1,947
11 votes
2 answers
1k views

Too many objects, too "deep" class structure?

I have a pretty large model library I'm working on and it's turning out quite complex, or so I believe at least and I could use a second opinion. The basic idea is that the user should only have to ...
Hjalmar Z's user avatar
  • 245
11 votes
2 answers
3k views

Using standard library to simplify pairwise iteration of container values

I came up with this code whilst answering this question. Is there a simpler way of doing this using standard library? I want to iterate over every object and do something with every other object. ...
Open AI - Opting Out's user avatar
11 votes
1 answer
2k 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 ...
rookie's user avatar
  • 1,233
11 votes
1 answer
937 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 ...
Ethan Bierlein's user avatar
11 votes
1 answer
1k views

JSON C++14 library API/implementation [closed]

I'm creating a C++14 header-only JSON library for fun, learning experience and to use it in my personal projects. I'm looking for feedback on: Its API/interface: since I'm using modern C++, I want ...
Vittorio Romeo's user avatar
11 votes
0 answers
353 views

Host-Agnostic Model-View-ViewModel Infrastructure

I've written an API that unlocks some serious MVVM capabilities with VBA's MSForms UI framework. This is the complete code-behind for an example ...
Mathieu Guindon's user avatar
10 votes
4 answers
7k 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: ...
u185619's user avatar
  • 815
10 votes
1 answer
458 views

A library for interacting with JPL Horizons

I'm writing a tiny Python library that fetches data from Horizons, JPL's solar system data and ephemeris computation service. An overview of their batch CGI is here. While the script is simple, I ...
WarmTaunTaun's user avatar
10 votes
1 answer
8k views

Creating a class library in JavaScript

I am an experienced Java programmer, but fairly new to JavaScript. I am creating a chat library in JavaScript, and have it working, but want to know if I am going about this correctly, and following ...
James's user avatar
  • 101
10 votes
1 answer
317 views

OSGi-like infrastructure

I am a moderately new Scala developer working mostly by myself, so I don't have anyone to tell me what I'm doing wrong (except that the system mostly does work, so it can't be too awful). I would ...
Donald.McLean's user avatar

1
2 3 4 5
7