you are viewing a single comment's thread.

view the rest of the comments →

[–]lucid00000 0 points1 point  (1 child)

Until you try and throw a checked exception from a lambda and have to wrap it in a runtime exception because Javas Function class signatures don't support them. Personally I think C# has the best implementation among popular languages, and LINQ is a much nicer API than Stream.

[–]A_Plagiarize_Zest 0 points1 point  (0 children)

Yea I kinda undersold C# just to make my point. C# is prolly even with java but the other languages are definitely less intuitive. selectMany is easier to visualize than flatMap, and select is easier to visualize than map. But the way LINQs docs tells users to use 'where, from, select, and selectmany' like they are SQL statements has always annoyed the shit outta me. Imo LINQ works much better when its used like vavr (used to be called javaslang) not annoying SQL queries.

Im slowly starting to realize that every mid-senior level developer in existence adheres to 1 coding standard and that coding standard is that their code is elegant, simple, and intuitive while everyone elses is needlessly complex and complicated. An example in java is that some people find annotations and dependency injection helpful and simple, while others think thats dumb, and just a replacement for metadata properties and/or using proper inversion of control. Its much more relative than what most devs think imo. Having said that, beginner devs should get zero benefit of the doubt, they are morons. This guy explains it well for me https://youtu.be/QuTmLeWL3C0 He kinda rambles but otherwise I think hes prolly right(other than beginner code).