Skip to main content

Questions tagged [code-layout]

0votes
0answers
79views

What is the use case for blocks in template engines?

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
1vote
2answers
989views

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
2votes
0answers
276views

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
2votes
2answers
3kviews

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
0votes
1answer
379views

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,863
5votes
3answers
483views

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
5votes
1answer
271views

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
11votes
1answer
557views

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
7votes
4answers
3kviews

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
2votes
2answers
984views

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
1vote
4answers
2kviews

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
16votes
6answers
5kviews

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

close