Questions tagged [code-layout]
The code-layout tag has no summary.
12 questions
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 ...
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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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:...
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 ...
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 ...
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 ...
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 ...