As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [framework]

A framework is an existing library or set of libraries to help you complete a common task faster and more easily. Use this tag if you're writing a framework, not if you're just using one. When using a framework the specific framework should be used instead of this tag.

Filter by
Sorted by
Tagged with
15 votes
1 answer
1k views

Battleship strategy evaluation framework

In preparation for the May 2015 Community Challenge, I decided to build a Battleship strategy tester. Implementing an ocean First, there is an underlying Ocean ...
Edward's user avatar
  • 65k
13 votes
1 answer
5k views

Generic Converter framework

I find myself frequently converting between formats, so I have come up with the following conversion framework. The converter interface surfaces a method to convert from a source type to a target type....
Hawk's user avatar
  • 233
11 votes
3 answers
1k views

Finding shortest paths in directed graphs

I have very little experience in programming with C++ and the following small "program" is the 2nd one I have ever written in that language. I am most interested in comments regarding naming ...
coderodde's user avatar
  • 26.7k
11 votes
1 answer
1k views

Bitex - Cryptocurrency Exchange API Framework for Python - Round 2

This is a follow up to my previous review request. BitEx is a Python module I've been working on for a little over 9 months now, as a side project. It was published 6 months ago on GitHub, and as I ...
deepbrook's user avatar
  • 227
10 votes
2 answers
210 views

Html rendering framework with dynamics

I came to the conclusion that the previous framework was too complicated and not easily extendable so I tried it again but this time with dynamics. It's much much shorter and I think it's much easier ...
t3chb0t's user avatar
  • 44k
10 votes
2 answers
321 views

Manifest.JS: A lightweight front-end structural framework

Code review scope My goal with this review is to receive big-picture observations and suggestions for improving the efficiency / ease of writing the front end of a web application with this basic ...
user avatar
9 votes
1 answer
3k views

Database abstraction layer for multiple providers

There's been a lot of questions lately about database provider and repository design especially without entity framework or alike. I thought I try myself to create a reusable framework for this kind ...
t3chb0t's user avatar
  • 44k
8 votes
0 answers
348 views

STTCL FSM framework based on the GoF State Pattern, Part I: The basic interfaces

Preface I have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
πάντα ῥεῖ's user avatar
7 votes
1 answer
111 views

Simple framework for looped applications

I wrote up a quick API to help me save time while writing applications that require either a delay or frame rate. It should require me to implement a void run() ...
Dioxin's user avatar
  • 424
7 votes
1 answer
164 views

HTML-rendering framework for emails

Sometimes I need to auto-generate html-emails. To make this task a little bit easier I created a simple framework that takes care of rendering HTML. Because I'm mainly interested in generating HTML ...
t3chb0t's user avatar
  • 44k
6 votes
3 answers
377 views

Simple object validator with a new API

Quite some time ago I have created the Simple object validator (see also self-answer). The more I used it the more I thougt its API could be better so I have heavily refactored it and would like to ...
t3chb0t's user avatar
  • 44k
6 votes
2 answers
9k views

Building a simple ORM in PHP

I have been curious about how ORMs really work under the hood so I decided to do something simple in PHP. So I basically built two Interfaces: DatabaseInterface and the ORMMapper interface and two ...
mendez7's user avatar
  • 61
6 votes
1 answer
194 views

Undo Framework Design (Revert the changes in the collection)

Requirement is to monitor the changes in a List<T>, possible changes are Add / Remove / Update, which are registered in an ...
Mrinal Kamboj's user avatar
6 votes
1 answer
103 views

Web Development DSL

I'm working on a DSL for web development, similar to sinatra. The git repository is here. I've been attempting to improve this code and write it for 4 months, and as a hobby programmer, I would like ...
thesecretmaster's user avatar
6 votes
0 answers
2k views

Iterate through all the photo library in iOS

This function is supposed to return a map of all unique local identifiers of images that are on the iPhone using the IOS Photos Framework. (it is a map so nSnull or (any object can be mapped to it) ...
Noam Segev's user avatar
5 votes
2 answers
2k views

Small PHP framework template library

The following is a new question based on answers from here: Small MVC for PHP I have written a small template library that I would like some critiques on, located here. If you are looking for where ...
Naftali's user avatar
  • 1,089
5 votes
1 answer
1k views

Adjusting business logic conveniently through JSON and expression trees

I need to evaluate some data. The rules how it should be done are changing frequently (it's an evolving model) so I don't want to rewrite my application each time such a change comes. I'd rather do it ...
t3chb0t's user avatar
  • 44k
5 votes
1 answer
2k views

Telegram Rest API client design

I'm working on a "framework" for Telegram bots and right now everything "just works". I'm now in the process of rethinking about what I wrote and one of the things I dislike a lot is how I implemented ...
fnurglewitz's user avatar
5 votes
1 answer
857 views

Validation extensions v2

I have still another version of my validation extensions. I've reworked it and added some new features. It doesn't relay on expression trees any more but as a compensation the same extensions can be ...
t3chb0t's user avatar
  • 44k
5 votes
0 answers
86 views

Python-style object library for Clojure

Background I am authoring pulley.objective, an Open Source library that provides an object system inspired by Python's object model. I have some features ...
Nathan Davis's user avatar
4 votes
1 answer
531 views

Functional Html builder

This is my third attempt to create a easy to use html builder because I wasn't really satisfied with the first one that wasn't extendable at all and even the one using dynamics wasn't much better. It ...
t3chb0t's user avatar
  • 44k
4 votes
2 answers
644 views

Laravel 5.4: Authentication System

I have recently coded my own authentication system and wondered if there was any way I could make it better? I coded it with Laravel 5.4. getView is called on ...
Beefo's user avatar
  • 171
4 votes
1 answer
91 views

Request handler based solely on reflections ver. 2

This question is connected to the previous one: Request handler based solely on reflections I have edited the code, taking tim's answer in regard, editing the Kernel class cohesion. ...
Kevin Kopf's user avatar
4 votes
0 answers
115 views

Toggle any application feature ON or OFF - follow-up (v2)

This is the second version of my FeatureToggle service (see previous question). It still has the same purpose which is to help control whether a feature is ...
t3chb0t's user avatar
  • 44k
4 votes
0 answers
120 views

One interface for multiple CRUD resources

I asked about an abstraction layer for accessing files (link) a couple of days ago (I decided to not call it a follow-up anymore as there are too many changes). I tried to incorporate many of the ...
t3chb0t's user avatar
  • 44k
3 votes
2 answers
238 views

Simple JavaScript front-end framework for building web components

At my work, we have quite a bit of legacy front-end code written with jQuery and Mustache templates -- some of it dating back to 2011. For a long time, we've needed a framework that would: Provide a ...
Elliot B.'s user avatar
  • 141
3 votes
1 answer
85 views

Framework constructor

I'm working on my framework constructor. First I tried to look into jQuery and understand it, but it's so out of my league. Instead I googled and put this code together. Though there aren't many posts ...
akinuri's user avatar
  • 199
3 votes
2 answers
2k views

Genetic algorithm implementation

Is this the best way to implement a genetic algorithm framework? I'm just a student and wanted to know if I can improve the code that I have done. Some of the code I copied from the framework ...
Angelo Bastos's user avatar
3 votes
1 answer
697 views

Type converter framework (v2)

This is the second version of my type converter framework. The the previous one can be found here: Type creator service & framework In this version I mostly implemented what @Dmitry Nogin ...
t3chb0t's user avatar
  • 44k
3 votes
1 answer
14k views

HTTP Request/Response class

I would like to get feedback on this, which are just simple Response/Request classes. I tried to keep it simple, so I made two ...
samayo's user avatar
  • 301
3 votes
1 answer
356 views

Basic MVC Framework

I want to improve my skills so i startet a very basic MVC framework. Its my first MVC based Framework. Index I rewrited all requests through index.php and the ...
user avatar
3 votes
1 answer
99 views

Simple networking framework in C

Question: What do you think about this design and the implementation? This is a simple networking framework for IPv4, IPv6 TCP client and TCP server for Linux and MS-Windows in C. It uses a single-...
Andre Adrian's user avatar
3 votes
1 answer
77 views

Web application response message API

The following excerpt is part of a web application microservice framework. The goal of the provided module is to define a base class Message that may be configured ...
Richard Neumann's user avatar
3 votes
1 answer
1k views

AutoMapper DSL (Computation Expression) for F#

I have created a DSL for AutoMapper using an F# Computation Expression Builder. The Computation Builder itself is fairly simple, and effectively defines 5 basic operations: ...
Aaron M. Eshbach's user avatar
3 votes
1 answer
278 views

Validation extensions

I've been working on another timesaver because I really really don't like to type all those validation ifs and exceptions over an over again. What I came up with ...
t3chb0t's user avatar
  • 44k
3 votes
1 answer
162 views

A framework for simple multiple-choice quizzes

Just looking for more experienced programmers opinions on this code. It's a framework for making simple multiple-choice quizzes. I am aware that there is the potential to make the arrays dynamic, but ...
user avatar
3 votes
1 answer
76 views

Framework to define and require JavaScript modules

I'm working on a webapp that I use gulp to build. It uses useref to gather and concatenate/uglify the assets used in the HTML files. In this case, as things are getting concatenated, it doesn't make ...
Unilat's user avatar
  • 131
3 votes
0 answers
85 views

Handling boilerplate tasks via service pipelines

Here's a small experiment about handling boilerplate tasks via service pipelines. It's similar to the HTML pipeline but simpler and multipurpose. I've updated the question and this is the 2nd version ...
t3chb0t's user avatar
  • 44k
3 votes
0 answers
264 views

Combine asynchronous return values in SwiftUI

I have 2 asynchronous return values from 2 different classes, one from HealthKit, the other from MotionManager. I combine the outcome of these classes through a combinedViewModel. The code works, but ...
Bjorn Morrhaye's user avatar
3 votes
0 answers
521 views

Generic object-to-XML mapper

This code is part of a larger mapping library I'm working on to address some business concerns of transforming data. I was inspired by mapstruct in Java, but opted for users to annotate / add ...
Igneous01's user avatar
  • 131
3 votes
0 answers
61 views

STTCL FSM framework based on the GoF State Pattern, Part II: Abstraction of asynchronous/concurrency features

Preface I have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
πάντα ῥεῖ's user avatar
2 votes
1 answer
300 views

Mockingbird c++ mocking framework

I have developed Mockingbird a mocking framework for c++, it depends on function injection, here is the code from the repository: ...
muaz's user avatar
  • 121
2 votes
2 answers
136 views

Type creator service & framework

I needed a mechanism for creating types dynamicaly from strings and bytes etc. I tried really hard to use the .net's TypeConverter system as it seemed to be the ...
t3chb0t's user avatar
  • 44k
2 votes
1 answer
207 views

Adding more functionality to tkinter for projects (Revised)

After taking advice from Reinderien, I have completely rewritten the code for my Window() subclass. EDIT *reason for posting was unclear: I would like for someone ...
hunter.logan's user avatar
2 votes
1 answer
566 views

Database interface and PDO adapter

I'm writing my own framework in PHP and I want respect the SOLID principles. I made this interface: ...
fabrix's user avatar
  • 35
2 votes
2 answers
103 views

JavaScript modular framework for a large web-site

In my ASP.NET MVC project I simply inserted <script></script> into my views - it caused code duplications and spaghetti code. Now, I have decided to ...
Yeldar Kurmangaliyev's user avatar
2 votes
1 answer
175 views

Small generic path search framework in Java

I have this small generic path search library. It's not perfect at all, so I need some comments as to have a chance to improve it. com.stackexchange.codereview.graph.model: AbstractHeuristicFunction....
coderodde's user avatar
  • 26.7k
2 votes
1 answer
110 views

418 I'm a TeapotServer for RESTful integration-tests

I created a test-server for RESTful integration-tests that I call TeapotServer because I like the status-code 418 that the ...
t3chb0t's user avatar
  • 44k
2 votes
1 answer
375 views

Implementation of OpenGL context

context.h: ...
nuke_bird's user avatar
2 votes
1 answer
312 views

Basic login with router

It's not finished yet, but I want to know if the structure and the classes are ok and what can I change. Feel free to say anything. To be more specific, I want to know what you think about the login ...
Daniel Albornoz's user avatar