The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
33 views

Design issue with decoder class

I'm designing a C++ Decoder class for decoding a format, and would like some feedback on my design choice: I want the user to be able to provide input to the decoder by either supplying an array, a ...
1
vote
1answer
53 views

std::string/std::wstring template wrapper for Win32 API

I have not completed this but want to make my own template library for wrapping the Win32 API to make it compatible with std::string/std::wstring... Here's a sample of what I've worked with so far. ...
4
votes
4answers
125 views

General advice on a practice linked_list for C++ classes/templates

Introduction I'm learning C++ (Coming from Haskell, C, and Assembly - and other languages sparsely) and this was my practice with classes and templates. It's a linked list that you can call in this ...
2
votes
0answers
104 views

C++ compile-time checked switch 'statement'

In the project I work on there are several places where a switch statement is used on a type enum. (I know, better to use virtual functions or a visitor pattern or something, but sometimes switching ...
2
votes
1answer
131 views

PHP, cleaner way to determine and load page template

I feel that my current business view logic is not efficient or very clean.. the trouble is building the right output, but with less code and more DRY. I have 3 'static' links, as in, direct tags: ...
2
votes
2answers
106 views

C++ plain type serializer design

I am designing a class to store primitive types into byte buffer using predefined byte order. I am not going to use Boost.Serialization because I am working with plain types only and I need predefined ...
2
votes
0answers
105 views

Working with forms in Meteor, using selectors for every input

I'm trying to work with forms, and just getting a grasp on Javascript. Basically I'm unsure if there is a more reusable way to handle forms with Meteor/jQuery. // Creating a new prayer, including the ...
3
votes
2answers
144 views

PHP Template Engine

I have been working on a php driven template engine. This is fairly light weight, and fast from all of my testing, but I was hoping to get some feed back on it. First I would like to show you an ...
0
votes
2answers
85 views

Review request: unw_graph class (unweighted graph)

Here is my new stl-like implementation of an unweighted graph. Could you please tell me what member functions should I include to my library? Thanks in advance. file: unweighted_graph.hpp #include ...
2
votes
0answers
71 views

Template parameter used for configuration of classes

My question is design related. I am not sure if this good programming. I am not the well template programmer... I have 2 Questions at the end: I have a big simulation framework (rigid body ...
2
votes
2answers
284 views

A PHP MVC working with Mustache (and now nested templates!)

So I try this site for the first time, I hope I'm not off-topic [as I also have an issue in my code]=> Not anymore but I'd love some feedback about this code that I'm editing and shortening now. ...
1
vote
0answers
2k views

Localizing templates using require.js, backbone and underscore

This question is about templating and localizing, using require.js and underscore templates through backbone.js. The application will need to be localised on the fly. Before embarking down a path ...
2
votes
1answer
175 views

Polymorphic STL foreach without passing the container type

I was trying to figure out how to make a foreach macro for STL containers that is break-able and I came up with this method that uses templates to recognize the container type automatically. Any ...
1
vote
3answers
169 views

Need advice with a simple container class with templates C++ (code layout and readability)

First of all, thanks for looking at this code. I'm a novice coder trying to learn C++ on my own so any help is much appreciated. I've been working on a simple program to output values to the console ...
1
vote
2answers
169 views

C++ templated singleton class - properly destroyed?

I have written a templated singleton class in C++ but I am afraid that it is not properly destroyed. Can you advise me on that ? my singleton.h #ifndef SINGLETON_H #define SINGLETON_H template ...

1 2
15 30 50 per page