The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
17 views

Kindly review webapp python code

This working code is for a search engine with Google App Engine using python. Everything works, and I wonder if you can come with possible ideas for improvements, readability and so on. ...
3
votes
2answers
60 views

Potential Problems with this templating technique

I like the way Zend Framework works it's views and I make extensive use of partials but every partial include results in it's own file system hit. As I'm building my own framework I thought I could do ...
5
votes
1answer
61 views

Simple “nullable” template class. Are there weaknesses in the implementation?

The goal is to have fields in a class which are optional and can be determined if they are set in order to be able to leave them out of serialization. template<typename T> class Nullable { ...
1
vote
0answers
34 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
58 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
147 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
107 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
107 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
112 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
146 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
88 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
72 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
287 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
176 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
171 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
170 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 ...
2
votes
1answer
359 views

Template system with master layout

Here is my template code <?php namespace classes; /** * Description of Template * * @author Aamir */ class Template { private $templateVars, $templateFile ; ...
1
vote
2answers
77 views

Using Choose and Apply Templates with Mode, vs Complexless Template Matches

So I have a little XML (Sub)language, it has 3 elements of interest: para, point, and code If a code occurs inside a para, point element I want to handle it for inline use, if not, i want to set it ...
1
vote
1answer
124 views

How can I improve the design of this serialization mechanism?

I'm working on caching library which is intended to work with all types of values. Values are represented as instances of value_type: value_type holds a std::vector<char> for the raw data, and ...
1
vote
0answers
122 views

Variadic function with restricted types

I am designing a class which (among other things) acts as a vertex in an undirected graph. #include <iterator> #include <string> class Node { public: explicit Node(const ...
2
votes
0answers
649 views

Review request : Jinja CMS for Energiekantoor.nl on Google App Engine

Energiekantoor.nl is a non-commercial community for purchasing power and natural gas, Reason: we (civilians in my neighbourhood) want to lower the energy bill of our homes. To maintain the site ...
1
vote
0answers
101 views

How would you improve this scala basic xml template?

Currently exploring the play framework, I'm about to replace the proposed templating system, using the powerful xml processing of the scala library. HEre is what I have come with : import scala.xml._ ...
2
votes
1answer
388 views

Passing anonymous functions and getting variables from an outer scope in php

I'm doing something quite strange. I'm trying to create a tiny system for creating templates inline in php, so that I can refactor by creating multiple templates in the original script, and ...
1
vote
1answer
307 views

More Generic Sorting Algorithm: Using Namespaces

I am currently reading The C++ Programming Language (Special Edition) and am learning about using templates. One of the exercises asks you to program a generic version of quick sort. I am hoping to ...
1
vote
1answer
339 views

Does my template use good coding practices?

i am using the following template to program my 2D games in. is there anyway i can improve it? splash screen: package com.dingle.template2d; import android.app.Activity; import ...
5
votes
1answer
1k views

Generic C++ Factory

For my project I needed a way to instantiate different object types during runtime using "string names", for this I designed a generic factory that is created for each object hierarchy type (currently ...
10
votes
6answers
715 views

HTML Review of template for site - Is this ok for HTML5?

Writing a new site, has anyone got any comments on the HTML here? Is it all semantically correct? Thanks! This will basically be the template, so I want to make sure it's pretty perfect. ...