I'm going to post here when I can't figure out certain aspects of Java. I don't know how many of you know the language well, but help will be appreciated as I go through this bootcamp.
Also an excuse for me to post a countdown until Doomsday.
If you code, what language do you prefer?
19
Python
13
C++
10
Java
5
Other
4
Ruby
4
Combo (the right answer)
3
C# (lol)
2
Javascript
deletedalmost 9 years
For many areas performance isn't that relevant either, it's often cheaper just to toss more hardware at a problem then investing in programming hours to either rewrite in something with a better optimizing compiler or to do a bunch of micro optimizations.
Togepi they dont want you to code They dont want you to get them algorethms They dont want you to get that Billion So what are we going to do, We are going to win more.
Strictly speaking, performance is not about the language, but the compiler and platform. Java, however, is aimed to be executed on JVM so that's what I meant by saying Java is not (necessarily) slow.
deletedalmost 9 years
Oh, my bad then Arcbell.
Also schutz no language is inherently slow but Java isn't programmed around the idea of modifying memory at a low level which is where a lot of optimization comes in. Yes Java can be as fast as other languages like C++ due to the compiler which can optimize itself for many common architectures. However, at the end of the day what matters is picking the right language for what you're attempting to do.
i think u got confused by my statement b4..... to be fair though the only real reason java makes me feel sad is i was forced to take it back in hs and did not enjoy it. i didn't really know much of anything back then so if i gave it another go i'd probably be fine with it just an old first impression
i wasnt advocating java, i was saying it makes me feel sad, and i wasnt saying its optimized, i really don't know much about it at all, or care about optimization. just stating this for the record, i guess.
deletedalmost 9 years
I'm confused as to where you got the notion that I'm hating on Java
If you were to write something simple like a calculator in C and compare it to the same thing written in Java you'd almost definitely see that the C version would run more efficiently and on less memory.
Java is not that slow. Currently, it complies to machine code during execution so it's nearly as good as compiled languages.
If you're referring to all the in-fighting on the last page or so of this topic it's cuz coding is highly opinionated and so are the people who do it.
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
b-but my libraries!
I mean...if you're working in Java that's cool and I'm not saying there's anything wrong with it - every language serves a different purpose. In Java handling memory is a lot more difficult as you get 'closer' to English and having more stuff automatically handled for you. If you were to write something simple like a calculator in C and compare it to the same thing written in Java you'd almost definitely see that the C version would run more efficiently and on less memory, but it would take a lot more time to actually program and in today's day and age memory is cheap so there's no point in doing it that way which is part of the beauty in Java and other high level languages. I'd link some other benchmarks to prove my point and there was a really cool article posted by NASA some time ago about this stuff too but I'm on mobile ATM
I was never a part of the "elite programmers program in binary" club, but every time programming is mentioned, ppl hate on java :(
I think the beauty of java, aside from being platform independent, is its user-friendly syntax style that allows many programmers to work together efficiently.
This is the most important part of it.
deletedalmost 9 years
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
b-but my libraries!
I mean...if you're working in Java that's cool and I'm not saying there's anything wrong with it - every language serves a different purpose. In Java handling memory is a lot more difficult as you get 'closer' to English and having more stuff automatically handled for you. If you were to write something simple like a calculator in C and compare it to the same thing written in Java you'd almost definitely see that the C version would run more efficiently and on less memory, but it would take a lot more time to actually program and in today's day and age memory is cheap so there's no point in doing it that way which is part of the beauty in Java and other high level languages. I'd link some other benchmarks to prove my point and there was a really cool article posted by NASA some time ago about this stuff too but I'm on mobile ATM
I was never a part of the "elite programmers program in binary" club, but every time programming is mentioned, ppl hate on java :(
I think the beauty of java, aside from being platform independent, is its user-friendly syntax style that allows many programmers to work together efficiently.
deletedalmost 9 years
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
b-but my libraries!
I mean...if you're working in Java that's cool and I'm not saying there's anything wrong with it - every language serves a different purpose. In Java handling memory is a lot more difficult as you get 'closer' to English and having more stuff automatically handled for you. If you were to write something simple like a calculator in C and compare it to the same thing written in Java you'd almost definitely see that the C version would run more efficiently and on less memory, but it would take a lot more time to actually program and in today's day and age memory is cheap so there's no point in doing it that way which is part of the beauty in Java and other high level languages. I'd link some other benchmarks to prove my point and there was a really cool article posted by NASA some time ago about this stuff too but I'm on mobile ATM
deletedalmost 9 years
Why is the coding community riddled with condescension?
If you're referring to all the in-fighting on the last page or so of this topic it's cuz coding is highly opinionated and so are the people who do it.
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
I assumed the statement about condescension had more to do with the tension betwixt Arcbell/Cub/The
Just a tip, Togepi, try learning to write clean, easily readable and structured code from the get-go. A lot of people don't, even though it can help find bugs way faster and makes it easier to maintain.
Be consistent with naming conventions; camelCase is most commonly used in Java, but use whatever you're comfortable with and stick to it. Feel free to space out chunks of code. Don't repeat things, try to reuse code. Copying large portions of code and changing one detail in it is an example of bad practice.
lol Got it covered because my instructor that's been programming for 20 years is teaching us that way. :)))))
Just a tip, Togepi, try learning to write clean, easily readable and structured code from the get-go. A lot of people don't, even though it can help find bugs way faster and makes it easier to maintain.
Be consistent with naming conventions; camelCase is most commonly used in Java, but use whatever you're comfortable with and stick to it.
Feel free to space out chunks of code, but don't leave uneven indentation.
Don't repeat things, try to reuse code. Copying large portions of code and changing one detail in it is an example of bad practice.
deletedalmost 9 years
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
b-but my libraries!
deletedalmost 9 years
I'm not being condescending, Java IS higher level and less efficient than most other languages.....
I should say that there is nothing wrong with coding for yourself, but it is common that the type of attitude and behavior associated with that doesn't fly in a communal coding setting.
Because they are full of programmers that code fully for themselves and not for the community at large. It's funny how much of that I've run into already.
deletedalmost 9 years
Why is the coding community riddled with condescension?
Ah look, classic Cub. Egotistical in all of her viewpoints (as if the stakoverflow suggestion extended beyond beginners like Togepi) and slowly manipulating her argument so that it is still unarguably "correct" even though it was irrelevant in the first place.
deletedalmost 9 years
i was ranting about optimization being cub's thing, and it not really being that important for people learning
and what do you even mean 'fronting java'
I meant you shouldn't be advocating Java and saying it's very optimized
I think Arcbell was ranting about a programmer taking optimization and putting that before readability and other basic functions of being a good programmer.