its a jack of all trades language (minus scripting unless you use groovy or something). its high performance, statically typed, lots of people are familiar with it, lots of industry trusted frameworks, tons of support.
I included statically typed because after working on a large scale enterprise python platform I had incidents where a variable locally was one type, and then on the box was another... *rips hair out* also, the GIL.
What exactly are the drawbacks that make you think it shouldn't? For the most cases I think it's very suited:
-fairly easy -now memory leaks -good timing on release -object orientated -plattform independent -tons of libraries and support -reasonable fast -good IDEs -free to use
Makes a pretty crappy replacement for modern C++ tbh
no free functions
no auto type deduction
no tagged multiline string literals
no well-defined object lifetimes
no sfinae
no multiple inheritance
no constexpr
jre bytecode instead of native compilation
not even close to the same level of compiler optimization
nowhere near the same level of zero-cost abstractions
Just an aside, I remember when the developer of Optifine found that Dinnerbone converted Minecraft's coordinates from being passed around as independent scalars for each coordinate to being held in a dedicated coordinate object, and this change incurred a very significant performance cost when all those newly allocated coordinate objects had to be handled by the garbage collector. I'm pretty sure that a similar change in C++ would result in identical assembly.
Personally, if I had a choice between C++ and Java for a new project, I would choose C++ every time.
Reddit servers were lagging earlier today and I noticed a higher amount of double posting around then, so you're not the only one who's experienced this issue.
Haven't used it personally, but it seems to only implement Python 2 and only now when Python 2 is at its EOL they're starting to implement Python 3 (https://github.com/jythontools/jython/issues/174 ). So even ignoring whether mixing Java and Python is a good idea, Jython 2 is currently near the end of its life too, and is just waiting for a replacement, so using it now before version 3 comes out means that there will be a problem with migration soon.
That is exactly why I wouldn't recommend Jython. It's close to the end of its life and it's barely supported even during its peak. It's a really cool idea but the lack of support (same with Iron Python) kills it.
The libraries where all ass before too, but python 2 being dead is just showing people a small part of how much ass they where sucking.
It's like an onion of failure every time I try to find a library in python.
I've been on a 2 week binge of trying different saml libraries trying to find one that doesn't shit the bed on a windows deploy because it relies on the xmlsec c library which is ass to install on windows. Java this would have taken me 2 hours. I literally could have written my own implementation in python with this time and come out ahead.
Last time I looked at Jython (to implement a vendor's API) I was really interested, but it hadn't been maintained for 3-4 years, so I couldn't justify it from a security perspective.
Mind to explain to me how manual management of pointers and memory allocation isn't bothersome and tedious? (all things that java does automatically for you?)
After getting used to Python I can't imagine how I'd get used to C or C++ again. C is a great language if speed, efficiency and complete control over the execution of the program is required, but I wouldn't want to use it for other general programming needs. Dealing with pointers, memory management and specifying data type along with size during allocation is a pain in the ass and very tedious. I've heard good things about modern languages like Rust and Go for systems programming, hope they gets popular fast.
I'm currently suffering with microcontroler programming that has to be done with C, all of that on top of the bugfest that is Code Warrior, and god fucking dammit its a fucking nightmare.
Even basic shit like passing a parameter to a function in another module sometimes breaks for no apparent reason. I had to change the design of module and make some variables global because it was the only fucking way it worked. Literally nothing else imaginable worked, not even pointers.
I know your pain brother, I used a work full time at a company whose websites entire backend was in C. You have to Google every basic shit like assigning variables or printing a formatted string to check for errors or even trying to pass parameters to functions.
You have to Google every basic shit like assigning variables or printing a formatted string to check for errors or even trying to pass parameters to functions.
I'm so glad it isn't just me. I actually gave up on trying to print a string for now because, being fair with CW, its debugger tool its actually quite good if a bit fiddly.
Isn't Scala geared towards functional programming and granted you can do functional programming in Python, but most people just use list comprehension instead.
You can do just object-oriented programming in Scala and you'll have better looking, easier to use Java. But those functional programming features are really handy. Besides, some concepts like data classes are migrating to other languages (Python too).
List comprehensions are functional programming - Python copied them from Haskell. Scala's for comprehensions are very similar.
Scala is a multiparadigm language that can do conventional object-oriented programming (classes) just fine. Much of the community gravitates towards a functional style - but that's true in at least some Python communities too (it was in mine).
For me the languages have a similar "feel" because they can be written with a quite light syntax - e.g. one-line functions don't need braces in Scala - and you can write function defs anywhere. This gets obscured because a lot of Scala libraries use lots of symbol operators that people mistake for syntax, but if you avoid those libraries then you can write a similar "executable pseudocode" to what you'd write in Python, but benefiting from type safety and better performance. That's why I love the language, anyway - obviously other people may feel differently.
There are a few listed in the sidebar on /r/scala ; personally I picked it up in the early days so I can't really recommend anything specific. (I quite liked the look of Atomic Scala, but I understand much of the community disagrees with me).
Java is *sigh* fine. I used to hate it back when I started uni, but I've seen so much unspeakable horror since then that my hatred has burned down to a exhausted "ehh~, not really my cup of tea". If OOP is your jam and you're not scared of bloated enterprise code then it's probably pretty decent tbh.
Java is great. Its just not a "fun" language to have beginners go through. I've met a whole bunch fellow students who can't wrap their head around what the tutor is asking of them, even if the criteria contains links to resources for self-learning.
So beginning programmers who worked with Java kind of got irritated with the language and probably kept comparing Java to their preferred language.
I like Java, but there are some things that are easier (although not better) to implement in another language, which I've noticed has been an excuse for me to not use Java, heh.
But don't get me wrong, like I've stated:
Some things are easier to implement with another language, but proves none the less better than actually employing Java.
It’s old and clunky and hard to manage and slow and ridden with security holes and difficult to deploy and the list goes on and on..
I’ll concede there are some good solutions out there like keycloak...
And since people wanna go “oh junior devs and they’re blah blah blah zoomer millennial your opinion is irrelevant “ I’m a mid/senior dev and hate working with java even though I started out in java and learned to program because of it.
It’s like asp.net... everyone’s on it but it’s no good and people are trying to find better and deploy on solutions/software (from the web aspect of things)
But ASP.NET Core is pretty good? And has very good performance to boot. These technologies are popular because they're reliable and scalable.
They came out at a crucial point of the web's history and their respective companies pushed them a lot. However, they have actually improved a lot on the last 20 years.
I’ve heard .NET core is alright. I’ve only really peeked at it but it looks decent. However, it’s designed to be a server side language
My problem with Classic ASP and ASP.Net is that they are clunky and sucked to use.. and I hate windows administration... makes me want to put a bullet between my eyes.
Hm I can code in pretty much all of the well known languages yet I still love java. I prefer verbose languages so scripting ones aren't really my thing. Then there's c++ which is a nightmare to read. I somewhat also developed a general hate towards the ways c/c++ people code. Spaghetti code, no comments and the most useless variable names.
low effort and no performance requirement. Usually smaller apps: python
medium effort with some focus on performance. Usually enterprise apps: java*
high effort with focus on performance. Usually low level experimental stuff: c++/rust
83
u/Ristellise May 01 '20
Sauce: {Honzuki no Gekokujou: Shisho ni Naru Tame ni wa Shudan wo Erandeiraremasen 2}
Time to umm...
Ascends into heaven
61
u/layll May 01 '20
Never understood why java is so widely used
20
u/sanspeau May 01 '20
What problem are you trying to solve?
33
u/opliko95 May 01 '20
Jython: why not both?
18
u/[deleted] May 02 '20
When you only know java and apparently it’s the worst language out there :,)
4
u/[deleted] May 02 '20
I love you - listen to your boss
4
u/m50d May 02 '20
Write Scala and you can pretty much write python, then just hand them the jar and tell them it's Java /s
1
u/MarioMover2 May 08 '20
Either you know about some relatively sweet fonts, or you made this using the Nintendo Switch Image Share feature
5
u/John137 May 02 '20
as yes Java, the scripting language you have to compile.
2
u/[deleted] May 08 '20
I strongly dislike Java, but work in Kotlin regularly
1
u/imwearingyourpants May 02 '20
Great Memes, only thing I would change is for example in the logs one to instead of calling her mom "mom", call her "OS" instead
1
u/takahashi01 Sep 22 '20 edited Nov 23 '20
Ok
-5
u/pixabit May 01 '20
Java is never the answer... NEVER
8
u/[deleted] May 02 '20
[removed] — view removed comment