Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Pete Letkeman

Saloon Keeper
+ Follow
since Jul 06, 2017
Pete likes ...
Android Chrome IntelliJ IDE Java MySQL Database
Canada
Cows and Likes
Cows
Total received
56
In last 30 days
13
Total given
21
Likes
Total received
361
Received in last 30 days
35
Total given
63
Given in last 30 days
8
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt Green check
expand Greenhorn Scavenger Hunt Green check

Recent posts by Pete Letkeman

Welcome to CodeRanch Vanessa.

I'm not too sure if there is an easy answer to your question as each person will most likely have their own reasons for using the IDE that they are using.
Here are some opinions on IDEs:
  • https://coderanch.com/t/688064/java/Recommended-text-editor-writing-Java
  • https://coderanch.com/t/681901/java/IDE-Beginner
  • Many of the mainstream IDEs/editors have good documentation and strong/helpful communities to help out.
    I suppose the main question is "What are your goals?". You don't have to answer that here, but you should attempt to answer that before too long.

    You have chosen to learn Java for a reason and some IDEs appear to have better support in certain areas then others. Plus your background would influence your choice.
    Some people may have a strong background with Microsoft Visual Studio, so they would probably gravitate to an IDE like Visual Studio.
    Other may have previous experience using Eclipse for other development in the past.
    Some companies may force you to use a specific IDE, so knowing more then one is not a bad thing.

    If you are going for Java certification then I would recommend against using an IDE.
    IDEs are great for creating production code, but they hide many things which a someone should know which may be on certification exams.
    Plus, knowing how to do things without an IDE can be very helpful if you are forced to use a system where you cannot install your IDE.
    14 hours ago
    What path would you recommend for learning Xamarin?
    Is it better to first learn programming the individual platforms using their native languages (Java, Objective C, etc) then move on to Xamarin or should you learn Xamarin first and then move onto the native languages (if needed)?
    14 hours ago
    Brian Burress,
    Your post was moved to a new topic.
    (This informational message will self destruct in two days)
    21 hours ago
    You may want to go through some of the guides provided by Android at https://developer.android.com/guide/.
    Not only do they go over using Android Studio, but they also go over some general programming guidelines plus some guidelines for Android/mobile development.
    Plus many of the projects/tutorials provided at https://developer.android.com/guide/ have both the Kotlin and Java code.
    1 day ago
    Hello Jim Bennett.

    While your book focuses on the mobile platforms, many of use also use a desktop platform.
    What would you say a desktop developer could learn from your book to help them multi platform with desktop development?
    1 day ago
    Welcome to CodeRanch Jim Bennett,

    I hope that you have a successful promotion and you get some interesting questions.

    Invariably you are going to run into situations where you need to debug your code using Xamarin.
    You may even end up with your code working fine on Android devices but not on iOS devices.
    In you book Xamarin in Action: Creating native cross-platform mobile apps, do you provide insights into the tools one can use debug applications when they seem to work in Android and not iOS or vice versa?
    1 day ago
    Greetings Jim Bennett.

    As much as the operating systems for smart devices are the same, they are also different.
    Using Xamarin are you able to fine tune the final app for each type of device (iOS, Android)?
    1 day ago
    Hello Jim Bennett,

    it's great that you have decided to stop by and allow us to pick your brain regarding Xamarin.

    What would you say is that most common entry barriers for Java/Android developers when looking at using Xamarin?
    How would you suggest people overcome those barriers?
    1 day ago
    I suspect that you are talking about this code: with the if on line 6, and possibly other locations.
    When the code is executed correctly then you are probably correct and that those if statements are not needed.
    However, you can easily call the setListeners method from nearly anywhere you want to and you can pass in bad/null values.
    Or you may not be passing in the null values, but someone else who uses your code in the future might.
    This could be a simple as a typo or someone trying to hack your code.
    With a very simple if like this you are guarding your code against being misused (at least partly).

    Now if you were to use Kotlin you would end up with something kind of like the following code which has been commented out because I'm not too sure if it works.
    Kotlin deals with null checking differently then Java which is why you may not have to program in the null checks.

    By the way, did you know that you can have both Java and Kotlin files in the same Android project running together in unison?
    In doing this you can migrate away from Java and toward Kotlin.
    Not only that, but Google officially supports Kotlin for Android app development.
    1 day ago
    On the AWS certification page https://aws.amazon.com/certification/ you can find more then 12 different exams you can take on the path to become certified.
    On the Azure certification page https://www.microsoft.com/en-us/learning/azure-exams.aspx you can find more 10 different exams you can take on the path to become certified.
    On the Cloud Foundry certification page https://www.cloudfoundry.org/certification/ page you can find out what how to become certified in that.
    On the Google Cloud certification page https://cloud.google.com/certification/ you can find out all about their process.
    On Oracle's Cloud certification page http://education.oracle.com/pls/web_prod-plq-dad/ou_product_category.getPillarPage?p_pillar_id=502&p_mode=Certification you can find our exit the exams and more.

    You want to become and architect in the cloud you will most like need to take a few different exams. Google, Azure, AWS and Oracle are some of the bigger cloud providers. You will need to read about then, factor in exam costs and learning materials. I'm pretty sure that you can at least get started for free in all of them.

    As for which one is the best? Depends on who you talk to as many people have different experiences and biases.
    2 days ago
    You are most welcome.
    I glad that you got it working and I'm glad I was able to help you out.
    2 days ago

    Lisa Austin wrote:And the example showed the container's XML was what contained the fragment ( in this case NumbersFragment() ).

    My code doesn't specify anything to contain the fragment, I just want to display it.   Am I on the right track by any chance?

    To get past the NullPointerException you only need to change the value of rootView and nothing else. After that you get a "working" program.
    It may not do exactly what you want, but what would then be a business logic thing. For instance you may need to add in an onClick event or something like that, but that is a different problem.
    2 days ago
    The rootView value that you had/have does not have any child view elements named bbq_list_view.

    Essentially this is what happens:
    1) Android loads R.layout.locations_list on line 35.
    2) On line 42 Android looks for an element named bbq_list_view in the locations_list view.
    3) Android is unable to find that view, so Android returns a null.
    4) Result you get a NullPointerException as you have experienced.

    The solution is to have the rootView inflate the view which contains the child element named bbq_list_view.

    It did take me a bit to get to the correct end result.
    Here are the general debugging steps I used:
    1) Try out the program to see if the produces the same error/result as you
    2) From the user experience find out where the error seems to happen by commenting out some lines of code.
         - This lead me to the post where I mention the problem with FoodActivity.java
    3) Narrow down the error even more by jumping down further into the code/classes which lead me to the post about "listView" return null.
    4) Find the code which should have setup the listView to see how that was loaded.
    5) Change the value of the rootView to load in a different view (the view with bbq_list_view).

    I used the shortcut "logd" in Android Studio many times to print intermediate values.
    2 days ago
    The problem is with this line of code in BBQFragment.java Once you provide the correct value for inflater you will get the results that you want.
    2 days ago