top of page

Spaces vs Tabulators

Hello!

This is one of most important things about taking code in good/readable format. Most of people which are on start or basics level don't know how to restructure code into nice looking sheet. I want to share with you few good practices.

First always in your code use enters, single line single responsibility. It is really good practice which make your and your friends life easier.

Second use few spaces of editor which change tabulator into spaces. Most common in use are 4 spaces = 1 tabulator, sometimes i saw 2 or 3, but most of my IDE use 4 spaces against 1 tabulator. Spaces got always the same size, tabulators not. When your team use different IDE everything can looks different than on your pc. So code similarity is good.

Third think is about the code. Remember your code is not for you only! The most code lines which you made you will show friends, teachers or sell your employee. Even on table do spaces, because it make your code readable.

Forth and last! Be readable not spagetticode maker

Subscribe me!

Be sure that you read all.

  • Facebook Clean
  • Black Twitter Icon
  • Black Instagram Icon
  • Black YouTube Icon
Recent Posts
bottom of page