Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
Norbert Melzer
@NobbZ
So you want to import the project as a whole? Then its either prepared for IntelliJ and has proper project definition files, or you should ask in an IntelliJ group how to do it properly. Or just use the IDE/editor that is used by that project as the main tool
John Reese
@jpreese
I would think its just a general Java question.. similar to in C# you just Add New Project, then right click Add Project Reference to the main project and.. there you go, you can use that project now. It's just, in Java, even if I add it to my pom with Maven, or edit the Gradle file.. or <insert build approach here> it wont find it
Norbert Melzer
@NobbZ
In C# you have an ecosystem dictated by MS, all tooling is centered around whatever MS wants them to be centered around, so its easy there. But its different with Java where you have a plentora of tools that differ in features and how they work. If that project is not prepared for IntelliJ, I think it will not be easy to properly open it in IntelliJ.
That question is also not related to Java, it is related to IntelliJ, since there are a lot of other tools you can edit Java in. Eclipse, Emacs, Vim, Notepad++, Atom, yes, even plain windows Notepad works
John Reese
@jpreese
it.. doesnt have to be IntelliJ, I'll do it in anything
Norbert Melzer
@NobbZ
Then I'd suggest to just use Atom, Sublime or VScode, they usually work out of the box with very little configuration, simply by opening a projects base dir
Assuming correct plugins for a language are installed
Lee Stewart
@zantetsuken88
I wonder if anyone can help me out. Complete newbie to java - although I've completed the codecademy course (which is super short and basic). But I'm having trouble even starting the exercism course. I'm on the 2nd exercise and I just have no idea where to begin.
Norbert Melzer
@NobbZ
Which one is the second for you?
Lee Stewart
@zantetsuken88
It's the 'Twofer' task