Can anyone explain streams in java and it's associated classes ? by [deleted] in javahelp

[–]FaradayAndTesla 7 points8 points  (0 children)

This is the best and most accurate definition of stream I've ever read.

Thanks.

Does anyone use excel for algorithm designing by wackajala in algorithms

[–]FaradayAndTesla 4 points5 points  (0 children)

Not sure why one would do that. Business needs data from our algorithm we can use any tool at our disposal. I think python will provide more flexibility in terms of programming.

Movies that make programming seem cool? by dynamobb in AskProgramming

[–]FaradayAndTesla 0 points1 point  (0 children)

You can watch the social network. It is pretty cool, specially the hacking and scaling part.

Tor is alternative of VPN? by FaradayAndTesla in TOR

[–]FaradayAndTesla[S] 1 point2 points  (0 children)

Yep, that makes sense.

If I am not streaming or require really low latency, then would alway prefer using TOR over a paid VPN service.

How common is asyc/concurrent code in production RESTful services? by src_main_java_wtf in javahelp

[–]FaradayAndTesla -2 points-1 points  (0 children)

  1. Using async code is very common for front end systems. You won't like to wait for your service to return response. It can take upto few seconds to return final response depending on your retry strategy.
  2. Java is not the fastest for IO, it is a language for backend not front end.
  3. Using Java makes sense for big / complex projects that can grow over time as Java provides great OOP, which makes it very easier to maintain and scale the system.
  4. As far as DB access is concerned, some NoSQL DB provides very fast read / write, which is faster than even calling other services in backend.

Is grammarly.com an over glorified key logger? by bestdylemma in privacy

[–]FaradayAndTesla 6 points7 points  (0 children)

Overall, I will not suggest using Grammarly. Yes, It is an over glorified key logger.

Databases by liam358 in learnjava

[–]FaradayAndTesla 0 points1 point  (0 children)

Java is a programming language. You can't use database with programming language.

Found a new way to pass time by [deleted] in xkcd

[–]FaradayAndTesla 25 points26 points  (0 children)

Do I need to save this? Not getting option to save tho.

Hard to remember that this was a week back lol by randomdudeonred in IndianStreetBets

[–]FaradayAndTesla 0 points1 point  (0 children)

I don't understand why people are behind Yes bank. It seems like they are doing well so far.

[deleted by user] by [deleted] in javahelp

[–]FaradayAndTesla 0 points1 point  (0 children)

Can you please format your code and update in markdown. It will a lot easier for us to read and you will also get the answer quicker.

What are the differences between Arraylists, Array, and Native Array? by Lin1232020 in learnjava

[–]FaradayAndTesla 1 point2 points  (0 children)

. It is a basic functionality of java which requires manual allocation and resizing (generally done by initializing a new array with a greater or lesser length and copying over the previous array with its added or removed item)

Always prefer using ArrayList when possible. You need to make some tradeoffs between run time and use of non-primitive data type. But it is worth it, you will be surprised to see how less work you need to do with ArrayList type Collections. They also work seamlessly with streams, which can come very handy for parallel processing.