Brandon Bushnell

+ Follow
since Jan 18, 2015
Brandon likes ...
Mac Eclipse IDE Java
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Brandon Bushnell

Joe Bishara wrote:

Brandon Bushnell job isn't related to programming

I hope I don't scare you off but you mentioned that your job isn’t related to programming, so before you switch to programming, there are a few home truths that need to be spelt out.

Java has a wide variety of uses from web development to desktop software to mobile, however, like a marriage, programming is a lifetime commitment. In many professions, one needs to train regularly in order to stay relevant, however, this issue is especially amplified in programming. Just when you think you know enough, there’s a little bit more to learn.

The trick is to show your employer that you can learn and you are willing to keep learning.

Not at all! I actually appreciate your blunt honesty. I wish I had the time like I use to to sit down for hours and learn to program. Now I have to take PDF's with me on the go and read them on breaks. When I come home I'm a full time dad/husband/student so time is scarce. However, I'm going to make it work. I think that's why I really wanted to take the time to ask some of you senior programmers if this is the right way to go. I just wanted to ensure that Java was the right language to learn for what I'm doing since time is so scarce. Some of the members mentioned robotics/electronics. Those would be interesting way down the road but for now I'd really love to just make programs that interact with content from websites or client/server type programs. I love networking and would love to learn more about sockets and eventually get a grip on multi-threading (I don't know what this intimidates me so much).

Thank you again so much!
5 years ago
It's almost as if you're both speaking another language, haha. I can't wait to continue learning more about Java so I can understand half of the things you are talking about LOL. Really excited to be here and to see how active members are in the community!
5 years ago
So much helpful information packed in here. You guys are awesome and the reason why I keep coming here. Is it possible that a community alone is the driving factor of wanting to learn a programming language? Haha. Like Steven's was mentioning, it's extremely daunting learning a new language. I took a stab at it a while back and I'd like to get back on my feet and rolling with Java again. The tinkering with electronics and boards seems like a lot of fun but I think for now I'll just stick with the software side. I have this crazy passion to want to build programs that can:

- Act as an email client
- A program I can leave running on my computer and I can monitor things from my phone using an Apache server, or something? Not entirely sure where to start, but that seems like a fun project
- I play some online games where their websites collect data. I think it would be cool to make a GUI based application that can pull data from their website. I don't know if using web requests would be too slow, or if using something like Sockets would be faster? Not sure how this would work in Java

Again, you guys are some amazing people. It's really awesome being able to talk with people who are, how I see, at the finish line or deep into the race of being programmers. Getting advice from you guys means a lot to me because I know it's educate opinions from real-world experience. Thank you all so much!
5 years ago

Stevens Miller wrote:Now, as you are interested in real-world data, I am going to suggest you learn C. C is easy to learn and is popular with the Arduino community (that's a cheap, tiny computer that can easily be connected to external devices, like weather sensor, LEDs, games, and so on). The vendor provides a C compiler (albeit a slightly limited on) for free. Yes, there are similar products that run Java, but I personally think C is a little bit better fit for that sort of thing.

I just checked out their site and some of the content. Seems pretty cool! I know nothing about electronics though, haha. I think it'd be quite fun to do something like that as a side project. Thanks for sharing this!

Stevens Miller wrote:Now, having said that to you, I also advise that you stand some distance away from me, as this is JavaRanch, and it is very likely that, in a few moments, my colleagues will begin to hurl heavy objects at me, and I don't want any innocent bystanders getting hurt.

*Puts on helmet*, it's okay I'll stay for the chaos.

Thanks again for all of this. For some reason I really want to stick with Java still. Seeing the robotics/electronic side of programming is pretty cool. The satisfaction of being able to program something and put it into a device that you can touch and see physically would be quite rewarding. Maybe once I stumble across some additional funds I'll pick up a starter pack and try it out! Thanks again
5 years ago
Knute, thank you very much for your answer!

I love being able to learn a language, when I was a kid I programmed with Visual Basic and made programs that interacted with Windows API and would automate things in other programs. Eventually I tried learning Winsock but struggled because I didn't have the networking fundamentals down like I do now. Client/server programs, retrieving data from websites (such as an email client or something to pull email), and things of that nature I think would help drive me to want to learn a language. Would Java be suitable for this, or would I be better off with another language?

The only other thing that remotely interests me is PHP because I use to do web design, but only with HTML/CSS and graphic design.

Can't thank you enough!
5 years ago
First off, it's been such a long time I posted but I love this community and something really draws me here (which is why I lean towards Java, haha).

Currently I have no real reason to program other than to just have fun and learn. I've taken all of my college level programming classes I need for my degree in Cybersecurity and my job isn't related to programming. But it's always been a hobby/passion I want to pursue. I feel like I'm always stuck at the drawing board on which programming language to choose. I know from reading similar posts that in the end a successful programmer knows more than one language. I feel like I just need a push into the pool though.

The types of programs that I have interest in seem to be ones that interact with external data. As simple as a program to get weather. Or even some computer games I play, being able to get data from the games themselves. I don't own a server or have anything installed to support it so I'm not sure if I'd be able to do any back-end type things with Java at my level/experience.

I really want to choose Java but when I read about what it's used for I get overwhelmed with some of the practical uses for Java. Whenever I read articles about it I see people, like any other language I suppose, bash Java and say that it's oudated, slow, and you should get rid of it if you don't need it. I'd really like to invest into some further education and materials (books, classes, etc.) into learning a programming language. Would Java be right for me?

Thank you so much you guys!
5 years ago

Mike. J. Thompson wrote:
If you have a look at where you assign the value to msg, you can see it depends on the return of jsonObject.get("hexes"), which is looking for the item called "hexes" at the root of the JSON document. However "hexes" is not at the root of the document, it's under "resonses". I imagine you need to reference it with something like "responses.hexes".

I had a gut feeling it may be related to that. I have no idea how to work around it either. I'll keep doing some research now that I know what the problem is! If I find anything I'll share it here too if someone else doesn't have a solution first. Thanks again Mike for all of your help!
6 years ago
I'm very sorry about that!

The culprit:

Exception in thread "main" java.lang.NullPointerException
at ToolMain.main(

6 years ago

Mike. J. Thompson wrote:Can you post the exact error you're getting, including the full stack trace. Without that I can only guess what the problem might be.


Exception in thread "main" java.lang.NullPointerException
at ToolMain.main(

6 years ago
Hey everyone! I have a file that I have saved where I was able to capture data that contained player names, locations, and some extra information. I'm trying to figure out exactly how I can parse it. I've read through a few tutorials but nothing seems to quite work. This is the output that I'm looking for in the end:

Player (X, Y) - Level 34
Player2 (X, Y) - Level 22

Here's the code that I currently have:

*Note: Even this throws a Null Pointer Exception!

Here's the pastebin for the contents of the .JSON file:

Not every iteration in the hexes field in the file contains player_name and player_level, but those are the only one's that I'm trying to also get the hex_x, and hex_y from as well! I've been playing with this for a few days and I've reached a mental roadblock. Still pretty new to a lot of things but this has really captured my attention. I'd greatly appreciate your time in pointing me into the right direction. Thank you so much!
6 years ago
Still hoping one of the seasoned Java programmers stumble across this, although the solution may be way easier then what it seems. I'd greatly appreciate your time and help with getting into the right direction. Thanks again guys!
Hey guys I'm not entirely sure how to word this problem, I'm really sorry if I sound like a complete idiot!

I've started learning Sockets and Internet protocols for Java a few months ago. I just got back from some Military training so it's a little dusty. However, my friend enlightened me on a really cool program called CharlesProxy. It allows you to use your Mac's IP address on your iPhone as a proxy, then any game you use it catches all of the input/output traffic.

The advantage of this is that a lot of really useful information can be seen, ex: Leaderboards, Player Bases, etc.

Instead of having to do this in CharlesProxy, I'd really like to transfer this into programming so I can parse all of the responses into a list for legibility!

Here's what the request looks like:

Other info:
Content-Type: application/json; charset=utf-8;

And the response is packed with a bunch of data that includes the player names, etc. in the leader boards that I'm searching for!

This is getting to the path of something I've always wanted to learn in programming, interacting with other apps using packets/sockets/or web requests. The problem is I have a basic knowledge of the pieces to the puzzle but I don't know how to put them together. If someone can point me down the right path I'd be extremely grateful. Thank you SO much you guys!

Summary: CharlesProxy allows me to see traffic of an app on my iPhone on the same network. In a response to one of the requests it returns back the players in the leaderboard. How would I go through these steps using Java instead (Connecting, requesting, handling a response)? The pieces are all in front of me but I don't know how to put them together!
The reason it worked is because the compiler is doing this:

Compiler: “Okay, I need to find the p method, let me look in ClassC first!”
Compiler: “There’s no p method in ClassC, hmmm, maybe I can look at its superclass; ClassB”
Compiler: “Nope, no p method in ClassB either. But ClassB also has a superclass; ClassA, let me look there!”
Compiler: “Found it! Let me execute the p Method from ClassA!"

When you have multiple subclasses, the compiler will start at the bottom (ClassC) to look for the method and move up the chart until one of the superclasses contain the method. In your case, ClassA!
6 years ago
You guys have been amazing, thank you so much for these responses. I'll continue to do research on projects to take on to expand my knowledge. Now that I'm finished with this book, other then touching up on my washy subjects, I don't know what exactly I should focus on to make this a career. As in what types of programs to make.

Bear Bibeault wrote:Oh, and by the way, thank you for your service.

Thank you so much! And thank you for taking the time to respond to me as well. You guys really have boosted my confidence
6 years ago

chris webster wrote:
That's normal. I first started learning about Java soon after it came out in 1996, then when I came back a couple of years later the language had doubled in size, and since then the libraries seem to double in size every year - it grows like bacteria... Don't try to learn it all, just pick some core areas where you feel you want a strong grounding, then pick up the other stuff as and when you need it. No point learning stuff that will be obsolete by the time you think you need it!

Oh wow, you've been coding with Java for a while! I guess I get overwhelmed when I start hearing about 'Server' talk and such. I'm just a home programmer that hasn't done anything other then simple programs, even with VB6. Is there anything to do to prepare for it? Should I look at buying my own VPS or something similar to start getting ahead of the game now?

chris webster wrote:I would say yes, and it means you probably already know more than some Java programmers I've worked with!

That's great to hear! I just need to somehow translate it into a resume! I just feel like whenever I build a resume I'm overselling myself with some of the technical aspects of the resume.

I also have to ask. When you finally have a job as a programmer, of any language, are you allowed to look up resources to help? I feel like you're trapped in a room with no internet access and you're suppose to know how to code everything from the top of your head, haha. Is there any validity behind that or do you actually get the ability to look up things you're not too familiar with?

6 years ago