project-structure

Ideal ruby project structure

江枫思渺然 提交于 2019-11-28 02:35:40
I'm after an overview/clarification of the ideal project structure for a ruby (non-rails/merb/etc) project. I'm guessing it follows app/ bin/ #Files for command-line execution lib/ appname.rb appname/ #Classes and so on Rakefile #Running tests README test,spec,features/ #Whichever means of testing you go for appname.gemspec #If it's a gem Have I got something wrong? What parts have I missed out? I think that is pretty much spot on. By default, Rubygems will add the lib directory to the loadpath, but you can push any directory you want onto that using the $: variable. i.e. $:.push File.expand

Problem with multiple entry Points in the same module

蓝咒 提交于 2019-11-27 16:27:08
问题 I have multiple entry points in the same module. For example I have an Home entry point for the home page and an Admin entry point for the admin page. <entry-point class='com.company.project.client.HomeModule'/> <entry-point class='com.company.project.client.AdminModule'/> The way I am setup now - I need to check somt like this in my OnModuleLoad: if((RootPanel.get("someHomeWidget")!=null)&& (RootPanel.get("someOtherHomeWidget")!=null)) { // do the stuff } in order the the Admin Entrypoint

Package name does not correspond to the file path - IntelliJ

蹲街弑〆低调 提交于 2019-11-27 09:46:21
问题 I'm trying to import a project from VCS (well, I'm doing it for the first time actually) and this is my (imported) project's structure: BTW. this screen is made after many tries of changing these directories' properties (in their context menus). In these source files' I have a following error: One time it had nothing against badugi.client but it reported this error only in badugi.server . I have completely no idea how it works... Also classes in the same directories do not see each other.

Find a class somewhere inside dozens of JAR files?

吃可爱长大的小学妹 提交于 2019-11-26 21:09:54
How would you find a particular class name inside lots of jar files? (Looking for the actual class name, not the classes that reference it.) Eclipse can do it, just create a (temporary) project and put your libraries on the projects classpath. Then you can easily find the classes. Another tool, that comes to my mind, is Java Decompiler. It can open a lot of jars at once and helps to find classes as well. Unix Use the jar (or unzip -v ), grep , and find commands. For example, the following will list all the class files that match a given name: for i in *.jar; do jar -tvf "$i" | grep -Hsi

Structure of Projects in Version Control

对着背影说爱祢 提交于 2019-11-26 19:57:03
I know there are at least 10 different ways to structure project in version control. I'm curious what some methods being used are and which ones work for you. I've worked with SVN, TFS, and currently/unfortunately VSS. I've seen version control implemented very poorly and just OK, but never great. Just to get the ball rolling, here is a review of things I've seen. This example is SVN-based, but applies to most VCS's (not so much to distributed version control). branch the individual projects that are part of site /division/web/projectName/vb/src/[trunk|branches|tags] branch the whole site, in

Structure of Projects in Version Control

ぃ、小莉子 提交于 2019-11-26 07:28:51
问题 I know there are at least 10 different ways to structure project in version control. I\'m curious what some methods being used are and which ones work for you. I\'ve worked with SVN, TFS, and currently/unfortunately VSS. I\'ve seen version control implemented very poorly and just OK, but never great. Just to get the ball rolling, here is a review of things I\'ve seen. This example is SVN-based, but applies to most VCS\'s (not so much to distributed version control). branch the individual

Best practice for Django project working directory structure

馋奶兔 提交于 2019-11-26 04:28:52
问题 I know there is actually no single right way. However I\'ve found that it\'s hard to create a directory structure that works well and remain clean for every developer and administrator. There is some standard structure in most projects on github. But it does not show a way to organize another files and all projects on pc. What is the most convenient way to organize all these directories on development machine? How do you name them, and how do you connect and deploy this to server? projects

What is the best project structure for a Python application? [closed]

二次信任 提交于 2019-11-25 23:47:33
问题 Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project\'s folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages. In particular: Where do you put the source? Where do you put application startup scripts? Where do you put the IDE project cruft? Where do you put the unit/acceptance tests? Where