News for hackers. Stuff that matters.
Re:Ask HN: Which industries, domains, or programming languag... by bb88 on Monday June 18, 2018 @05:02PM (#17341676)
> but traditional uses for Java are hardly touched.

What are the traditional uses for Java that are hardly touched?

Re:Ask HN: Which industries, domains, or programming languag... by BjoernKW on Monday June 18, 2018 @05:46PM (#17341922)
Enterprise CRUD applications is one area where Java probably is still the most widely used language. Particularly with relatively new frameworks such as Spring Boot I don't see this changing any time soon.
Re:Ask HN: Which industries, domains, or programming languag... by bb88 on Monday June 18, 2018 @07:32PM (#17342507)
Yeah... I think that's a fair statement.

I think the entire business CRUD segment is due for a massive disruption, though. I'm beginning to think one language to rule the front end and the back end is starting to make sense.

To that end, JS killed Java applets, and should have killed Python/Ruby on the backend by now with Node.js. But it still hasn't.

Re:Ask HN: Which industries, domains, or programming languag... by bloomthrowaway on Tuesday June 19, 2018 @07:35PM (#17351184)
I don't like Javascript at all, even with all the linters I could find its too easy to make mistakes. Too many old broken language constructs they can't fix. Java's strongest sell has always been an extremely reliable platform, strong typing, and solid standard libraries, things I also can't say about JS.

Typescript on the other hand is glorious. My favorite language now. Fixes all the issues with using JS for large applications besides flaky libraries. I still don't think its ready for server-side development, not until they add threads (WTF is taking so long). When you're running on a 32 core system node doesn't make any sense.

Yes, I know there's various workarounds like launching multiple copies of your app, but that still limits parallelism on the app level and its pretty lame.

Re:Ask HN: Which industries, domains, or programming languag... by bb88 on Wednesday June 20, 2018 @10:20PM (#17361571)
> I still don't think its ready for server-side development, not until they add threads (WTF is taking so long).

Having debugged deadlocking threaded code in production, frankly, I prefer async/await style of code, which btw is in Typescript, Java, Python, etc.

For parallelism, there's concepts like python's multiprocessing (which I think does it right) because it's easier to think about parallelism when the OS doesn't constantly pull the rug out from under your state.

Re:Ask HN: Which industries, domains, or programming languag... by bloomthrowaway on Monday June 25, 2018 @09:50AM (#17392379)
I don't mind threads when they're done right. Every Java app server is multi-threaded and I don't remember the last time I ran into deadlocks. It's best for performance and readability to have both threads and async support. This is achievable with some work in Java by using Comsat/Quasar
Re:Ask HN: Which industries, domains, or programming languag... by tynpeddler on Monday June 18, 2018 @05:24PM (#17341814)
Web servers mainly. However, Go is starting to make inroads in that space.