- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have some problems about my quarter projects. my teacher tell me some coding styles about FPGA,such as using the Tab key to indent the codes in order to make the codes trim . is it right ? I used to use the blank key .Do there have some formulas about coding styles ?Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
always ,may be use Tab key
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there...
The use of Tab key to indent a line of code is one of many way of coding style. The purpose of coding style is to make the code looks cute, so it is easy to read, easy to read means easy to understand, easy to understand means easy to debug if there is an error occured. Another good coding style is adding comment inside your code, so in case if you forget your own code flow, you can easily remember it by reading the comment... You can found your own coding style,... Hope it can help you....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your reply !
but i heard something about the coding style that the code you write as you like may affect the whole project sometimes ,is there anything right ? I really wants to know something about this that can make my codes more formula .Thank you !- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmmm,....
I think yes... code without style can effect to the whole project. For simple project, the effect is almost none, but for large project, good coding style will help you... We, human has limitation remembering code flow, by using good coding style we can easily read or remembering the code, so we can easily organize it. If you work as a team in your project, good coding style will be big issue. Say that you work as a team in a project, you and your member have different coding style, you code with your own style, and so they, because the coding style is different each member has difficulity read another member code... so the the project will be messed... Hmm,.. maybe you should try coding first... try make a code with and without coding style, and then compare it... you will find that coding style is important... Hope it can help you...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page