Hi all, I am a patterns newbie so please excuse this question if it sounds too silly.
I am modelling an application which requires a list of identical structures, named CityData, and only one of these structures should be displayed at a time. The view will allow the user to scroll among the various CityData.
Now my problem is: should I ...
UML is a standard aimed at the modeling of software which will be written in OO languages, and goes hand in hand with Java. Still, could it possibly be used to model software meant to be written in the functional programming paradigm? Which diagrams would be rendered useful given the embedded visual elements?
Is there a modeling languag...
Given data of the following form
myDat = structure(list(Score = c(1.84, 2.24, 3.8, 2.3, 3.8, 4.55, 1.13,
2.49, 3.74, 2.84, 3.3, 4.82, 1.74, 2.89, 3.39, 2.08, 3.99, 4.07,
1.93, 2.39, 3.63, 2.55, 3.09, 4.76), Subject = c(1L, 1L, 1L,
2L, 2L, 2L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 5L, 5L, 6L, 6L, 6L, 7L,
7L, 7L, 8L, 8L, 8L), Condition = c(0L, ...
UPDATE
OK, I figured it out. I had to call the following for varieties:
<%=h @user.varieties.find_by_product_id(product.id).name %>
Here's my two follow questions:
(1) Is this going to cause problems when editing/deleting records because I'm not calling the join model? I've seen some Ryan Bates videos where he stresses this po...
I'm using named scopes to process some filtering actions, and the log is showing that everything is working perfectly, except that after the app goes and finds the correct data, it then ignores what it found and just lists a find.all instead of the filtered result. Here's the details.
I have 3 models: Users, Markets and Schedules.
U...
I'm beginning a new project and I want to start by modeling the data that the client needs to store. However, I have no idea where to begin. So far, I'm trying to model two simple entities, Event and Address. An Event can have multiple Addresses and an Address can be associated with multiple Events. This is what I have:
public class Eve...
Ok, I am working on a Django application with several different models, namely Accounts, Contacts, etc, each with a different set of fields. I need to be able to allow each of my users to define their own fields in addition to the existing fields. I have seen several different ways to implement this, from having a large number of Custo...
Sometimes more than one artist will be on a song. For example, Jay-z's new song "A Star is Born" features the artist Cole, and thus would be listed as "Jay-z (featuring Cole) - A Star is Born" in a catalog. My question is how to model this in my database.
Right now it's pretty simple: every song belongs_to :artist and every artist has_m...
I find that I learn best by example. Is there a good website or codebase that shows how event handling, collision detection, modeling, and basic 3D drawing works?
The game I'm trying to begin with is a simple racing game where the user controls a small space ship and navigates through channels, asteroid fields, space colonies, and vario...
Hi everyone,
I've looked around for a good model format to use in a game I'm building. Its a single player RPG that runs on any platform. I looked at md2,3, and 5 formats, obj, and 3ds, but I couldn't really find what I was looking for. All I need is a 3d model with animation that I can apply textures to. I know most of the list above do...
We have recently added version control capabilities to our system, we are having hard time modeling these capabilities in a RESTful way.
The system works as follows, when it's configured in "version-control" mode, before making modification to an entity one must check it out first (a private copy is created for that user). After modif...
I wanted to know what tools (preferably free) can be used to layout a collection of objects and their relationship - simple relationship like members referring each other, inheritance, attributes et.al. I would prefer a tool with which I can create and update he diagram as quickly as possible.
I'm not familiar with UML, but it's probabl...
I have a question that I've been trying to answer for some time now but can't figure out:
How do you design, or divide up, CouchDB documents?
Take a Blog Post for example.
The semi "relational" way to do it would be to create a few objects:
Post
User
Comment
Tag
Snippet
This makes a great deal of sense. But I am trying to use cou...
Hi,
I am an experienced C#/.NET developer (actually this is all irrelevant because FPGA is like another level of complexity). While my level of ability is not expert like in C# as I still sometimes look stuff up (but not very often, though I struggle with some syntax/advanced concepts), my boss does FPGA and recommends I get involved (e...
I recently read Evans DDD, Fowler PoEAA and Fowler Analysis Patterns. These books got me interested in "modeling" as a more general terms. I noticed there are so many parallels to physics or mathematics, so I wonder if there is a field of science that deals with things like leaky Abstractions, defining Systems based on axioms, drawing co...
it seems like in my model folder, all of my classes fits into one of 3 buckets:
Pure POCO data objects / business Objects
Repository implementation code to query databases and external services
Helper code.
Is this normal and is there a best practices on how to organize this. should i have subfolders for 1, 2 + 3? any recommendatio...
My friends are in a class that is requiring class diagram modeling.
We have access (legit) to Enterprise Arch but we all really hate it.
And Visio isn't meant for class modeling (at least in our opinion).
Is there a good free solution for class diagram modeling?
Thanks!
...
I have a very complicated setup of objects and each selection along the way limits or expands options available. I would hate to throw exceptions or to create invalid instance of the object.
So, I want to limit options (methods available to invoke) when building an instance based on the previous method input paramters. For example if I h...
Hello! I'm working on summary on the eclipse modeling project and it's various sub - projects. It is not going to get published, it's sole purpose is to help my colleagues and above all my boss to get an overall impression of the topic.
For better understandability i took diagram from the eclipse GEF User Guide and modified it. I want t...
I'm interested in learning to use the new VS2010 modeling & design tools. I've stumbled arcoss videos and tutorials, but have found no 'table of contents' that lists them.
Can you point me to a TOC or to individual tutorials that you have found useful?
TIA!
...