JAVA 8 PROS AND CONS

Not going to say much, the first link that is coming on google related to streams in JAVA is :

https://blog.jooq.org/2015/12/08/3-reasons-why-you-shouldnt-replace-your-for-loops-by-stream-foreach/

 

So, I started using streams and lambdas to get hands-on, and in between i stumbled on this article. So while this article gave me a very very simple example to start with to migrate java 7 code to java 8, it also gave me a view point, that changed my point of view about java 8 .

One word :

Functional Performance.

Ok , two words maybe.

But yes, as per statistics shown, streams take way more time than old school imperative programming will.

Moreover, and no one can deny that, stream code is less readable, or are minds are nourished by old java programming so much so that it is not ready to accept Java 8 stream programming .

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s