-
Notifications
You must be signed in to change notification settings - Fork 57
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
template repository to fork and learn #92
Comments
I love the idea of a template repo! really cool. cool that you are mentioning it, funny enough this request came up a couple of days ago too and i added it to the changelog :) https://github.com/wolframkriesing/jskatas.org/blob/master/CHANGELOG.md and the
is written in a provocative way intentionally ;) |
( wow, that's a lot of reactions. I can already feel some mind-share 😉 I love doing that as well ) well, I just spend the rest of the day attempting to create that template - shinenelson/js-katas-template. I kind of went wolverine-style on the repository though. I ripped out everything that was 'unnecessary' to run the tests. My argument is that user's don't need all the cruft. All they need is the test files and the documentation on how to run the tests. That's all there is on the repo. PS : I still have the
it didn't provoke me. I partly agree with it, but I don't agree with Now, to more details on what I've done with the template. ( you can look around the commits on the branch, but if you prefer a prose version, here goes )
You should actually take a look at the last 2 commits. I might have fixed one of the reports in #71 ( in I hope I haven't ripped out too much. I guess this would introduce a maintenance nightmare every time there are updates to the katas. I did think about it for a while, but then decided that it was better this way because this is a template repository and it should have only the absolute necessities. I'd like to hear your thoughts / opinion / feedback on this. |
Docker is just a tool, i used nixos for a while but i am missing the PhD one needs to understand it :). I will be happy to have a docker replacement, i just want the project to self-contain the env it runs in. Wow, you've done quite some work already. Directory structureActually this is a good reason to document why the directory structure is as it is. Building it instead of using gh-pages manuallyYou might have seen katafication (I called it), this is the process of making the tests fail. It and the whys are described under the link. What do you think? |
I agree to that 💯 Makes it 'reproducible' too
I knew at least 1 person that would use it ( me! market-of-one ), so, I went ahead and did the work.
Actually, I saw it only now. I mean, each of the language directories ( To me, it makes sense now than later. I mean, if those directories grows; like the
This was exactly my thought initially ( I mentioned about the 'maintenance nightmare' in my previous comment ). Then I looked at the code that actually did the katafication. Though I liked the concept and I agreed with it; I saw an additional fork of the But I agree, that is way better than the 'un-scalable, unsustainable and unmaintainable' junk that I have right now. I was only thinking in terms of how I as a user would want a 'template' to look like ( how I wanted it to look like ). aside : to be honest, my initial thought process started with writing that extra condition for making the build system publish to a different template repository ( that came about even before I opened this issue ). Then, for fun, I thought about using GitHub actions to use the same build steps, sans the frontend stuff and then publish to the template repository. I'm open to reverting to the old directory structure and using a build system to update the template. I'm just floating my opinion; you're the decision-maker :) |
thanks a lot for all the input. and |
well, in that case, I need to spend another few hours creating another template repository ;) probably not creating this time, it'd be testing. I'm going to see how much I can tweak the existing build system to work for the template repository. I might come back with a pull request tomorrow ( if I need any changes; hopefully not ). Meanwhile, I'd like to gently nudge you ( again ) to some questions that I raised earlier :
I guess I'll have to give you more time to think about the directory structure and hopefully see an ADR on that too? I hope I was clear enough with my thought process. If not, please feel free to ask. PS : I didn't know ADR was a thing until today. So, thank you for teaching me that. I guess that's how you get used to working offline right? ( the irony though - building for the web while being disconnected from the web ;P ) |
re 1. I just took the chance to polish the things you mentioned, thanks a lot and pushed it. Thanks for finding and suggesting fixes. I thought I might save you the PR work. re 2. I dont know gh actions yet, can it do the same thing? if so i am fine with that. why not. what's the advantage over travis, other than being more integrated (and proprietary)? |
I believe it should be able to do everything Travis does right now ( and probably more ). I proposed it only because of the integration thing. I don't know whether it provides any real advantages over Travis. I'm not all that experienced with Actions either, but I wanted to test it here. That's why I proposed it. I'll give it a try anyway. PS : I'm sorry I haven't yet done the changes for the template repository that I said I would. I was busy 'learning' ecmascript. I will surely get back to it though. :) |
I came across https://jskatas.org as a reference to learning JavaScript.
I was wondering if it was a good idea to have a template repository that people could just fork and start learning by fixing the tests within the repository itself (
commit
ting the fixed code andpush
ing toremote
could also introduce learning somegit
along the way too ).this way one could show progress and validate whether the solutions are correct with a peer who knows better.
I started using the online version and then found myself not sure whether my changes were accurate ( though I was getting the tests to pass ).
So, I thought why not just clone the repository and then do the tests locally? And as I was navigating the repository is when I got this idea.
I noticed the mention of nobody has nodejs installed globally anymore. While I don't want to argue / contest that notion, I believe that it would be of use for people to be able to just
fork
a repository,clone
it locally, start fixing tests and learn javascript along the way. If theypush
ed toremote
, they could get those tests validated from their peers too.So, here's my proposal :
package.json
with relevant packages and scripts ( bonus : we could add scripts per file / category ).README
to show how to use the repository... watch how people use it and gain insights to make it better
what do you think?
The text was updated successfully, but these errors were encountered: