Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to real-world project structure #84

Closed
yurrriq opened this issue Dec 14, 2015 · 3 comments
Closed

Switch to real-world project structure #84

yurrriq opened this issue Dec 14, 2015 · 3 comments

Comments

@yurrriq
Copy link
Member

yurrriq commented Dec 14, 2015

Update:
Since two people who aren't me support this and no one has yet opposed, I've reworded it from a question to a call to action and a to-do list.

In xlfe, we opted to use a "real-world" directory structure for the exercises and I think there are great benefits to users in doing so. Right now, xclojure uses :{source,test}-paths [""] to allow users to ignore convention and get coding right away.

I think that's a bad idea. See the output below for my proposed changes.

N.B. I'm pretty sure some documentation would have to be updated accordingly, too.

bob
├── project.clj
├── src
│   └── bob.clj
└── test
    └── bob_test.clj
diff --git a/bob/project.clj b/bob/project.clj
index 803ad74..a21fc23 100644
--- a/bob/project.clj
+++ b/bob/project.clj
@@ -1,6 +1,4 @@
 (defproject bob "0.1.0-SNAPSHOT"
   :description "bob exercise."
   :url "https://github.com/exercism/xclojure/tree/master/bob"
-  :source-paths [""]
-  :test-paths [""]
   :dependencies [[org.clojure/clojure "1.7.0"]])
@kytrinyx
Copy link
Member

+1 for using real-world conventions. Java has done this really well also.

The documentation should all be in this repository, inside the docs/ directory, which should make it easier to clean that up.

@haus
Copy link
Contributor

haus commented Dec 29, 2015

+1 to this idea. when I first started the clojure track the layout surprised me.

@yurrriq yurrriq changed the title Should we follow real-world structural conventions? Switch to real-world project structure Dec 29, 2015
@yurrriq yurrriq removed the question label Dec 29, 2015
yurrriq added a commit that referenced this issue Dec 29, 2015
Add bin/restructure.clj for posterity.

See #84
yurrriq added a commit that referenced this issue Dec 29, 2015
@yurrriq yurrriq mentioned this issue Dec 29, 2015
6 tasks
yurrriq added a commit that referenced this issue Dec 29, 2015
- Restructure per #84 and #88
- Be explicit in :require from of trinary_test.clj
- Use single-pass loop/recur implementation
yurrriq added a commit that referenced this issue Dec 29, 2015
- Restructure per #84 and #88
- Be explicit in :require from of trinary_test.clj
- Use single-pass loop/recur implementation
@yurrriq
Copy link
Member Author

yurrriq commented Dec 29, 2015

Done in #88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants