Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Sam Warner
@sjwarner-bp
So it looks as though Python has a (fairly minimal) test suite, which we could mimic
The F# track looks like it uses almost the same tests
So I'd suggest doing that. If you are feeling particularly outgoing, it would be super useful to raise a PR for implementing canonical data in problem specifications! That way other people won't run in to issues, and we can properly version this suite. Because the tests are already in two places, it might even be quicker than making it from scratch.
What do you think?
Jeffrey Sander
@jssander
I've never done a PR for problem specifications before
Jeffrey Sander
@jssander
It looks like there is already an issue on github for the go-counting canonical data in the problem specifications repository
maybe I will take care of that first
Sam Warner
@sjwarner-bp
Whichever you prefer - of course all of this is up to you! πŸ™‚
Jeffrey Sander
@jssander
go-counting has two large 2-dimensional arrays which are used as input to the tests. I am unsure how to put this into the canonical data file
Sam Warner
@sjwarner-bp
I would look at the diamond exercise for inspiration - have you checked that out?
Jeffrey Sander
@jssander
ok
Well in diamond the 2-dim array is different for every test. Here it is the same array for many of the tests. Is there a way to have a constant or should I repeat the array for every test case in the canonical file? Does that make sense?
I think I will just copy it over a new for each test case in the canonical file and then see what they say about that.
Sam Warner
@sjwarner-bp
Implement it as sensibly as you can, and then submit a PR - we will then be able to review it and see if there is anything extra we can do to it πŸ™‚
Jeffrey Sander
@jssander
ok
thanks
What should I use as the version number?
Jeffrey Sander
@jssander
I submitted a PR, but the build failed.
Sam Warner
@sjwarner-bp
I'll take a look now :smile:

Oooh, looks like some of the guys have beaten me to it! There are some pretty comprehensive comments and even a gist with a pointer :smile:

If you're still wondering about the version number, I'd go with 1.0.0

Jeffrey Sander
@jssander
Is there a standard way of having a java function return a X, Y coordinate pair in exercism?
Norbert Melzer
@NobbZ
There are functions in Java?
Sam Warner
@sjwarner-bp
@jssander I would point you to the Point class (pun intended) :laughing:
Would that help your issue? :smile:
Jeffrey Sander
@jssander
I submitted a PR for adding the go-counting exercise, but there are conflicts regarding config.json. I guess it still has the entry I added for two-bucket.
Could you take a look when you get a chance?
Also I'm not sure why everything in my comment is showing up as what looks like bold text.
Sam Warner
@sjwarner-bp
That's ok! Don't worry about it. Frida and myself have left comments, let me know what you think πŸ™‚
Jeffrey Sander
@jssander
Ok, can you help me rebase or merge with master?
Jeffrey Sander
@jssander
I tried git rebase upstream/master, but it said it is up to date
Sam Warner
@sjwarner-bp
Hi @jssander - before you rebase you will need to have run
git fetch upstream
so that you locally have the most recent version of upstream! You can then
git rebase upstream/master
Hopefully this will help you, although if you have rogue commits in your branch, you might need to revert the old ones, or make a new branch and cherry-pick your desired commits across. Let me know if this is the case and I can guide you :smile:
Jeffrey Sander
@jssander
Ok, after those two commands do I commit again? It says there is nothing new to commit.
Jeffrey Sander
@jssander
Now I'm not able to push to new-go-counting. It says the tip of the current branch is behind its remote counterpart.
Norbert Melzer
@NobbZ
As you are (hopefully) the only one pushing to that remote, you can git push --force
Jeffrey Sander
@jssander
Will I lose anything if I do that?
Norbert Melzer
@NobbZ
Yes, everything thats not on your local fork. But usually thats exactly what you want. It only gets hairy if there are more than one person with push access to that repo.
Jeffrey Sander
@jssander
Thank you, it works now.
Jeffrey Sander
@jssander
I'm having trouble rebasing now. There are merge conflicts in go-counting I guess now that my commit has been merged.
Jeffrey Sander
@jssander
I'm trying to implement the dominoes exercise, but struggling with git again. Even after making a new branch and cherry picking a commit, the changes to my previous exercise are still there.
Jeffrey Sander
@jssander
hmmm, I think I got it
Victor Goff
@kotp
The old xjava room can probably be deleted by now.
michaelspets
@michaelspets
I had some troubles importing exercism/java in intellij
michaelspets
@michaelspets
i opened exercises but while i could work properly in .meta source i couldn't in src tests
Has anybody faced this problem?
Norbert Melzer
@NobbZ
@michaelspets I do not use IntelliJ, its too bloated for my little RAM… But what do you mean by "couldn't [work] in src tests"
John Reese
@jpreese
would anyone have a moment to help me with a general Java issue? I'm just trying to import a project (a java project from github) into a new project, and use the code from that imported project.. no matter how I slice it, I just cant seem to import the project. I come from a C# background and have no idea what I'm doing in the Java IDE
once I get that set up, I can fumble around with the syntax
Norbert Melzer
@NobbZ
@jpreese don't learn the IDE first. Just open the files in a plaintext or smarteditor like vscode, atom, notepad++, Emacs, vim and learn the language. After you feel comfortable with the language you can choose a different set of tooling.
Also you should not start by importing parts of a bug project into yours. Either try to extend the big project such that it suits your needs or write your stuff from scratch or use a library. This advice is only about the best way to learn and does not consider legal issues.
John Reese
@jpreese
yeah I'm trying to import it so that I can extend it, it wouldnt really make a whole lot of sense to start from scratch