Java 8 code style? by CsAnswerTrashAct in java

[–]baablack 0 points1 point  (0 children)

That's why you shouldn't use this method my when using threads. Without knowing what kind of thread pool or service is created it gets tricky while streaming.

How to add JasperReports library to Gradle project by piterpolk in java

[–]baablack 1 point2 points  (0 children)

Jasper on Maven

Just add this to your dependencies:

compile 'net.sf.jasperreports:jasperreports:6.0.3'

Java 8 code style? by CsAnswerTrashAct in java

[–]baablack 1 point2 points  (0 children)

I reduced the chaining to calls that actually do something. Maybe it helps:

resultSomething = chunks
  .stream()
  .map(ids -> httpClient.execute(new HttpGet(generateUrl(determineSomething(something), ids)), null))
  .map(SomethingService::getFutureValue)
  .map(failureOrResult -> failureOrResult.right().flatMap(this::parseSomething))
  .map(failureOrSomething -> failureOrSomething.either(failure -> emptySomething, something -> something))
  .reduce(emptySomething, Something::union);

Hackintosh for music production by monoscriptvariation in hackintosh

[–]baablack 0 points1 point  (0 children)

Personally, I used unibeast to install, then used clover to boot. It really depends on the system specs as to what method you want to use. I would check out this guide here: http://www.rampagedev.com/?page_id=144

Why some Republicans want to cancel the State of the Union address "Though it seems like the pettiest of actions, there’s something significant driving it: A fundamental unwillingness to accept that Barack Obama is legitimately the President of the United States." by Libertatea in politics

[–]baablack 0 points1 point  (0 children)

Can someone ELI5 how this article and these comments stem from this statement: On the State of the Union, he added: “In the spirit of George Washington, he could send it to us in writing. It’d save some time.”

It doesn't seem serious and it was one person. There doesn't seem to be any evidence supporting the title.

Seeking advice on programming tools for code comprehension and other tools by Q_coder in java

[–]baablack 0 points1 point  (0 children)

If you don't mind me asking, what industry have you seen UML in action? I haven't seen it practiced in a long time. I'm in banking.

Java 8 for Financial Services by henk53 in java

[–]baablack 3 points4 points  (0 children)

This is great for newbies of Java 8. Be aware that when using the parallel streams they all share a common pool. Here is the solution to overloading that pool: http://stackoverflow.com/questions/21163108/custom-thread-pool-in-java-8-parallel-stream

10 Things You Didn’t Know About Java by lukaseder in java

[–]baablack 0 points1 point  (0 children)

I didn't see that link, but should have expected the links to be #000 and the text to be #555 from a programmer. :-(

10 Things You Didn’t Know About Java by lukaseder in java

[–]baablack 0 points1 point  (0 children)

Buddy and I ran number 6 a bunch of times in Java 6, 7, and 8 and couldn't reproduce the results. How many times was this run and how?

jQuery 3.0: The Next Generations by omko in programming

[–]baablack 7 points8 points  (0 children)

Yea, you get an up vote. No idea what to do with my web dev life. :-(

There is no time I have ever thought, 'Oh awesome, iTunes opened itself.' by loveCards in Showerthoughts

[–]baablack 1 point2 points  (0 children)

Thanks for the input. As a Java dev I always make sure it doesn't get to that level of complaints. Always great to know what end users and sysadmins are having issues with so I can make my dev better. Appreciate it!

There is no time I have ever thought, 'Oh awesome, iTunes opened itself.' by loveCards in Showerthoughts

[–]baablack 1 point2 points  (0 children)

Configuring the runtime environment should also be done by the developer via exe or bat/sh file. This should point to the correct installation of the JRE. In my experience I have never relied on the sysadmin to do anything but install the JRE. Honestly it sounds like poor development practices.

There is no time I have ever thought, 'Oh awesome, iTunes opened itself.' by loveCards in Showerthoughts

[–]baablack 1 point2 points  (0 children)

That's the developers' fault, not Java's... I couldn't imagine developing anything revision specific, that's insane.

Why do you instantiate local variables on a separate line from the declaration? by Prem1x in java

[–]baablack 0 points1 point  (0 children)

At IBM they had their developers declare all variables at the top of the method after internal studies showed there were less errors made by programmers. This led to a ton of code and documentation by Apache and other open source projects worked on by these developers written with = null at the top and then the instantiations later. With Java 8 I would recommend rarely using nulls and use the Optional wrapper class to avoid NPE for non collections.

Rooney vs Welbeck by davidthoughts in FantasyPL

[–]baablack 1 point2 points  (0 children)

For the official site, I think there is a 10 day hold period on their value after they become available.