The Big Programming Thread - Page 743
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Nesserev
Belgium2760 Posts
| ||
Manit0u
Poland17186 Posts
Also, why would anyone use Java when you can use Scala which is like 10x better and gives you access to all of Java? | ||
RoomOfMush
1296 Posts
On July 20 2016 15:29 Manit0u wrote: I've learned something funny today: Java and JavaScript, the two languages that have probably the most job offerings in the world are the two languages I hate working with the most... No matter how hard I try to convince myself to just let go and dive into them I can't help but be repelled by them ![]() I must say I find it quite odd since I don't really mind working with any other language I know (and that includes PHP) but J and JS somehow elicit a strongly aversive reaction in me. I just hope I'm not alone in this one ![]() I like java. Its not perfect, there are plenty of things I would love to see changed (and I know its never going to happen) but overall its a solid language with many advantages. I much prefer it over C#, C++ and C. I like Javas simplicity and openess. On July 20 2016 15:36 TheEmulator wrote: Never worked with Java but I hate JS so much. From what I've seen I'd hate Java too ![]() They have absolutely nothing in common. JS is just called that to cash in on the success of java but its a completely different language. | ||
Djagulingu
Germany3605 Posts
On July 20 2016 17:57 Manit0u wrote: Browser JS can be fine if you're just doing some small work with it. As soon as you start using more than 200 lines of it then it becomes a shitfest. Also, why would anyone use Java when you can use Scala which is like 10x better and gives you access to all of Java? Scala is a wonderful little thing and I should learn it asap. EDIT: 10x better? Even preproduction Kotlin is 10x better, Scala is much better than 10x. | ||
![]()
tofucake
Hyrule18968 Posts
But I enjoy using it wayyyyy more than Java. Java is dumb like wordpress | ||
![]()
shz
Germany2686 Posts
| ||
-Zoda-
France3578 Posts
On July 18 2016 10:09 ShoCkeyy wrote: Ehh, the problem with Mithril, it still seems to be filled with a bit more issues, but you can definitely look into it Manit0u. Oh yeah ? Can you elaborate ? In a similar sort of lightweight framework, Mercury seems interesting as well, but its documentation seems to be lacking compared to Mithril. Once I have time and a project idea I'll have to try one of these. On the topic of Java huh, I can 't say I hate it but it's not very enjoyable imo. Way too verbose and rigid imo. | ||
RoomOfMush
1296 Posts
On July 20 2016 23:21 -Zoda- wrote: On the topic of Java huh, I can 't say I hate it but it's not very enjoyable imo. Way too verbose and rigid imo. Then better dont try C#. If you think java is verbose you are not going to have a good time with C# at all. | ||
Fwmeh
1286 Posts
On July 21 2016 00:09 RoomOfMush wrote: Then better dont try C#. If you think java is verbose you are not going to have a good time with C# at all. Not my experience at all. Do you have any concrete examples? | ||
![]()
TheEmulator
28078 Posts
On July 20 2016 20:36 RoomOfMush wrote: I like java. Its not perfect, there are plenty of things I would love to see changed (and I know its never going to happen) but overall its a solid language with many advantages. I much prefer it over C#, C++ and C. I like Javas simplicity and openess. They have absolutely nothing in common. JS is just called that to cash in on the success of java but its a completely different language. hmm, what part of my post implied that I think they have something in common? I | ||
Nyxisto
Germany6287 Posts
| ||
RoomOfMush
1296 Posts
On July 21 2016 01:10 Fwmeh wrote: Not my experience at all. Do you have any concrete examples? I am talking about all the additional syntax. A for-each loop in java: for (Object obj : collection) {/*doStuff*/} The same in C# foreach (Object obj in collection) {/*doStuff*/} Its a minor thing, but why is it there in the first place? Or the fact you need to write "override" in front of a method that overrides another. I can see how this might help some people understand the code better, but we've got IDE's for that without having to write anything. Besides, you can do the same thing in java with the optional @Overrides annotation if you want to have compile-time warnings. Its many similar little things like that. C# just seems to have way more syntax keywords which you need to use at certain points for no obvious reason. On July 21 2016 03:05 TheEmulator wrote: hmm, what part of my post implied that I think they have something in common? I It seemed to me that way but I guess I misunderstood you. On July 21 2016 03:58 Nyxisto wrote: C# is great as a language imo but I'm not enjoying the windows eco system so It'd be great if there's full Linux support at some point, it's gotten a lot better though. As someone above pointed out Java is just horribly verbose. I had to do a lot of Java in college and had to either use Apache Commons or just copy the same things over and over again because I always forgot how the syntax for a BufferedReader works. It takes a bazillion lines of code to read in a textfile : ( Its actually quite simple: try { | ||
Prillan
Sweden350 Posts
On July 21 2016 04:29 RoomOfMush wrote: I am talking about all the additional syntax. A for-each loop in java: for (Object obj : collection) {/*doStuff*/} The same in C# foreach (Object obj in collection) {/*doStuff*/} Its a minor thing, but why is it there in the first place? It really is a minor thing. On July 21 2016 04:29 RoomOfMush wrote: Or the fact you need to write "override" in front of a method that overrides another. I can see how this might help some people understand the code better, but we've got IDE's for that without having to write anything. Besides, you can do the same thing in java with the optional @Overrides annotation if you want to have compile-time warnings. It's not just there to tell the dev that the function is overridden. Without it the method just hides the old one, which is different from overriding it. (This was true last time I wrote C#, which was version 3.0 I believe, they had just introduced lambda expressions.) | ||
phar
United States1080 Posts
Proper java should have lint set up to require @Overrides If you're writing any significant amount of Java you should also be using good libraries, e.g. Guava. Save yourself a lot of headache. | ||
Manit0u
Poland17186 Posts
On July 21 2016 04:29 RoomOfMush wrote: I am talking about all the additional syntax. A for-each loop in java: for (Object obj : collection) {/*doStuff*/} The same in C# foreach (Object obj in collection) {/*doStuff*/} Its a minor thing, but why is it there in the first place? The same in Scala:
Syntax is syntax. Java's verbosity comes not from syntax but from incrediblyLongAndUnnecessarilySoClassAndMethodNames. Also, XML (yuck!). | ||
Deleted User 101379
4849 Posts
On July 21 2016 16:16 Manit0u wrote: The same in Scala:
Syntax is syntax. Java's verbosity comes not from syntax but from incrediblyLongAndUnnecessarilySoClassAndMethodNames. Also, XML (yuck!). The same in actually modern C# list.ForEach(item => item.DoStuff()); | ||
Djagulingu
Germany3605 Posts
On July 21 2016 16:50 Morfildur wrote: The same in actually modern C# list.ForEach(item => item.DoStuff()); The same in actually modern Java: list.forEach(item -> item.doStuff()); | ||
Manit0u
Poland17186 Posts
![]() | ||
Shield
Bulgaria4824 Posts
On July 21 2016 16:16 Manit0u wrote: The same in Scala:
Syntax is syntax. Java's verbosity comes not from syntax but from incrediblyLongAndUnnecessarilySoClassAndMethodNames. Also, XML (yuck!). Verbosity is good as long as it's not abused. You should really read Clean Code before you go further with this discussion. | ||
Doodsmack
United States7224 Posts
| ||
| ||