instruction
stringlengths
71
71.9k
I'm trying to create data feed script for real time bitcoin data for OkCoin exchange using their websocket API (documentation) and a database manager for storing. There are two channels I am interested in: trades and market depth. Once the socket is opened I subscribe to both of them so I have two types of messages com...
From this website I needed to grab the information for each country and insert it into an Excel spreadsheet. My original plan was to use my program and search each website for the text and later parse that text, but I ran out of time. So what I ended up doing was copying and pasting the information into a text box. Wit...
I have been writing my own Bash Scripts for a little while now. I am getting a better comprehension of it and I would like to start refining my code to be more elegant. I have recently developed this code to take a PHP file and comment out the code and add new code in. If you could let me know how I could do better I ...
According to the value of a dropdown menu I have to show/hide two panels. For option 'derive' and 'reject' I should show the comment panel, and just for the 'derive' panel I should also show a derivation panel. There are other This works, but how could I refactor the code to make it shorter and more efficient without l...
This code makes an SQL query. The last andWhere() method adds a LIKE condition with one percentage sign at the right side of the string. I'm wondering if there is a better way to do it. public function prepareDataProvider() { /* @var $modelClass \yii\db\ActiveRecord */ $modelClass = $this->modelClass; $que...
Is there a more clever way of writing this piece of code? It does work but I thought there might be a better way of returning a matrix from multiplying the parameter by itself. public static void Main(string[] args) { int[,] m1 = CreateMatrix(5); } static int[,] CreateMatrix(int rowscols) { ...
I recently started learning Java, and I decided to implement a basic vector system for another particle system I was building. import java.util.*; class Vector { int x; int y; public Vector(int x, int y) { this.x = x; this.y = y; } public void add(Vector vector) { this.x +...
I'm looking for feedback on this. public sealed class ObservableQueue<T> : IObservable<T>, IDisposable { private readonly object _lock = new object(); private ImmutableQueue<T> _processQueue = ImmutableQueue<T>.Empty; private ImmutableList<IObserver<T>> _observers = ImmutableList<IObserver<T>>.Empty; pr...
Is this code secure and valid? If so, can it be improved? <?php // conect to the data base $mysqli = new mysqli('localhost','user','pass','dbname'); if($mysqli->connect_errno >0){ die( "problem with the connection"); } // creat a function to get table information...
I'm trying to implement a highly efficient limited memory priority queue. The interface is the same as a std::priority_queue. Can anyone suggest any performance improvements on my attempt? limited_queue.h #include <array> #include <algorithm> template<typename T, std::size_t N> class LimitedPriorityQueue { public: ...
I wrote this below script which basically replaces the one of the column in the df with another column with incremental IDs. The script works perfectly fine but I was wondering if there is a better/efficient way to write this one. import sys fh_in = open(sys.argv[1], 'r') fh_out = open(sys.argv[2], 'w') count = 1 di...
Some background info here: This is a small fun project I made utilizing Steam APIs and web-scraping This is the first time I've ever used Python, so I'm not very familiar with the language I used Flask in conjunction with this code (google "Flask" if you don't know what I'm talking about) The purpose of the code is de...
I have created a BST like many others. I am curious to if there is a better way to write it. It seems pretty straight forward, but I feel like it can be improved on a bit. //MRBST.h #ifndef MRBST_H #define MRBST_H #include <iostream> template <class T> class MRBST { private: struct treeNode { ...
In this question, the suggested solution for smoosh() is as shown below, public static void smoosh(int[] a) { int originalPos = 0; int targetPos = 0; while (originalPos < a.length) { // Copy (and remember) one element to the correct position: int currentElement = a[targetPos++] = a[originalP...
I have made a Project Euler runner in order to facilitate the running of the various problems. I have never used reflection before, and I believe that I have found a good use for reflection within this project. My question boils down to this: Is this an appropriate use of reflection? Or am I approaching this the wro...
In reading a file, I found blank lines (even at the bottom) crash the program. To fix this, I've added the following if statement: string line; while(getline(inFile, line)) { if(line.length() < 1 || (line.length() == 1 && isspace(line.at(0))))//this was added continue; string result = process(line); ...
I am a new programmer (I've been doing Java for about 7 weeks) and I am of the type who wants to get it right straight away, so I wonder how this code: Compares to the common practice is structured. Is it a good structure? Readability. Is it easy to read? The JavaDoc; what could I improve? (I am not including the pac...
Example: If I have a number 1000: I first put commas (In English Standard) that makes it: 1,000 I split the above at the first comma: I get 1 I convert 1 into words: I get One, name it replaceNumber I convert the original number into words: ==> One Thousand I convert the first half of the number back to digits w...
I am a semi-new Java programmer that tends to be a perfectionist. What I'd like to know about my code: How it compares to common practice. Is it readable? Are my comments appropriate? Any improvements that could be made? I'm not asking to bog down your time to do an in depth review, just off a glance. I received a po...
I have a ConnectorFactory that creates Connector objects based on parameters like URLs, username and passwords. The Connector object itself implements a HTTP connection pool internally, and can handle multiple HTTP requests concurrently. I would like to do is modify my factory to cache the Connector objects. So it will...
As it is impossible to use Array methods on new Array(n), e.g. new Array(5).map(/* [some callback] */), I deviced a pseudo static Array method. The idea is to call an anonymous function that fills an empty Array with n times the value undefined. In its simplest form it returns an Array for which Array-methods are appli...
I have a website that retrieves time data from any given location on the world live. I wanted to be able to automatically change the time and not deal with the hassle of local client times. It's fairly simple, but since I'm not that good with JS, I'd like to know if there is anything I could improve about it? Suggestio...
I am trying to return the count of employees by salary band and can return data using the following sql but wondered if this was the most efficient way of achieving it? I know creating a join between the tables would be better but that is not possible in this instance. select *, (select count(*) from EmployeeSalary wh...
Previous question: Database input script I'd like this new question reviewed. <?php $mysqli = new mysqli('localhost','root','','yaztor'); if($mysqli->connect_errno >0){ die( "problem with the connection"); } function fetchTableFieldCount($mysqli , $databaseName , $tableName ) { $sql = "SELECT COUNT...
I am trying to create a forum using php in a MVC architecture. This is my database setup: Table: forum_categories `forum_categories` ( `cat_id` INT(8) NOT NULL AUTO_INCREMENT, `cat_title` VARCHAR(255) NOT NULL, `cat_desc` TEXT NOT NULL, PRIMARY KEY (`cat_id`), UNIQUE KEY (`cat_title`) Table: forum_topics `forum_topics...
The assignment is to mask (or rather unmask) certain indexes from a string. Both the input string and the demasker are strings. An example shows how it's supposed to work. Input: "abcdefgh" Mask: "2-4,6" Output: "bcdf" The index is one-based and we need not to worry about malicious users' entries. The entries are alw...
Background Trevor wishes to duplicate an array, transforming it by multiplying its elements four times. Existing Solution // var atest = ['a','b','c']; var btest = []; btest = atest.concat(atest).concat(atest).concat(atest); // console.log(btest.length); // btest.length == 12 console.log(btest); // [...
So I'm using laravel for a project and have a InvoiceRepository and a InvoiceRepositoryTest and I have written the test first for the first time. But I'm not sure if this test is ideal so I wanted to ask if it's a good test or if it needs improving. I'm a bit uncertain if I'm not testing too much of the inner workings ...
I have a simple immutable class: public class ColumnsWrapper implements Columns { private final List<String> columnNames; public ColumnsWrapper(List<String> columnNames) { this.columnNames = new ArrayList<String>(columnNames); } @Override public List<String> getNames() { return new...
I have created a Data Verification page in a Django SessionWizardView where a user has to confirm an earlier submitted rating of an image using a jQuery UI Slider (-100 - +100) The below slider starts off at the same point the user has previously rated the image at by adding a Django template variable. value: {{first_s...
In a case like this: object A1 = null; Decimal? B = Convert.ToDecimal(A1); object A2 = null; int? C = Convert.ToInt32(A2); Note that in case where A1 or A2 have values, they appear to be of type double. B and C will be 0 instead of null. A1 actually comes from Excel via the interop and (Decimal?)A1 throws an error: Sp...
I needed to make a phone number look-up program with 10 contacts. I feel like I can shorten the program up a bit, it seems very long, but I don't know how. Any suggestion? Do I need all of the Java imports? package phoneLookUp; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util...
How can I improve the following working SQL statement for better performance and consistency? SELECT if(roll is null,0,roll) as roll, if(cpapername is null,0,cpapername) as compulsory, if(corepapername is null,0,corepapername) as Core, if(e1papername is null,0,e1papername) as Elective1, if...
I have a pretty straightforward task, but I find it hard to figure out how to improve it. The code is pretty straightforward, but rather bad. There are some clarifications / extra details at the bottom. Let's assume the direction of the positive Z axis is (from the screen) towards you, the reader. Let's say I have this...
I'm trying to write a program where you can insert and display some books (without using a database). For doing this, I use three classes: Book - is the base class. TehnicBook and Literature - that will inherit some properties from Book. #include <iostream> #include <string> #include <stdlib.h> using namespace std;...
I have a set of custom event handlers for all my textboxes and combo boxes. The reason for this is my users want the bound form (to SQL Server) to immediately push changes to the recordset, rather than the normal "Save" idea of an Access form. This is the constraint I have to deal with. As a result, what I am doing is ...
The intent of this code is to access a third party OData API to capture only the relevant data to an existing in-house set of MSSQL server tables. Ignore the exception handling for now--the errors will get written to a log. I'm not there yet. I have no ego attached to this code. If any of you have better practical appr...
I have an if statement which compares two NSString. If the two strings are equal, I assign the 'YES' value to a BOOL called myBool that I use later in a UITableViewCell. It's my first BOOL implementation ever and I'm not sure that it's the best way to do it despite it working correctly. // in view controller .m @proper...
this is a small part of my code that allows me to request a file through a load balancer, reading this XML file gives me the server's name (only node inside the XML Document) if the machine isn't inside the LAN then it won't be able to query the website. I give it a longer timeout to make sure that I don't get a ton o...
I've been back and forth with a colleague over the use of Throwable.fillInStackTrace. This Log class is meant to wrap the Simple Logging Facade for Java. public class Log { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Log.class); private String stackTrace(Exception cause) { ...
I attempted to implement a Monoid' instance for a function a -> b. class Monoid' a where mempty :: a -> a mappend :: a -> a -> a instance Monoid' (a -> b) where mempty f = f mappend f g = g . f Please critique it for correctness and style. In addition, I'm curious how mappend should be implemented...
I'm in the process of adding network support for a little Mac & Windows game I'm writing. Today I've finished the basic sockets plus a few other network helpers and would appreciate having the code reviewed. Networking/Sockets.hpp: #pragma once #ifdef _WIN32 // Windows, any version: #include <WinSock2.h> t...
I have to take over an old project that was coded in VS 2010 C# 4.0 in 2012. Interface programming seems to be all over the place and over-applied to me, but I am unsure if it is that way. I need to know what to keep and what to refactor. Looking at the code, do you think it was applied correctly? Interface is used as...
I always forget how to do this efficiently with Vim's arglist. Drawing inspiration from a post over at Stack Overflow, I wrote a Bash function to perform a project-wide search & replace. It does the following: find files matching a file-pattern narrow down to those files containing a search-pattern within those files,...
We get the search string from the UI. Based on the search parameters we need to create a back-end query. This is similar to "Feed Item Query Language(FIQL)". I have wrote the code to find the logical operators in the search parameters like || (or operator) and ; (And operator). The code is working as expected, but I wa...
I wrote a little factory to dynamically load assets in angular resolve. Is it well structured and can it be made prettier? app.factory('loadAssets', function ($q) { var jsPath = "scripts/", cssPath = "css/", imagesPath = "images/", head = document.getElementsByTagName("head")[0]; // define ...
This is a simplified version of ExceptionHandler.php: <?php class ExceptionHandler { public function __construct() { set_exception_handler(array($this, 'handle')); } public function handle($exception) { // output some information about the exception } } I'm wondering where the ...
I have code for calculating the date for orthodox Easter and it makes me cry when I look at the if-else part. Please give your suggestions on how to make it shine (if possible). I guess I can format day/month to DateTime format but I'm afraid it'll bring just more mess. It works just fine though this. Source puts "- He...
I have a group of tests that must be run in similar (but different) fashion and they have setups, results, etc. which are also similar but different. Great, I thought, I'll use interfaces to define these tests and setups. However, I can't implement the setups and results as the specific types, the compiler requires t...
I have created a simple validation routine in php and i'm wanting to make sure I am doing things efficiently.... function reg_err_validation($reg_errors) { global $woocommerce; extract($_POST); if($firstname == '' ) { $reg_errors->add( 'registration-error', __( 'Please enter...
I've made a calendar for the year of 2015 using Firebase for real-time updates when something changes in it. I'm quite happy with it but I'm interested in getting some feedback on my Javascripting regarding best-practices, what to avoid and anything in general that I can improve in this code. Even the tiniest of things...
I created this script to obtain data from graphs online, from monavisaxmldata. I were wondering if there was a way to obtain the data faster. The program which uses this data gets presented in a presentation which takes roughly 5 minutes. But the data already takes 1.5 minutes to load. Which is quiet a bite in such a s...
I have the following code inside a method: var addresses = new List<MutateAddressData>(); var yearsDB = (from tr in this.uow.TaxReturns where taxReturnIds.Contains(tr.Id) select new { Year = tr.TaxYear, TaxReturnTypeId = tr.TaxReturnType.Id }).ToList(); var ibAndVpb = yearsDB.Where(y =...
The following extension method is the limiting factor in the performance of an application I am developing, according to Visual Studio 2012 Performance Analysis profiler. Is there a faster way to compare two collections for set equality? public static bool SetEqual<T>(this IEnumerable<T> source, IEnumerable<T> other, I...
I wanted a utility function on UIScrollView to automatically size the contentSize based on the content inside the scrollView. How is this? #import "UIScrollView+UIScrollViewUtilities.h" #import <objc/runtime.h> static const int BOTTOM_CONTENT_OFFSET = 75; @implementation UIScrollView (UIScrollViewUtilities) - (void)...
The program below is about finding the values below the percentage and splitting them into five different output files. This works great for small input data files. But when I am trying to run it for a big data it takes ages to compute. Any suggestions on optimizing the program so that I can get fast computation? #sepe...
I am working in a shop where we tie into multiple different vendors to share data. I am also tasked with "bringing the code base up to the 4.x framework". To start, I understand that Entity Framework is a Repository/UoW pattern and really does not gain anything by wrapping it in home-spun Repository/UoW patterns. Wh...
I made a function that converts Roman letters to integers. But I'm not happy with it, as I feel like I used too much code for a such a simple task. Any suggestion on how I can minimize it? values = (('M', 1000), ('CM', 900), ('D', 500), ('CD', 400), ('C', 100), ('XC', 90)...
I am working on a problem "3Sum", in which, given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0. I must find all unique triplets in the array which gives the sum of zero. I wrote my naive implementation which was \$O(n^3)\$ since it was checking for every possible combination: public...
I'm writing an application which works with huge amounts of sequential data, and often found the need to use std::transform. I see two potential improvements to std::transform: Allow for variable number parameters. Take advantage of the linear separability of the data by multithreading. Can anyone suggest any design/...
I am a beginner in JavaScript and just wanted to get my code reviewed. Here I have created a function that takes in an array and returns the mode. If there is no more then I just want the function to return the first number. It seems a little too long and I feel like there may be more clever ways to do it. Again, keep ...
I'm putting together a script to take .mp4 files organized into folders that described the video (eg. cat) and I'd like to do the following: rename them with the folder name and a number move the video into a folder named and numbered in the same manner parse the video into frames using ffmpeg I'm posting this here t...
This is an auction function for a game where you can bid on houses on the website. You set a limit, and if posts limit below current bet or below your limit, it will raise the bid from current plus 1, until the limit is met. If your bid is over a player's limit, it updates it with your limit. Let's say the current limi...
I have been writing Swift code for a while and have read a lot of tutorials about how functional paradigms can be applied to Swift. I defined a simple operator: infix operator >>> {associativity left} func >>><A,B>(a: A?, f: A -> B?) -> B? { if let a = a { return f(a) } else { return .None }...
This is my very first website which is going to be published online. Along the way it's gonna be a complete website. Now, firstly, I am a very beginner in this field, and I want to be a good web designer in future. With that being kept in mind, I want to know my weak point in designing and improve that as much as possi...
I am upgrading an old massive website that is a Classic ASP \ ASP.NET hybrid. I still have a long way to MVC. Right now I want to convert all code that uses ODBC to the mysql connector specific code. I've made these 2 functions: 1: DataTable GetData(string query, List<MySqlParameter> sqlParams, string sComment="") { ...
From snippets around the web, I was able to put together this .bat file to check for a date and compare 2 different files. This works below but I want to clean it up so it can be much lighter and faster and MUCH less code. As you can see, it uses the same code to check date with hour and number. It is basically checkin...
Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2blc5a3. If the "compressed" string would not become smaller than the original string, your method should return the original string. Can this be implemented in a bette...
I've done it in C# before but thought that a functional language would be a good fit for this kind of thing. From this ascending list of integers: [100,103,106,112,118,121] I had to calculate the difference between two consecutive numbers and group them while the result doesn't change. The final output must be a str...
I have a plist file with many nested dictionaries inside of it, and I wanna fetch them all to my code. Isn't there any more efficient way to do that than nested for-loops? NSArray * keys = [plistDictionary allKeys]; for (NSString * key in keys) { // Level 1 NSLog(@"%@", key ); BOOL isDictionary = [[plistDi...
I implemented a binary tree in Python, with preorder/postorder/inorder traversal methods. class BinaryTree(object): def __init__(self, rootObj): self.key = rootObj self.leftChild = None self.rightChild = None def insertLeftChild(self, newNode): if self.leftChild == None: ...
I have two forms in my HTML page. Both share a set of input elements (not a part of any of the forms, but rather residing separately). Besides that, the forms have their own input elements as well. Each of them also have their own notification div. The process of POST request for both the forms is nearly identical, exc...
Are there any ways which I could improve and simplify this code? Is my code idiomatic Haskell? Is the use of a lens library to change an element of a two-dimensional array unnecessary? If so, how could I replace it with a more elegant and simpler solution? Do I need to make use of more types in order to make my code mo...
My program makes an intensive use of small sub-images extracted using bilinear interpolation from larger grayscale images (some call this problem subpixel translation). I am using the following C++ function for this purpose: template<typename T> bool extract_patch_bilin(const cv::Point_<T>& patch_ctr, const cv::Mat_<uc...
Having several databases with the same table, I need to group the union of the records. The xTables are stored in separate databases named by the year (this is by third-party design and I cannot change it). There are 3 databases in my case but it could be say up to 10. Each of the tables contains about 2500 records wit...
I am a first year CS student. We are currently learning Java and my latest assignment was to create this random number game. I am hoping to get some feedback on code style etc so that I know what not to do in the future and so that I can avoid getting into bad habits from the start. I don't know all that much so any ex...
I worked up a quick diamond program that takes only odd numbers while returning an error with even numbers or 0. The code looks rather ugly to me, especially with the recurring int(). I haven't found out how to clean that up with my ENTER to quit. while True: number = raw_input("Enter an odd number or hit ENTER to ...
I'm trying to learn F# right now coming from C# and I'm finding it a great difficulty to "reconfigure" my mind to the functional programming mindset. So I'm going to attempt a few Project Euler problems to learn how to code functionally. Here's my attempt at problem 1, now I'm wondering prorimarily, is this an idiomati...
I have an array of hints. Sometimes, this array could contain an empty string. Occasionally, the array might contain only empty strings, in which case I want the whole block to be skipped. This is what I came up with: <% @hints.each do |hint| %> <% unless hint.empty? %> <p>Please observe the following hints...
This is the current code that gets put into a option box, is there a way to make this code more efficient and use less code <select name="searchTypeSelect" id="searchTypeSelect" size='1' class='searchUtilityMenu' > <option value='<%# ((string)HttpContext.Current.Session["whichMenu"] == "programmingPLUSearch") ?...
I'm trying to do some datetime processing. The input is a string of the form 20141005 ('%Y%m%d') and I want to return a data structure that stores the day before the input date, the day from the input, and the day after along with the day after that in a %y%m%d format (141005) This is my function right now, and I'm won...
I started to code on Android, but I think my code is very heavy and may slow down the performance of my app. For example, when I run my app and I try to drag the page in one of my webviews, it's pretty laggy. This does not include imports: package com.anthoapps.googlewebviewsample; public class MainActivity extends ...
EDIT: I have made another go at this using metaclasses here. I think it's a much better approach. I have the following classes. validator is a decorator that receives a class which defines validation criteria for a decorated function. ValidateKeys is the validation criteria for this example (other criteria I plan to i...
I code Haskell as a hobbyist. I'm interested in feedback on my naive implementation of Conway's Game of Life. Specifically, as stated in the Quick Tour of the website, I am interested in: Best practices and design pattern usage Correctness in unanticipated cases Admitting the naivete of the implementation, I'm not so...
I am trying to check a bunch of files that should have a leading | delimiter but sometimes don't. If the first line doesn't have the |, the rest of the file won't, if it does have it, then the rest of the file will. I'm checking the first line which works and enters the update logic, which advances to the next row once...
I have a long list of sorted strings in a Workbook, and I have to find a lot of values in it. I was hoping to build a binary search Class Module that will find them for me faster than Excel's built-in search formulas/methods. Can anyone think of a faster way, or maybe more bug proof? Values() As String Value2 as String...
This is a simple Trie data structure for strings, except it puts the strings into the structure backwards. The insert method simply iterates over chars from the string-to-be-inserted backwards, and starting at the root of the graph, looks for an edge that is labeled with the current char. If an edge is found, we mov...
While reading a data structure book, I have implemented a chained hash table. I want to share the code with you and get your opinion about it. chained_hash_table.h #ifndef CHAINED_HASH_TABLE_H_INCLUDED #define CHAINED_HASH_TABLE_H_INCLUDED #include <stdlib.h> #include "../linked_list/linked_list.h" typedef size_t hke...
In a previous question I posted a method for easy std::bitset IO on a bit-for-bit basis. This question was later followed up in another solution. Both of these solutions had limitations; the interface of my original solution was not pretty, and the second method was limited to 64 bit std::bitsets. Here is the solution ...
I would like to find all binary sequences from the specified range, which has low peak sidelobe level of its autocorrelation function. Here is the solution (this is simplified version of the real code) using GCC Inline Assembly with AT&T syntax. Binary sequences are represented as sequence of bits in the integer number...
I'm working on a project for large-scale text-processing, which is a first implementation of the basic idea of CSMR. CSMR is an algorithm that measures the similarity between documents by calculating their cosine in the vector space in parallel manner, using MapReduce model. Here is my implementation on GitHub. Some re...
I've started learning Mithril framework, which looks pretty awesome. I've created a basic blog app and have a few questions about code style and structure. var app = {}; app.PostList = function(list) { return m.prop(list || []); }; app.vm = {}; app.Post = function(data) { var data = data || {}; this.id = m.pro...
I'm writing a basic LL(1) parser in java, but my parser class is quickly getting out of hand and becoming huge. PMD even calls it a "God class" and says that it has "Too many methods." Is there a way that I can refactor this class? public class Parser { private static final APValueNum NEGATIVE_ONE = new APValueNum(...
(Note: Even if you don't know Django, it's probably the query that needs work anyway, so you probably don't need to know Django/Python) I have a ListView that displays all the entries in a mapping table between the pizza table and the topping table. Unfortunately, I can't just use Django's helpfulness and just give it ...
I asked one question on code review yesterday about my code style, logic and readability of code. Hence, today I kept all those suggestions in mind while solving a new problem question. The question is such: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target....
Following up on Integrating Unit Testing functionality into an old COM-based IDE, I made quite a few changes to the UI, and now the code-behind for my TestExplorerWindow is starting to feel somewhat bloated, at least compared to what it was... I blame the added toolbar and the fancypants progressbar. At least it looks ...
I want my entire node application to use one single mongodb connection, at least that's what I think is better. I wrote this little script and want some feedback on it. Especially if what I'm doing makes sense. This is my mongodb.js file 'use strict'; // Mongodb module. var MongoClient = require( 'mongodb' ).Mongo...
I'm writing an utility function that returns the extension(s) of a boost::filesystem::path (v3). Boost's path class already has some of this functionality using path = boost::filesystem::path; path shader_file{"/var/.private/code/main.vertex.glsl"}; shader_file.extension(); // returns ".glsl" Note that the . is includ...
I would like some feedback on my red black tree implementation. Anything is fine. I've debugged this and it seems to be working fine, however I may have missed something. Basically, this is a red black tree that stores character strings as keys and the passage that contains those strings as values. Since these keys are...
I'm designing a small CMS with best practices I learned. I came to this conclusion when comes to including page content and themes to each page depending by user or whatever. But how could I make this better? I can change title of included modules this way, but I cannot modify titles if the included modules have anothe...