Questions tagged [code-layout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
801 views

In C#, is it reasonable to use a #region when I need several members to implement a common interface?

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
240 views

How to "orchestrate" a multi-repository installation

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,506
2 votes
2 answers
2k views

Object To Be Used By Service Layer

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
375 views

Is it good or bad practice to create alternate styles of rows(eg:alternate background color) in ListView using separate xml?

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,765
5 votes
3 answers
477 views

Why do teams still insist on a code-styling policy? [closed]

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
269 views

How to avoid dragging arguments from function to function

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
  • 223
11 votes
1 answer
556 views

How can I best organise a Jekyll + Bootstrap + Git site?

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

n-layers architecture design, really worth the effort?

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
983 views

source code file system layout for 2 very similar projects (with git)

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

Business layer access to the data layer

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,045
16 votes
6 answers
5k views

Vertical alignment: yea or nay? [closed]

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,615