Skip to main content

Questions tagged [code-layout]

Filter by
Sorted by
Tagged with
0 votes
0 answers
88 views

Most template engines have two ways to refer to other templates: Inheritance with blocks (child template inherits from parent template and fills one or more blocks) Includes (parent template includes ...
Toxiro's user avatar
  • 101
1 vote
2 answers
1k views

I know that lots of people hate #regions in C#. IMO there is at least one legitimate use of them: Sometimes I have a class which, in addition to its core functionality, needs to implement a commonly ...
Claus Appel's user avatar
2 votes
0 answers
293 views

Suppose I'm working on software to be installed on a Linux machine (not mine). Say the software consists of applications the user might start independently; an application which will likely be started ...
einpoklum's user avatar
  • 2,808
2 votes
2 answers
3k views

My project has a UI layer, a Service Layer and a Repository layer. The latter has Entity objects as part of the ORM (.net Entity Framework). The service later returns a Dto to the UI layer. My ...
John Steed's user avatar
0 votes
1 answer
390 views

For example,to create alternate layout in ListView which uses different alternate color : <LinearLayout android:id="@+id/view1" android:layout_width="wrap_content" android:...
ggrr's user avatar
  • 5,893
5 votes
3 answers
500 views

Many teams (such as Google have rules how code should look, including how indentation should be done, how many spaces, in which order should includes be included, etc. Some of those thing can't be ...
Charles Shiller's user avatar
5 votes
1 answer
281 views

When I do my code layout, I like to start with a rather high level view, and then start to delegate actual computation to class or functions that have a bit more detail. Then in these classes of ...
Isaac's user avatar
  • 233
11 votes
1 answer
566 views

So after many many many years of building sites from scratch (and doing a lot of the lifting myself) I've dipped my toes into two projects that have been around for a few years that I've been avoiding:...
Oli's user avatar
  • 297
7 votes
4 answers
3k views

I was building an application in .Net for almost a year (almost alone), I took the decision to build it with a 3-layer design. Recently when finished the project, I analyzed if the effort of creating ...
Rafael's user avatar
  • 687
2 votes
2 answers
1k views

we're working on "two" android apps that are very similar; in fact, they're the same apps with different graphics and color schemes, slightly different configuration and one or two unique activities ...
stefs's user avatar
  • 191
1 vote
4 answers
2k views

I have a Business layer (BL) and a Data layer (DL). I have an object o with a child objects collection of Type C. I would like to provide a semantics like the following o.Children.Add("info"). In ...
rerun's user avatar
  • 2,055
16 votes
6 answers
5k views

For instance, non-vertically aligned: Name: Hamt Version: 0.1.0 Cabal-Version: >= 1.2 License: BSD3 Author: Jason Baker Or vertically aligned: Name: Hamt Version: 0.1.0 ...
Jason Baker's user avatar
  • 9,653