Not a programmer but I wanna know why Java/Javascript gets so much shit in the developer community and why it matters if people use it.
Noob question
...
babies first programming language
Are you indian?\
Is the codebase you're working on mostly maintained by indians?
No to both? Then don't fucking use java.
Java is (slightly) better now than it was when it was meme levels of minecraft but essentially it added an unneeded amount of levels of abstraction away from basic instruction sets when you could just fucking use C family which is a stone's throw away and had a fuckton more libraries.
Basically, you need to JRE to make it even work
It's real bad for consumers
Garbage collection means that your game could have a lag spike at any time to deal with accumulated memory deallocation. You can kind of get around it using some kind of recyclable interface where you allocate a pool of Objects and them "reuse" them when you are done with them like if an enemy dies, don't just drop the reference to let it get garbage collected let the next spawned enemy use the old instantiated enemy and the player is none the wiser.
The issue is that this is you having to manually undo garbage collection when other languages just don't have the issue to begin with and expect you to know how to manage memory like an adult. The other thing is that other libraries you would likely use would still be letting garbage collection deal with deallocations meaning you cant escape the issue entirely anyway.
Slow as fuck, ugly, full of boilerplate, desperately being upgraded to try and remain relevant. WASM can't come soon enough
>java/javascript
not the same language you fucking mongoloid
Java and javascript are very different things
>Java/Javascript
they're not related at all except for the name
that has nothing to do with it
You know what I meant you daft cunts.
Because they are both popular.
Java / JavaScript aren't the same thing at all. Quit being retarded.
It's bashed on because of poor performance and lack of enforcement of memory management. JavaScript is bashed because it's one the biggest security flaws known to man. Why do you think so many console exploits were through a web browser?
lamo at anyone defending c# while hating on based java
1. The programming field attracts a lot of autists and actual autists
2. Java has something called garbage collection that you can't access directly, I haven't read up on it exactly but it'll intermittently 'clean up' the cache or whatever, leading to a few seconds of stutter at random-seeming times. Not a huge issue, but you're probably better off not trying to make very graphically intensive games in Java.
You can't have a memory leak though, which many games in C have struggled with
is there any work being done for a replacement?
This. I can understand shitting on Java and propping up C (it means that you are an elitist aspie, but I can understand it), but C# is basically Java with different names for things. I know Java and I took a course of C#, I passed the course by just writing a Java-program and then googling what the things I was trying to do was renamed to in C#.
lol no value types
>I wanna know why Java/Javascript gets so much shit in the developer community
Javascript being unrelated, Java doesn't get that much shit. Java and languages that use the JVM are very popular. People love Kotlin, Scala and Clojure. Asking Yea Forums's opinion on tools used to make games is like asking /ck/'s opinion on tomorite and gro-sure.
Why do you normies always confuse Java and Javascript? Fuck off until you learn the difference.
Java has value types
You're confusing Java with Javascript
infoq.com
Wow, Oracle must not know their own language!
"Value type" seems to be a word that is used to mean different things, since my previous knowledge and a googling states that value types are the following:
C# has structs unsigned types and better generics.
The entire point is that C# is literally the same as Java but slightly better in every way
Sadly it copied a lot of bad shit from Java.
yeah, 'custom value types' is more correct, though in the context of java and c# just saying value types has become a convention
Isn't C# very windows-centric, while Java in contrast will work on everything from computers to ATM-machines thank to JVM?
The pros with Java are portability,security and generally pretty hard to fuck up
The cons is that they Java is extremely inefficient, so while it's fine to make an app on the phone it's not something you want to use to make a 3d videogame or any cutting edge stuff
That's why Java is so requested and why so many amateurs use it to gain a job
The Indian meme exists just because they are cheaper code monkeys than us for geopolitical problems
Yeah, so chances are if you have to write something for an ATM you'll write it in Java and be slightly sad about it but also not worry about it too much
Java is designed to be a very small language, which means that any complex concept or design pattern has to be expressed with an obnoxious amount of boilerplate. Because it's easy to learn and portable, it became a favourite for corpo and outsourcing, so its reputation got irreversibly tarnished by hordes of Pajeets writing miles of garbage code. Also the default implementation uses a stack machine, which is simple but much harder to optimize.
Javascript is just a garbage domain-specific scripting language for the web. Whoever decided that programming errors and faults should be ignored until as late as possible should hang themselves.
What makes C# more suited for game dev than Java if they both rely on garbage collection? There's a decent amount of games made in MonoGame which uses C#, not sure how it is for Unity since IIRC it uses C# for game logic but C++ under the hood. I know that there's LWJGL for making games in Java, but the only notable game using that is Minecraft and even that has a Windows version which according to some stuff I read runs better than the original Java one.
I'm making a 3d vidyagem in Java as we speak
I wouldn't say C# is better for gameDev, if you want to make a highly efficient game, you want C/C++. It's fine though, if you know what the limit is, if you are shooting for something like Minecraft or making turnbased games then Jav/C# is fine.
I haven't used Unity but I heard it uses C#, my guess is though that they use C/C++ for all things that are "under the hood", so that the game designer just uses C# to make some calculations and script out behaviours and such.
What I heard is that Minecraft was rewritten by Microsoft in C/C++ after they bought it, and of course it would run better (C/C++ is faster, and Microsoft has access to top tier programmers).
Java was a go-to programming language for enterprise software. It dominated everything 10 years ago. Because of that, lots of garbage software was made with it. All retarded HRM systems and other crap like that. That's also why hindu had to pick it up - meaning more shitty software.
Javascript is other topic. It's mostly for writing web apps. Or web-based apps. People who despite JS do not despise JS itself but writing web apps. It's mostly despised by low-level (C/C++) developers who think JS does not deserve money. Since everyone needs web apps, JS devs are paid a lot.
Are you dumb? Both start with "Java", that's why complete beginners confuse them!
Not saying C# is necessarily better either, it's just interesting that most people always bring up that C/C++ is better for game dev when most people asking these questions in the first place won't make games that computationally expensive that requires a lot of optimization and efficiency.
All Supergiant Games used C# or fork of Monogame, Stardew Valley was in XNA and later ported to Monogame during development and numerous other titles which are definitely in the realm of indie developers use it so I don't see why Java couldn't do it.
Javascript isn't even being used in the industry, it's a language for browsers.
It works on every platform but only because it basically runs in its own simulation which makes it slow for games. Works okay-ish though but yeah.
Java and Javascript are completely unrelated and vastly different languages.
You have never developed software professionally and it shows.
>interesting that most people always bring up that C/C++ is better for game dev when most people asking these questions in the first place won't make games that computationally expensive that requires a lot of optimization and efficiency
I agree, that's why I'm making a game in Java as a solo indie dev. It's easier, and allows me to more quickly make a simple 3d-game than would be the case for C/C++, which is way more fiddly.
>What makes C# more suited for game dev than Java if they both rely on garbage collection?
Just read my post:
I wish. Made for browsers, used in the most retarded situations. Had to shoe-horn in node in a fucking embedded sensor system I worked on so the company could put front-end people on it to speed up development of some things. The memory footprint more than doubled (fortunately they hadn't been stingy RAM, image processing shit so we got a good deal of headroom).
>tfw too dumb to remember java after learning something
Hey uh, notice the slash I threw in there? I know they're not the same but they both get hated on. You failing to recognize that makes you a retard, faggot.
Thank you, I can see why that would be a problem. I heard that games running on Java tend to slow down *cough cough* Yandere Simulator *cough cough*
Another good answer.
Seems to me that your brain has been doing garbage collection
Ah fair enough.
>GameJolt wants to know your location
Is javascript really that bad? I programmed some simple DB-management using NodeJS but I never went into deep details with Javascript
I guess this baby made 1 billion bucks
Pic related is why you don't do it
Yeah, a massive success, but it runs like shit
Guess what was the first thing they made when Microsoft bought it? Rewrote the entire game in c++
Fuck off, moron. Go be dumb elsewhere.
>People who despise JS do not despise JS itself
plenty of people despise js as a language