What is the proper way to format code?

前端 未结 22 2200
没有蜡笔的小新
没有蜡笔的小新 2021-02-18 18:33

When I write code, I try to group lines of similar code together, then leave a blank line and write another block.

I believe this contributes to the neatness and readabi

22条回答
  •  抹茶落季
    2021-02-18 19:20

    It sounds like I space lines of code similar to you.

    But this is an irrelevant, personal preference and everybody is going to have thier own 'right way' to do it. The most important thing, IMHO, is to adapt the style of the environment you are going into.

    Also, you will find code like this in the 'real world' ... but it sounds like you have higher aspirations. ;-)

    EDIT: ... not higher aspirations than the 'real world', but higher than the mediocre crap common in the 'real world'. ... if you do happen to have higher aspirations than the 'real world' however, you might want to see a professional. ;-)

提交回复
热议问题