Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
vincemizuki
@vincemizuki
returning blank
this was working a few months ago
Norbert Melzer
@NobbZ
Since yesterday everything is different.
vincemizuki
@vincemizuki
but I can see exercism has been updated, so I've updated exercism in my terminal
I see
Norbert Melzer
@NobbZ
So lezts check for exercism configure 2>&1 | grep -v -- --token
vincemizuki
@vincemizuki
returns blank too
Norbert Melzer
@NobbZ
completely?
vincemizuki
@vincemizuki
yep
Norbert Melzer
@NobbZ
Have you reconfigured after updating?
vincemizuki
@vincemizuki
yep i did but i was getting an error saying a file already exists
let me delete the file and retry
Norbert Melzer
@NobbZ
NO!
Which file already exists?
Don't delete randomly
vincemizuki
@vincemizuki
deleting the exercism folder works. i've backed it up. works fine now
thanks
Norbert Melzer
@NobbZ
Just reading the full message and applying --workspace=… would have probably been easier
Lee Stewart
@zantetsuken88
Java mentoring seems to have ground to a halt again. I've got 3 extra exercises that have been submitted for a long time - possibly weeks - and it's been about a day and half since I submitted the last core exercise with no comments as of yet
Corey
@c1505
I am new to Java, but wondering why there isn't a main method in Java exercises and why the tests still work without it.
Stargator
@Stargator

The test suites are designed to test the contents of a class. You don’t need a main method in order to test a class’s logic.

A main method is only needed if you intend to run an application that is built using a collection of classes.

gK
@yankskwesi
You can check the test folder for more details if you'd like to look deeper.
Hugues Chabot
@hugueschabot
Hello
I am currently working on a pull request for exercism/java and have to regenerate the READMEs with the configlet (as described in https://github.com/exercism/java/blob/master/CONTRIBUTING.md#updating-the-readmes).
However, the generated READMEs contains modifications outside the scope of the PR. Should I commit all the modifications as part of my pull request anyway or create another pull request only for that? @FridaTveit what is the prefered way to do this?
FridaTveit
@FridaTveit
Hi @hugueschabot :) If the modifications are just to the readme you're already modifying then I think it's fine to commit it all as part of the same PR :) Ideally any changes to other reames should be in a separate PR. I think it should be possible to specify only generate one readme using configlet, though I can't remember exactly how at the moment (running "configlet --help" might give info?). However, the reame changes are usually very small and non-controversial so if it's not possible to separate it then it should be fine to put it all in one PR :)
Lee Stewart
@zantetsuken88
Can anybody help me with a java solution? I've submitted but I don't understand my mentor's feedback even after asking for clarification
It's the 'Matrix' exercise
Sam Warner
@sjwarner-bp
Hi @zantetsuken88 what is the issue? :slight_smile:
Lee Stewart
@zantetsuken88
Hi @sjwarner-bp I just don't understand the feedback, likely due to me not having a good enough grasp of programming vocabulary, and possibly the mentor being unable to explain it in any other way. It would be easiest to show you the in progress solution, along with the feedback. Is this possible?
I suppose at the very least I could extract my code to a github gist, and paste the comments in for you to see.
Sam Warner
@sjwarner-bp

@zantetsuken88 Yes sure thing, you could do that and I can try and help you out :slight_smile:

Otherwise I can drop the link to your exercise in to the mentors channel

Lee Stewart
@zantetsuken88

@sjwarner-bp https://gist.github.com/zantetsuken88/645a2f3ac2a4f12a732f4bce9947dd89

I've included the test file if you need it, and also the feedback conversation is included at the bottom as a comment.

Thanks I appreciate you taking a look :)
Sam Warner
@sjwarner-bp
@zantetsuken88 the gist link is broken for me! I get a 404 - is it possible it has been copied incorrectly or it is a private gist?
Lee Stewart
@zantetsuken88
accidentally made it a secret gist, try again - sorry @sjwarner-bp
Sam Warner
@sjwarner-bp
No problem @zantetsuken88 :slight_smile:
Ah, ok I understand!

So it is a good solution - most of the logic looks quite similar to our reference answer, so I'm happy that you're answering this quite well :slight_smile:

What is being recommended is as follows (please ask more questions if I don't explain well):

Sam Warner
@sjwarner-bp

So, where the mentor says:

what if you store int[][] matrix instead of String matrixAsString?

At the top of your Matrix.java, on line 3 you create a variable to store your matrixAsString, which is passed in to the constructor, right? Then, every time that your getRow method gets called you _re-_convert the matrix (line 10, for example) into the form of int[][] in order to return your int[].

While this works, you shouldn't have to re-convert the matrix each time you want to get a row or column, after all it shouldn't change! So really, we could just do this once and store the output in a variable!

Does that make a bit more sense or would a code snippet be of help? I don't want to give away the answer and spoil the fun of the exercise!
Lee Stewart
@zantetsuken88
No that makes far more sense, thanks for explaining. I'll see if I can address it now :)
Sam Warner
@sjwarner-bp
Ok! I'll stick around on here for a little bit, so feel free to update the gist with your new answer and I can give it a quick look-over if you'd like :slight_smile:
Lee Stewart
@zantetsuken88
Thanks!
Lee Stewart
@zantetsuken88
@sjwarner-bp how about now?
Sam Warner
@sjwarner-bp
Exactly what the mentor was asking for I think! I'd advise resubmitting and seeing what else (if anything) they have to say. I think there is probably a little bit of indentation that can be fixed up and a couple of other minor tweaks but nothing huge and that is certainly the most pressing thing fixed! Congrats :slight_smile:
Lee Stewart
@zantetsuken88
Haha thank you. I've procrastinated over that for a month - but managed to fix it in 5 minutes after you explained it :P
Sam Warner
@sjwarner-bp
No problem! Sometimes it just takes a little rephrasing for it to click - I hope it all makes sense now :slight_smile:
medeotl
@medeotl
Hi! I'm confused. Why some of the "Hello, World!" solutions have class name and methods renamed? shouldn't them break the test? (i.e. https://exercism.io/tracks/java/exercises/hello-world/solutions/d00b6932ec794223879da6a69cbdbd4a)
Norbert Melzer
@NobbZ
That solution has comments from 2 years ago, it is probably legacy and did run against tests that are different from those that got associated to them during ETL.
mansur1989
@mansur1989
hi

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':test'.

    failed to read class file /home/mansur/exercism/java/two-fer/build/classes/test/TwoferTest.class