|
I have a sublayer on a layer-backed view. The sublayer's contents are set to an Image Ref and is a 25x25 rect.
I perform a hit test on the super layer when the touchesBegan and touchesMoved methods are invoked. The hit test method does, in fact, return...
Started by Corey Floyd on
, 7 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The Image is displayed at the expected ....
Instead it seems that the "actual" on screen layer and the contents of the layer are defined by different CGRects.
It seems that the layer is not just receiving touches on the bottom pixels.
|
|
In theory in layered architecture you can have multiple modules on the same layer. Can this modules cross reference to each other? Is is possible technically, eg. using .NET?
Started by michael lucas on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want though it may not be a good... .
Modules should not be aware of the layers above them.
In general, modules at a given layer should only depend on other modules from the same layer or from the layers below it.
Modules.
|
|
We are developing a web application. We want to possibly reuse the work we do here for a different application that will use the same database, and use the same business rules for reading and writing to said database.
Which design would be more correct...
Started by The Murph on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Within the same network behind your firewall, a basic business-object layer that your website UI code (server-side, I'm assuming and your data layer starts to cross....
Assuming your database is reachable by your UI system, i.e .
layer.
|
Ask your Facebook Friends
|
Data Access Objects (DAOs) are a common design pattern, and recommended by Sun. But the earliest examples of Java DAOs interacted directly with relational databases -- they were, in essence, doing object-relational mapping (ORM). Nowadays, I see DAOs ...
Started by Todd Owen on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You make....
You put an abstraction in to supply a different set) layer over an ORM code supply specialised recovery and error handling functionality that you didn't want polluting the business logic.
It depends what your layer's goals are.
|
|
If there was a line of business application layered like this, would this be an appropriate division of labor :
Data Access
Invokes only stored procedures, maps properties of DTO s to a hash tablse which are used to populate ADO.NET command's parameter...
Started by MatthewMartin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'd also hope that my business layer would....
I'd hope that my data layer would shield me from having to worry about nulls and such things.
I would expect to see what you describe as your business layer as data layer type stuff.
|
|
I am attempting to create the the business and data layers for my big ASP.NET MVC application. As this is the first time for me attempting a project of this scale I am reading some books and trying to take good care at separating things out properly. ...
Started by KallDrexx on
, 8 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The following (ideally) VS projects:
Presentation layer (where the UI stuff resides) Business layer (where the actual business logic resides) Data access layer (where you communicate with your underlying layer (where the UI....
|
|
Hello All,
We are using MVP pattern in our Presentation Layer(PL) and a WCF based service layer(SL). PL calls operation contracts on the SL and internally it does some business validations. If the validation passes, we return an obect (exposed as a data...
Started by Marshaler on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Questions/21697/how-do-you-communicate-service-layer-messages-errors-to-higher-layers-using-mvp
I'm not sure how broad the error hierarchy is when you say "the PL needs to handle all the cases defined.
|
|
I'm using the following code within the JCProperty class to retrieve data from a DAL:
Dim x As JCProperty x = JCPropertyDB.GetProperty(PropertyID) If Not x Is Nothing Then Me.PropertyID = x.PropertyID Me.AddressLine1 = x.AddressLine1 Me.AddressLine2 =...
Started by Simon on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
By recreating the same object in every layer you are violating the DRY however missing one point slightly.....
That both the business layer, DAL and UI-layer all have dependencies to the domain model, however and wiring can help you.
|
|
I currently have a project that is a 'Business Object' project, and our goal is to have a clear separation between the GUI and the Business Objects. However, my project has a reference to System.Windows.Forms and that's a big red flag to everyone that...
Started by Rob P. on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
But so long as the layer is still logically seperated.
Flag which says wait why am I doing this.
|
|
I'm still uncertain about how best to use Mocks when doing development from the outside-in (i.e. write test first that mimics the customer's requirement)
Assume my client's requirement is "Customer can cancel her order".
I can write a test for this - ...
Started by willem on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I always write tests....
However, I have to say, testing only public access testing.
I used to be among those people, but now I'd say that it's better to just test public APIs to "refactor mercilessly", thus leading to bad code).
Directly).
|