Pete Letkeman

+ Follow
since Jul 06, 2017
Pete likes ...
Android Chrome IntelliJ IDE Java MySQL Database
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt Green check
Moderation Tools

Recent posts by Pete Letkeman

Spring Data is included with Spring 5 (released Sept 2017) and Spring Boot 2 (currently at RC1).
Pivotal (creators/maintainers of Spring) have a certification exam for Spring 5.
I'd expect Spring Data to become more common place as people start using Spring 5 and/or Spring Boot 2.

Dave Tolls wrote:any(Exercise.class) should work, but not seeing the code that apparently didn't work I can't say what happened there.

Translates into:
Which generates the following error message:
ReactiveCrudRepository is a Spring 5/Spring Boot 2 interface.

This Spring 5/Spring Boot 2 and Kotlin are both fairly new as such I suspect that there is something more that need to be done to get this to work.

I'm going to move on with the project and come back to this test and other test which require the use of the method later on.
Maybe I'll do the testing of these method using Java instead of Kotlin, but that won't be for at least a few days or more.
1 day ago
I have not used Selenium too much...maybe only a few hours, but I did find this which may help out: wrote:Navigation: History and Location
Earlier, we covered navigating to a page using the “get” command ( driver.get("") or driver.Url="" in C#). As you’ve seen, WebDriver has a number of smaller, task-focused interfaces, and navigation is a useful task. Because loading a page is such a fundamental requirement, the method to do this lives on the main WebDriver interface, but it’s simply a synonym to:

To reiterate: “navigate().to()” and “get()” do exactly the same thing. One’s just a lot easier to type than the other!

The “navigate” interface also exposes the ability to move backwards and forwards in your browser’s history:
2 days ago
Actually this line is not needed at all
3 days ago
Interesting this code/test seems to work: However it does not use the given().willReturn() method(s) attached to the method. Plus I replaced the MockBean notation with Autowired.
I suspect that somehow the value of call is being cached and being used/returned when the exerciseService.createExercise(Flux.just(file1), ex1) method is executed.

What Dave previously does make a lot of sense to me about using any(Exercise.class). But when I tried that I still ended up with a NPE.
I suspect that this has to do with not allowing nulls and any(Exercise.class) could be filling the arguments with null values.

One thing is very clear, I still have much to learn with regards to everything that I'm using.
3 days ago
You are welcome.
As for front end vs back end. I suggest that you keep things simple when you are programming.

I know that design is not for everyone, but there are free open source designs out there which you can use. I'd suggest that were possible you add in design/colors/images at the end.
Be sure to give credit for the design where it's due and let your potential employer know that you would rather the back end instead of the front end so they know what to expect.
3 days ago
Yes, there does seem to be a few people on this site whom have had bad experiences with Stack Overflow, I'm not a fan of the way they do things either.
You maybe able to find some answers to your questions and/or ask some beginner questions here at the Beginner's forum.
This forum is not just for beginners either, but it can be a place to start.

I do hope that you find CodeRanch to be a positive, welcoming, knowledgeable and sharing community.

Not only is Java discussed, but other subjects like Linux, C, JavaScript, HTML and more as there are many people with varying knowledge set that visit this site.
3 days ago

Niall Kev wrote:I’ve already rescheduled the exam

You may be able to reschedule the exam for some other future date for free. I did this three different times before I wrote my test.
Reschedule needs to be done at least one business day before the exam and is subject to testing center availability.
However, I think that if you use a voucher then you may not be able to reschedule the exam.

It is helpful during studying to do the following:
  • Write many small programs, 30-40 lines of code can really help with some of the concepts.
  • Throw away the IDE and use a simple editor like NotePad++, Siblime, Vim. These editors are great for product code, but they tend to hide some of the things you will need to know.

  • Niall Kev wrote:I’ve done nearly all enthuware and am getting about 55% on average

    It may be best to slow down. If you are not get more then 60% on the Enthuware tests then you should probably stop and continue to learn before taking any more Enthuware tests.
    When I took the first test "foundation" I did not do that well so I took a couple of extra weeks to learn things.

    If you find that one book if "boring" or that you do not like it, then try a different book. There are four or more books out there each trying to cover all of the material which is on the exam.
    Or, you could try reading the book in a different way. May read the chapters in reverse order or something like that.
    Remember that it is usually cheaper to get another learning resource then to fail the exam.

    Niall Kev wrote:I have the exam in 3 weeks.

    You may be able to reschedule. I was able to reschedule without loosing my money a number of times. How I think that rescheduling depends on how the exam was paid for.

    Niall Kev wrote:Enthuware are way better

    I'm not too sure which tests you have been taking, but I do recommend that you do use Enthuware. Last I checked it was well work the $10 USD.
    If you follow the "standard" method you get nine different tests with mover 500 unique questions which tell help let you know where your knowledge is lacking.
    Given that it's nine different tests, and that you should wait a day between each test the whole process takes about 18 days to complete, which would leave you very close to your exam date.

    Many people have stated the the questions in the Enthuware question bank are more difficult then the final exam. As such people would get 70% using Enthuware and over 80% on the real exam.

    Please note what when studying with Enthuware that you should not take the same test more then once. If do then you could end up memorizing the questions and answers and this will not help with the exam.
    Not only that you when you complete a test you should look at both the questions you got wrong and the ones that you got correct as there is a chance that you got lucky with a guess or you choose the right answer for the wrong reason.

    Toni Lane wrote:The current step that i am thinking of taking is to create a project(s) and publish it(them) to github.

    This is a great step for anyone/everyone. GitHub is free and you can use it to show what you know. It's probably best not to have too many uncompleted projects.

    Toni Lane wrote:Should i start attempting to learn microservices before attempting to upload some code to github,

    I think so, as there is no right answer to this. However knowing and having one or two working examples can be helpful.

    Toni Lane wrote:should i just write what i already know (a big monolithic web app).

    I think that many people are hearing the word/phrase micro service and are trying that out for now and trying to break things down into more usable parts.
    I remember hearing (I don't have the source for this) that Netflix use to have one large monolithic which would take about 40 minutes to start.
    Netflix decided that this was not the best, so continually broke down this monolith and now they are using some micro services.

    You have some knowledge in many different areas, what if you put that all together?
    You could use you Java 8, MySQL, Spring (what about Spring Boot?) and Kotlin along with your other skills to make some sort of project which showcases them all.
    Then you can show that you can coordinate services and software across a few different areas.

    For instance you could do something like this:
  • Write some software which uses a web/rest interface which:
  • Could read in cooking recipes
  • Finds the ingredients at the store(s) closet to you
  • Provides a shopping list
  • Make an app, you know Kotlin, you can do this in Android?
  • Provide routes using Google maps

  • The idea is to take a project, either not out there yet, or to be improved upon and make it happen.
    This will work better if you are interested in the subject matter.
    Maybe you can create a project about the city you live in/near or movies, books or cars.

    If you do want an introduction into Spring Boot 2 and micro services that you may want to check out
    Learning Spring Boot 2.0 - Second Edition: Simplify the development of lightning fast applications based on microservices and reactive programming
    by Greg L. Turnquis first published in November 2017.
    I recently went through that resource and I found it helpful.

    Toni Lane wrote:What are my odds to land a job as a java backend developer for both cases?

    Too many unknowns for any valid answer.
    For instance (sample questions that you should ask yourself):
  • Are willing to relocate to a different city, state, country?
  • Are you looking at becoming a contractor or would you like to be a full time employee?
  • Are you looking for a job where you can move up the corporate ladder?
  • And the list goes on

  • Plus there are factors which are out of your control such as:
  • What companies are hiring (either publicly or privately).
  • What the job market is for where you want to live/work.
  • And the list goes on

  • Toni Lane wrote:How do i rate myself? Junior? mid?

    If you do not have too much experience then most people would probably classify you as entry level or possibly junior.
    It all kind of depends on your years of experience as to what people classify you as.
    3 days ago
    I think that I'm missing something here.
    What if we remove the Mono from the example then we get something like When you explicitly create a value for a mock method as shown are you not telling the framework that when you call that you will get in return?

    The ExerciseService calls the and the returned value in this instance is a null value for some reason, and the mocked return value is not a null.
    4 days ago

    Dave Tolls wrote:Your mocking for save(ex1) uses an Exercise object that looks like it has an id of "1"?


    Dave Tolls wrote:The actual call to save appears to be using an Exercise object with a random UUID (called exerciseID).
    I can't see how it can match, unless equals ignores the id.
    This assumes that Exercise has some form of equals method in the first place.

    However shouldn't this return with an object that has an id value of 1 along with the other constant values?

    Exercise, is a Kotlin data class which does indeed have an equals method.
    4 days ago
    I don't think I'm doing that, but I could be wrong.
    Here is a link to the GitHub, but the code in question is listed below:
    Unit test:Here is the code that the unit test is trying to execute and return a NPE
    4 days ago
    I'm working on a Spring Boot 2 project which is programmed using Kotlin and WebFlux/
    Currently I'm trying to figure out why when I call a mocked method I get NPE, but when I call the method normally things work.

    What are some common causes of a test null, but when you call the method outside of the test environment the code works?
    4 days ago
    Okay, I do think that you may want something a bit more then javac and batch files for this.

    ras oscar wrote:I have not yet been able to compile the program since splitting it and am trying to diagnose the problem.

    What are the error(s) that you are experiencing?
    4 days ago