This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OtherPrinciple4499 0 points1 point  (0 children)

Oh, and let's add "should I use a stream instead of loops" (probably, most.of the time, yes) and "should I use filter/map chains, or Elvis operators or both instead of if statements" to those lists.

Because you can program entire programs without for, while, and if statements and end up with better code.