Hacker News new | past | comments | ask | show | jobs | submit login

An IDE can help you write the code, but does not make it easier to read the code.





Can you elaborate? I'm not sure what you mean, but IDEs definitely make reading code easier. IDE does code formatting, highlighting, argument hints, jumping to methods, declarations, and various hover effects on variables, methods, and classes. Some IDEs offer call graphs and other more advanced tools. Not to mention static analysis that works out of the box in PHPStorm (and I'm sure it can be set up in VSCode).

I mean that no matter what you do, the arguments will always be shown in an inconsistent order and you’ll have to mentally swap them around. You probably could configure your editor to visually swap them, but that sounds like a really bad idea.

If the argument order is a problem for you, you can use named arguments.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: