News for hackers. Stuff that matters.
Re:Named Parameters in Java by jebblue on Friday August 10, 2012 @10:02AM (#4366179)
This is a good observation, people who seem to like named parameters strike me as people who might code in plain text editors a lot. Nothing wrong with that but an IDE makes things so much easier and faster.
Re:Named Parameters in Java by Aykroyd on Friday August 10, 2012 @10:37AM (#4366328)
I think there's a kernel of truth to that but it's not entirely right. I use Pycharm for my python coding and still like named parameters because it makes clear at a glance what each parameter is in the function call. Otherwise, I'd need to click through to each function definition or use the "show doc" command to figure it out. It's much better to be able to scan through the code and understand it without intervention from IDE features.
Re:Named Parameters in Java by jebblue on Friday August 10, 2012 @11:44PM (#4369358)
I guess I could see that but it might take me a few thousand lines for it to sink in. Makes sense stated the way you did. If you have to add a parameter though then you have to locate all of the locations and update them. With an object you just add the new field and its accessors if you want and then only the new section of code interested in that new field would be changed; but it's new so.