[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: javastream.jpg (17 KB, 758x234)
17 KB
17 KB JPG
IntelliJ Idea + Java seems to be the way.
A powerful IDE fine-tuned to work perfectly with a specific language.
The Java conversations on the IRC are also good and high level.
Is this where the road ends?
>>
uhhhh i thought FP was heckin evil and not idiomatic enterprise approved?
>>
>>101437354
One of the first things I try when learning a new language now, is if it has FP features
>>
Clojure
>>
>>101437236
java just gets a bad rap because of its popularity, i.e. there are too many "undesirables" for the /pol/-brained masses here to give it a fair shake
the JVM is a great platform with a ton of support, look at kotlin (also created by jetbrains) for a comfy more sugar-y version of java
fuck oracle though
>inb4 SAAARS
>>
>>101437354
It's all bullshit job security from veteran programmers. Nobody really picks the right language and paradigm for the job
>>
java? more like C# for indians
>>
>>101437516
>fuck oracle though
Read somewhere that they did a pretty good job maintaining Java
>>
>>101437614
just hate them for their shitty business practices: price-gouging, license rug-pulling, anti-competitive lawsuits, undisclosed surveillance, etc
they did OK maintaining java but the release cycle was insane and obviously driven by marketing. Sun was a better steward overall
>>
>>101437691
>undisclosed surveillance
What kind of thing did they do?
>>
>>101437784
https://www.iccl.ie/wp-content/uploads/2022/08/File-Stamped-2022-08-19-Oracle-Complaint.pdf
tldr amassed + resold personal data on 5 billion people. really personal shit like home addresses and purchase histories
>>
>>101437516
>look at kotlin (also created by jetbrains) for a comfy more sugar-y version of java
Seems like a bad idea. Better to invest my time learning the standard language, which will catch up to some kotlin niceties anyway. Something about the normal java seems more sturdy to me.
>>
File: oracle.jpg (192 KB, 824x1051)
192 KB
192 KB JPG
>>101437827
That's kinda messed up
>>
>>101437354
>>101437470
I really don't understand what's the big deal with FP, from both sides. One treats it like some esoteric confusing mess, the other treats it like a fucking divine way of programming with the blessing of God. What the fuck is everyone on about? The Java Stream API is just decent. Makes code a bit nicer to read sometimes. I also don't really miss it that much when using something like Go. I don't mind either way. Why is there a decade-long shitflinging contest over such a simple set of concepts?
>>
>>101438011
How do you emulate the fp 'filter' on go? I just think they're useful things to have, if a language doesn't have it then they probably don't have other useful stuff. Another thing I test is how advanced the string manipulation in the language is, if it supports interpolation. Java has STR."My name is \{name}" which is ok enough.
>>
>>101438011
>Why is there a decade-long shitflinging contest over such a simple set of concepts?
wait'll you hear about tabs vs spaces
>>
>>101438098
>How do you emulate the fp 'filter' on go?
https://github.com/robpike/filter from the language co-creator Rob Pike himself
if you can do it that easily on a 10 year old version of the most barebones modern language, then there's really no reason to give these features so much value. If a language comes with them fine, if not you can always do it yourself or have chatgpt do it in 3 seconds
>>
>>101438395
>writes FP packages
>tells everyone not to use it
based
>>
>Instead, I just use "for" loops.
>You shouldn't use it either.
This is just cope. Filter is a basic thing to expect in a modern language, it's not even hard to use or understand. I agree that for loops are more powerful but a lot of the time all you need are simple filters
>>
What did openai mean by not providing a java library? https://platform.openai.com/docs/libraries/python-library
>>
>>101438011
there was this 'big' haskell thing in the late 00s early 10s and hate for oop and for the next decade all languages tried to walk away from oop and add fp features because of it
>>
>>101438510
nobody uses the library anyway just use the api endpoints
>>
I'm thinking kotlin is not going to last very long
https://old.reddit.com/r/java/comments/ndwz92/can_i_get_some_reasons_to_use_java_instead_of/gyd5yi5/
>>
>>101438788
>>101437837
no doubt overall as a job-security language java is better
but specifically for android, and as a quick prototyping and scripting language on JVM, kotlin is nice
it's still growing and backed by google over its own (dart) and by meta so seems like it's getting a decent amount of traction
java will continue to rule enterprise, but kotlin is due to take over as the primary language for android native development
if android dies though, kotlin goes with it
>>
>>101438788
this comment is strange, the points it's making are not even true and its narrative is frankly weird
>>101438989

it's true that kotlin dies with jetbrain and android, though, but like.. that's not really an issue, languages are like that all the time. Rust would have died w/o mozilla, go would die w/o google, etc...
kotlin as a multiplatform language is not just java but better. the jetbrain backing is not just hot air either; the multiplatform side is super good, compose is great, the actual/expect mechanic is very useful.
>>
Lets talk about JavaFX
https://www.youtube.com/watch?v=QPDG_c0iJ9E
>>
java compiles quick thats the only thing that matters to me. Then again I only make small things not big ones. Fuck gradle and co. though I will never understand that shit.
>>
>>101437354
surprise surprise retard, fluent interfaces were just monadic interfaces all along. the whole distinction between objects and functions is just whether an 'object' captures its context variables in a closure or in a class. it's all the same shit.
>>
Already hitting bugs https://bugs.openjdk.org/browse/JDK-8332352?attachmentSortBy=fileName
>>
>>101437236
good morning sirs, I prefer eclipse



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.