- 445
- Posts
- 15
- Years
- Seen yesterday
Well, decided to continue working on my blog software again. Added password hashing and avatar support, so it's a step forward.
Spoiler:
Add me to the list. I'm Danny and I'm pretty good at Java and C#. FBI is top bae.
They are completely different. JavaScript is a Scripting Language used primarily for web development whereas Java is more of a general purpose language, aimed for software projects, that claims to be crossplatform.I am interested in learning and am currently studying coding. Java and Javascript are separate things, correct?
while ( (name[c++] = ch = fgetc(load)) != '~');
Oh dear. I guess it's a different way to teach you to embrace good coding habits...?I'm invoking the "if I have to look at it everybody else has to look at it" rule:
Code:while ( (name[c++] = ch = fgetc(load)) != '~');
That's right, no body, all the instructions are in the condition statement.
As part of an assignment we have to refactor (in groups of 6 - 7) a piece of open-source software that works but is badly written/designed (picked out and assigned to us by the prof/TAs). I'm 97 lines into my 230 line section of code and this is the most baffling thing I've seen so far though somehow not by much. (other gems include breaks everywhere, variables with names that tell you nothing and are declared randomly as needed except for where they were declared as global variables in god knows which file, hard-coded values that should have been defined as constants so I'm not spending 10 minutes wondering why a counter variable has inexplicably been started at 8, an 'else' statement that was 40 lines long and badly indented, and exactly zero comments)
In my 28 years I have never had even the slightest desire to drink but I'm pretty sure this code is going to change that.
Oh dear. I guess it's a different way to teach you to embrace good coding habits...?
I'm learning through Java in one of my university classes now! Pretty interesting language, but too bad it's pretty much dead.
I'm learning through Java in one of my university classes now! Pretty interesting language, but too bad it's pretty much dead.
Personally speaking, I feel the only thing really keeping Java alive is Android. Java support in browsers is basically nonexistent now, and most applications don't really make use of it, they'd rather just target either exclusively Windows or OSX and use native libraries, unless they can do cross-platform without sacrificing quality or control. While I did learn it in school, it's really not the first language I'd go for, I'm hearing C# is one language that a lot of employers are looking for besides Python, C++, or Javascript, and as I once read, "C# is Java done right", and I'm inclined to agree having used both. Doing things in Java is a huge pain sometimes, but C# is just a memory-managed version of C++ with lots and lots of padding, compared to the likes of Java and the really absurd way some things are done, especially when it comes to syntax.Java is 100% far from dead. :)
Personally speaking, I feel the only thing really keeping Java alive is Android. Java support in browsers is basically nonexistent now, and most applications don't really make use of it, they'd rather just target either exclusively Windows or OSX and use native libraries, unless they can do cross-platform without sacrificing quality or control. While I did learn it in school, it's really not the first language I'd go for, I'm hearing C# is one language that a lot of employers are looking for besides Python, C++, or Javascript, and as I once read, "C# is Java done right", and I'm inclined to agree having used both. Doing things in Java is a huge pain sometimes, but C# is just a memory-managed version of C++ with lots and lots of padding, compared to the likes of Java and the really absurd way some things are done, especially when it comes to syntax.
They are completely different. JavaScript is a Scripting Language used primarily for web development whereas Java is more of a general purpose language, aimed for software projects, that claims to be crossplatform.
Is the developer important when considering the two?
They both apparently fell under the Netscape, Inc. banner at one point in all of their history. "Java" being in "JavaScript" has to mean something, after all.
I'd argue it doesn't matter moreso what they do. As I can tell Java has more usage but less capability due to how broad it is. JavaScript has diverged enough it's sort of its own entity that is heavily in use and on the rise meanwhile Java as has been stated before is mostly falling out of use (sometimes even for JavaScript because of web apps).
JavaScript, however, is a specified tool. Increasing the division of labor. It is used mainly to animate and code in interactions between the site and the user. Also, JavaScript is non-functional outside of an HTML web page. So, I could see if the need for more specialized software were on the rise, but why would Java fall out of favor if it has so much more versatility?
Also, JavaScript is non-functional outside of an HTML web page.
It's really not "falling out of favor" as far as I can tell.
Java vs JavaScript arguments aside (which is frankly apples to oranges), this is entirely false. The JavaScript runtime powers many services today that aren't directly linked with rendering a web page.
In the mid to late 2000s there was a surge of new stories calling for the demise of Java in the years to come. The doubt over whether or not Java can compete with the more recent programming languages, particularly Python, has persisted. I don't know too much about this yet, but from what I have seen Python is getting high praise and that should be worrisome at least.
Any actual examples? My research suggests otherwise.