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

Generate lib/euler.* files when running new #30

Open
yaworsw opened this issue Oct 30, 2016 · 2 comments
Open

Generate lib/euler.* files when running new #30

yaworsw opened this issue Oct 30, 2016 · 2 comments

Comments

@yaworsw
Copy link
Owner

yaworsw commented Oct 30, 2016

Since we include lib/euler.* files in templates we should probably create these files when a person runs the new for the first time for that language.

@yaworsw yaworsw mentioned this issue Oct 30, 2016
@igneus
Copy link

igneus commented Oct 30, 2016

My five cents on this:

From my point of view as a user it doesn't make much sense to have a "library infrastructure" generated by euler-manager. If I find some piece of code reusable, I will extract it to a library and require it myself. If not, a boilerplate library generated by the tool is just garbage.

@yaworsw
Copy link
Owner Author

yaworsw commented Nov 10, 2016

I am removing the lib/euler.* support for now.

It makes sense to have users extract their common components themselves especially since anything euler-manager generates would just be empty.

I think however that a standardized lib structure is necessary. Since some languages (like scala) will need the path to the lib directory to be in it's compilation command it's important to at least tell people where they should put their common code. Otherwise users would need to reconfigure already supported languages. The step from dictating where common code should go and generating empty boilerplate in that spot is pretty short.

For the time being it's better to simply remove the loading of lib/euler.* files.

Next step should be to make users aware of the lib structure and encourage them to put common code there.

Then (if I or anyone else gets around to it) generate and include boilerplate lib/euler* files.

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

No branches or pull requests

2 participants