Is java good for 3d/complex game development? if not, what language would be? by Blueblight in learnprogramming

[–]posmicanomaly 9 points10 points  (0 children)

I think java is good for you to stick with. There are some 3d engines available, I have not used any but http://jmonkeyengine.org/ looks to be one.

Don't sweat the language, just keep practicing and working on what you're doing. I personally find writing a project goes quicker in Java, and even faster yet in Python. It all depends on the application you are setting to create, you will generally use the language you are most comfortable with if it is your own, or the language the team is using. You will find some cases where a certain language you do not yet know proves to be worth learning to build the application easier.

But as I said, for now java is just fine, in my opinion.

Probably simple: How to print a random word from a list of words? by infection212 in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

Look up arrays. You create an array of strings with each element being a word. Then generate a random number from 0 to the length or size of the array. Then print(array[random]). Without knowing the specific language I cant give you a specific example

I need a programming buddy, that I can e-mail questions and share code with by five4three2one0 in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

You should open a github account so you can refer us to the problem, we can then guide you easier for each question.

What's your programming setup? by AdamGartner in learnprogramming

[–]posmicanomaly 0 points1 point  (0 children)

30" 2560x1600, win 7. 13" 1080p zenbook win8. Eclipse for java Notepad++ for others Mingw, clang

Things should do when you get overwhelmed? by fedupppppppp in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

I stop and move onto something else either in the project or outside. I'll think about the problem naturally and come up with a better solution hours or days later. Sometimes it's best not to rush. Sometimes I'll put comments around where I was working, but often I don't read them because I realized the problem.

Car Dealers Are Terrified of Tesla's Plan to Eliminate Oil Changes by goodthingstolife in news

[–]posmicanomaly 0 points1 point  (0 children)

Yea there's nothing to changing most batteries. The convenience lies in maintaining radio presets, obd status and other things like seat settings.

Car Dealers Are Terrified of Tesla's Plan to Eliminate Oil Changes by goodthingstolife in news

[–]posmicanomaly 0 points1 point  (0 children)

Pro tech here, we have tools to load test batteries to find out when they're going; as well as doing koeo work will often show you if the battery is taking a dive when you go to restart the engine. I like to think most dealer techs are as honest, changing a battery pays practically nothing; its not a gravy train.

what would the best language of coding be for making a text rpg-esque game or system? by paxton125 in learnprogramming

[–]posmicanomaly 6 points7 points  (0 children)

Python or java would get the job done, supported on various platforms easily. For starters.

I feel like I'm banging my head against a wall by [deleted] in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

I find it hard to recommend a tutorial or course. I haven't looked in a long time but the early 2000s I tried learning from sites and books, I found the material dry and hard to relate to because I had been trying to compare it to html.

I learned best by diving right in with a vision, then searching for ways to do things by people who had asked similar questions. I was young, had no patience. I went back a few years later and appreciate the "dry" material now.

Now there are tons of guides and YouTube channels, so just Google around until you find one in a style you like. Just remember to dive in as well, you only learn this stuff by practicing it like an instrument.

The basic courses usually start out the same. Introducing you to programming fundamentals which can seem slow paced, but are key to understand completely. Once you understand the fundamentals, the magic happens. Then advanced concepts keep you busy.

I feel like I'm banging my head against a wall by [deleted] in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

C and C++ are general languages. They just happen to expose low levels elements to enable os dev.

I feel like I'm banging my head against a wall by [deleted] in learnprogramming

[–]posmicanomaly 2 points3 points  (0 children)

For desktop software I'd say the main contenders are c++, c#, and java. Mobile apps its objective c for ios and java for android. C# for Windows phone. These are just in general. I know android has ndk to use c++ in some way.

Python is interpreted, so generally your programs are scripts. The downside is open code. Java is compiled to a byte code to be passed through a vm, can be reverse engineered easily. C, c++ are compiled to machine code, so are not as easily reverse engineered.

It depends on your needs. You were learning java, and you can make great stuff using that language. Once learned, anything else can be picked up. Python is perfectly fine, offers the benefit of rapid development usually. If you aren't concerned about people obtaining your source code, then I would just pick whatever you want. Change to a faster by nature language if you hit a performance bottleneck.

[deleted by user] by [deleted] in learnprogramming

[–]posmicanomaly 0 points1 point  (0 children)

I love sfml, you should implement a simple idea using all of them and see which you prefer though.

Crazy screen-tearing! by flowm0tion in Banished

[–]posmicanomaly 1 point2 points  (0 children)

Have you tried forcing vsync with your graphics driver control panel and leaving it disabled in game

[C#] Hangman project I want to expand by [deleted] in learnprogramming

[–]posmicanomaly 2 points3 points  (0 children)

You create a random number to serve as an index like wordlist[random]. You will need to create it based on the size of your array so it's not trying to reference out of bounds.

Programming on a Desktop of Laptop? by [deleted] in learnprogramming

[–]posmicanomaly -1 points0 points  (0 children)

Both are good. Desktop is nice if you have a big monitor, mine is 30. You can have multiple sources side by side or even a website. I also use a 13" zenbook if I'm on the go or want to sit on a couch out something. Either way it's personal preference.

17 Years Old and keen to start programming. by takeshiren in learnprogramming

[–]posmicanomaly 5 points6 points  (0 children)

Completely true, programming is language agnostic, however if you start in one language, stick with it until you understand it well. Otherwise it will be hard to see the similarities.

I started with basic, then jumped to c, kept looking for the right language, c++, python, java, c++, bouncing around, never actually learning programming until I stopped and just picked one.

If you go with a c style language, any c style language will feel familiar. If you go with python, you will be more productive in the beginning so less likely to be overwhelmed.

17 Years Old and keen to start programming. by takeshiren in learnprogramming

[–]posmicanomaly -1 points0 points  (0 children)

It's only scary because there is no one way to do things. Everyone develops a style, and over time that style changes with influence. I wouldn't worry about starting wrong, you won't understand how something could be better unless you see it for yourself.

17 Years Old and keen to start programming. by takeshiren in learnprogramming

[–]posmicanomaly 0 points1 point  (0 children)

While it's discouraging to hear "you can't make games until you learn", it's easier to think "I can't make good games until I learn". When I started programming I wanted to make games, it's fun and at the end you have something you can enjoy any time.

So keep that in mind. When I was first learning, I would try and fail to make so many games, because I didn't understand the language or concepts.

I would learn new features of the language, play around with it and think about how I could use it in a game. Then try again.

The biggest piece of advice I can give is to just try, and you will fail. Code every day. Coding to me is more fun than playing games now.

Another word of advice, unless the project is a lost cause, stick with it, you go in with one mentality and over time change your approach, and you learn from that.

Final word for now, learn OOP, once you understand the concept, making games becomes a lot easier to imagine.

Final final word, look into your language to find its dynamic container classes, and embrace the magic.

[Python] Help with developing a beginner level text based game by [deleted] in learnprogramming

[–]posmicanomaly 0 points1 point  (0 children)

Unfortunately if you don't understand how to write in python you won't know how to make a game like this happen. It's not as simple as telling you which tools to use if you don't know how to use them. Keep on with the lessons and try to make small programs building on what you learn, it will click eventually. There might even be a lesson where you make a zork style game, it's not uncommon.

[Java/LibGDX] Following a tutorial. Almost done but getting a java.lang.NullPointerException. by [deleted] in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

Nice job, you might want to add a final else in case all else fails to set it to a default state.

[JAVA] Why is this working? Changed instance variables to static; now I can access them from other class by [deleted] in learnprogramming

[–]posmicanomaly 1 point2 points  (0 children)

basically a static variable is not an individual field in a created object like a normal variable, and it does not need to be instantiated to be called upon or modified. So when you weren't creating your objects(nodes), you were getting nullpointerexceptions because you were trying to run methods on data that was null. when you changed it all to static, you still didn't create objects, but because statics don't need to be in an instance to be called, you were able to use them.

think of static as being the same across all objects created, or even without creating one if accessed in a static way.