Discussions

SmileBASIC Community

JoshuaJoshinWithYa

10/09/2016 2:37 PM ·Spoilers

Open Closed

Does it really matter how messy code is?

When I'm writing code, I tend to write a very messy chunk and then write a note telling me what that chunk does and how it does it. Is it more beneficial to write less code? Like, could it save space and/or processing power?

Advertisement

Comment

This post has no comments.

  • Yes it does, since more code = more used memory and the less memory used means more game features and such

    Yeahs1
    Played
  • You can fix it later (not really)

    Yeahs1
    Played
  • The primary focus should be to get your code to work at all. After you know it works, then you can optimize it.

    Yeahs1
    Played
  • Being efficient isn't really important/noticeable unless you're working on a massive complex project or iterating tons of data. In terms of processing. (aka: don't fret it)

    Yeahs0
    Played
  • I don't think it really matters. Just get it to work, then, after you finish it, go through and make it more simple, like planning out what your limit is.

    Yeahs0
    Played
  • When writing a program, decide if you want others to see the code. If you want them to see and understand it, then put different functions in different chunks and sub functions under the function to which they belong, but add a space before each sub function line. Also it helps to remove commented lines of code once you don't need it. That will save space and make it look better.

    Yeahs0
    Played
  • If you are the only one that sees your code, then feel free to make it messy. Remember to optimize!

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2H-TZF-6YCB

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: