A structure is a fundamental, tangible or intangible notion referring to the recognition, observation, nature, and permanence of patterns and relationships of entities.
2
votes
1answer
12 views
XML Schema File that validates my XML File
I just want to know if my schema file is correct:
XML File:
<?xml version="1.0" encoding="UTF-8"?>
<xs:books xmlns="http://www.w3.com/1999/XML/prjXMLValidation"
...
10
votes
2answers
106 views
Knockout.js binding 2D table with rowspan
The app I'm working on should allows it's users to create tables. I have a view in which users are able to create a table. They should be able to define here the table's columns. The columns that the ...
1
vote
1answer
52 views
LDAP Library structure, classes, functions, initialization?
I have started working on my first open source project making an LDAP library in Python. I have coded quite a bit and am starting to think about a couple of the details related to structure.
I have ...
5
votes
3answers
151 views
Simplifying and optimizing the structure of this code
I'm developing a Java EE project which uses Redis through the Jedis library. I'm retrieving the chat history of a particular channel from the servlet context and if absent, from Redis. The PMD plugin ...
2
votes
2answers
261 views
Building a Red Black tree using a structure as a node
I have the following structure:
struct Keys
{
//value of word in the vector<string> words.
string word;
//index of word in the vector<string> words.
int index;
//I want to ...
1
vote
2answers
41 views
Review a filter by date method
Method that allows me to filter by date a data structure list of hash that contains articles. I would like to have your opinion on the code:
=method article_by_date
...
4
votes
1answer
71 views
Creating a Ruby gem that talks to another gem
I am working on creating an interface gem that works with the Jira-Ruby gem.
I have several questions and would like a general review for both my code and my attempt at creating a gem (I've never ...
4
votes
1answer
105 views
Pointer to a Template structure
I have seen this type of definition for a "node" of a Linked-List-type Data Structure in many codes and have myself used this many times -:
template<typename T> struct node
{
T data;
...
5
votes
3answers
228 views
How to structure a Javascript module better?
There's this Ajax-heavy, JQuery-based site which I'm about to work on. There hasn't been much structure in the JS code so far (lots of functions at global scope, hard-coded in the HTML ...
0
votes
1answer
45 views
javascript: data and vtables vs. objects and methods
I present a bunch of grids of data to the user, and want to sum certain columns in some of the grids.
// for one such grid:
rows = [{id: 0, name: "Alice", age: "23"},
{id: 1, name: "Bob", ...
2
votes
2answers
178 views
Update HTML4 to new HTML5 Semantic/Structural Elements
So im trying to update my websites code to the new HTML5 Semantic/Structural Elements,
but im not very sure with the sections and article element.
So here the structure of my page:
<body>
...
1
vote
0answers
44 views
Creating and referencing markup…cloning, etc. efficient system for this plugin
I am pulling multiple feeds from youtube that have a callback function which makes markup from each feed. They add that markup to a documentFragment stored in var data. When all the feeds have ...
8
votes
1answer
244 views
Structure JavaScript code
I am new to JavaScript development, so seeking help in guidelines on how I can better organize my code in a better way. This is what I have for a small app I am working on:
var app = app || {};
...
1
vote
1answer
138 views
C++ Design Struct vs Class [closed]
I am writing class CollectingClass which collects much data in private members and prints them out later.
To encapsulate all the private members, I decided to create a struct Data, keeping all the ...
3
votes
1answer
835 views
Python: Academic implementation of artificial neural network
With some free time, I decided to study artificial neural networks as an academic exercise (not homework). Over the course of my studies, I decided to write a Python application that would allow me to ...
1
vote
1answer
70 views
Keeping my JS decoupled but still use functionality
In the very simple code below I'm illustrating having a master 'App' object with 'Chat' & 'Posts' modules inside. Now, what I'm asking is, in my conscious effort to keep my components loosely ...
2
votes
2answers
112 views
How can I better organize code that modifies the functionality of a page?
Here's a bit of one of my web forms which is reached by clicking on a link in a calendar. Based on what you click, you end up at this page with a different QueryString. Based on that QueryString, we ...
5
votes
1answer
82 views
Is this MySQL database structure acceptable or can it be improved?
Recently I've tried to teach myself basic things about MySQL databases, however I received some help on stackoverflow with creating a good database structure trying to avoid redundancy as much as ...
3
votes
1answer
1k views
Is this a correct implementation of MVC pattern for form validation (php)?
Before going out and learning a full fledged framework I'm trying to understand the MVC pattern coding basic stuff, at the moment I'm testing with MVC applied to form validation.
After reading a good ...
3
votes
1answer
230 views
Dictionary Tree optimization help [C++]?
I was wondering if anyone could give me a little bit of help with optimizing a tree-structure in C++. I'm currently developing a dictionary program for a school project but want to take it a bit ...
2
votes
1answer
153 views
a little “infile” AMD
I like the modular aspect of AMDs (Asynchronous Module Definition, see this StackOverflow reply) and it's quite neat to structure JS.
But I typically compile all my JS files into one JS file. ...
1
vote
1answer
146 views
Java: Suggestions for improved project structure/desing? Especially usage of interfaces
I'm coding some sort of mini physics engine and I ran into some problems with my design, so I'm asking for ideas here. I'm not really experienced with design patterns, so any help with this would be ...
2
votes
2answers
93 views
How could I have approached this differently? My first Java applet
I'm a JavaScript coder trying to teach myself Java using online tutorials and ebooks. I have now created my very first applet but feel it only really goes to show the depth of my unappreciation for ...
3
votes
2answers
104 views
Please review my function code for adherence to C standards and whatever else could be improved to it
I am relatively new to C and would like some feedback on a function that I have written, if it adheres to C standards or if there are some other things which I could have done better/differently.
The ...
6
votes
1answer
771 views
High level file structure and library structure [closed]
I'm working on a DOM-shim project.
For a small subset of the DOM4 specification (Actually a subset of the Node interface) I already have 400+ lines of functions.
I presume keeping this up will ...