project-structure

What Project Layer Should Screen DTO's Live In?

≡放荡痞女 提交于 2019-12-02 18:32:17
I have a project where we use screen DTO's to encapsulate the data between the Service Layer and the Presentation Layer . In our case, the presentation layer is ASP.Net. The only classes that know about the DTO's are the service layer classes and the Pages/Controls that call these services and display the DTO's. The DTO's are almost always Page/Control specific so I feel they belong in the Presentation Layer, but that would mean the Service Layer would have to reference the Presentation Layer in order to use the DTO's. I'm almost thinking that the Service Layer should return richer objects

How do you manage your Delphi Projects with third-party components in Version Control?

≯℡__Kan透↙ 提交于 2019-12-02 17:10:00
Installing third-party components always take a long time specially if you have large ones, but also it take more time if you setup the environment in more than one computer. And I'm thinking to add them to the Version Control (Subversion), so it will be always easy to checkout the project with all it's required components. So how you manage that, and what's the best practice to manage them inside the VCS? Also consider some of these third-parties come without source but as Delphi libraries. (BPL). If we have the source, then we include that in our repository, under a separate folder. If we

Python project structure and relative imports

夙愿已清 提交于 2019-12-01 04:33:19
问题 I'm new to Python and I searched google a lot and read some articles about relative imports etc. Despite the fact that I am unable to get it working. Please, consider my following project structure: /Project /docs /log /prev /src a.py /tests /tests1 b.py /tests2 .gitignore README.txt program.py And what I'm trying to achieve is to import a class from file a.py inside of the script b.py . Generally speaking, script b.py should have line with import of a.py . I've read some articles about using

Intellij Re-import Gradle Project

北城以北 提交于 2019-11-30 17:08:08
I just added a new test source directory to my Gradle project and want IntelliJ to recognize it. I can close the project and reopen the build.gradle file and chose "Delete Existing Project and Import"; is there a way to update the module sources without deleting the existing project? idea { module { // just added these two lines testSourceDirs += file('src/integration-test/java') testSourceDirs += file('src/integration-test/resources') } } I don't want to just manually add the sources, instead I want IntelliJ to re-import the Gradle project structure from the 'build.gradle' file. Details:

Recommended WPF Project Structure?

两盒软妹~` 提交于 2019-11-30 11:37:14
问题 I'm a stickler for good Visual Studio Solution and Project structures. I'm about to start a WPF proof of concept piece of work. Can anyone recommend some WPF Project structures they have used and found worked well? Here http://drwpf.com/blog/2007/10/01/58/ They have one recommendation which I like: Root - Pages - Controls - Resources App.xaml Where Pages, Controls and Resources are folders. Has anyone found certain structures work well / don't work well? Also I'd rather not get into a 'Model

Should Unit Tests be in their own project in a .Net Solution

自作多情 提交于 2019-11-30 08:11:58
Should I start a new project for my unit tests? That would mean that I would get two executables correct? Then I am worried about the namespace organization. Would I be able to put the unit test in the same namespaces as the classes that they are testing although they are part of a different project? This raises another question. I know that namespace naming convention is CompanyName.TechnologyName.Feautre.Design. How would I get this right in my solution/project layout? Does the solution name = companyname, project name = technology name? If that is the case does that mean I can't separate my

In Delphi, should I add shared units to my projects, to a shared package, or neither?

大城市里の小女人 提交于 2019-11-30 07:24:24
This question is similar to this one , but not a duplicate because I'm asking about issues not discussed in that question. I have a client-server project in Delphi 7 with the following directory structure: \MyApp \MyClientApp \MyServerApp \lib There are 2 actual Delphi projects (.dpr), one each in the MyClientApp and MyServerApp folders. The lib folder has .pas units that have common code to the client and server apps. What I'm wondering is if I should include those .pas files in the client and server projects? Or should I create a package in the lib folder which includes those units? Or

Android Studio not showing modules in project structure

半腔热情 提交于 2019-11-30 05:36:25
I am using Android studio and I want to add module to my project like "action bar Sherlock" or jar files, but when I opened the project structure there is no module or library in the menu :\ In intelij it's appearing: So what's the problem? How can I add these modules in Android studio? Update 19 March 2019 A new experience someone has just faced recently even though he/she did add a library module in app module, and include in Setting gradle as described below. One more thing worth trying is to make sure your app module and your library module have the same compileSdkVersion (which is in each

Repeating module name for each module component

旧城冷巷雨未停 提交于 2019-11-30 05:02:31
The famous Best Practice Recommendations for Angular App Structure blog post outlines the new recommended angularjs project structure which is now component-oriented, not functionally-oriented, or as named in the initial github issue - "Organized by Feature". The blogpost suggests that each file inside each module should start with the module name, e.g.: userlogin/ userlogin.js userlogin.css userlogin.html userlogin-directive.js userlogin-directive_test.js userlogin-service.js userlogin-service_test.js The question is: what is the point, pros and cons of repeating the module name inside each

Android Studio: “new module -> import existing project” vs. “import module”

牧云@^-^@ 提交于 2019-11-30 02:17:48
问题 What I have: Four independently working Android modules: MyProjectMainModule , a main container application, attached to MyProject MyGradleModule , a library, with all necessary components built during gradlew process. MyPreGradleModule , a library, with src/ , res/ , AndroidManifest.xml , and pom.xml , without gradle wrapper MyRawModule , a library, with src/ , res/ , AndroidManifest.xml , without pom.xml (commonly seen in Ant-based Eclipse projects) What I'd like to achieve: To import all