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

You cannot know the logic prior to reading and understanding the code unless you recognize the code immediately on sight. That is my point. If I see a nested ternary expression with beautiful indentation, I know I've scrolled too far when I'm looking for a certain method.

Method names are not logic. You really don't use distinctive method names or formatting to orient yourself and your colleagues? That sounds awful.




I misunderstood what you meant then. Obviously I use descriptive names and different styles of elements inherently have different shapes to them but I don't choose to add extra lines or change spacing just to make something look distinct. As I scroll through I see blocks, names, fors, lambdas, these form the shapes of different bits of code. The baseline formatting of each of these elements is uniform though




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

Search: