Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
Hyena Grin

Transportation Infrastructure

78 posts in this topic

https://bugs.mojang.com/browse/MCPE-1514

 

Without code duping, implementations of this kind of thing in Mincraft will typically result in this kind of bug

 

You want wood/dirt to act like stone?

 

You can also make dirt/stone act like wood or stone/wood act like dirt but you get the idea (you can also use other materials, those are just examples)

 

Of course the devs want a more elegant solution

0

Share this post


Link to post
Share on other sites

What? No, all the code I saw in there regarding this stuff are possible to be configured to work off of a single instance of code with couple parameters. Just superclass that shiz.

To be honest, I was putting faith in bioxx when I posted that, rather than looking at the code itself. I assume he would have done just that if it were possible, and I'm sure that was one of the first things he tried.

 

Code duping is bad guys. I said it, Kitty said it, and now I'm saying it again. It is looked down on in the world of programming and software development. I work in that world. The people I go to class with know it. My professors know it. The other mod devs I talk to know it. My bosses know it and my coworkers know it. It's bad.

0

Share this post


Link to post
Share on other sites

And I'll agree with the others about code duping.  Even in something as simple as the Alloy Calculator I have held off on adding/changing things because I refuse to get into the crap-fest that is duplicated code. 

 

It's easy to say "Just do it for this one area", but you'll find that one area of code eventually needs to be expanded/modified or another area of your code depends on it and when you are working to debug problems or add new features you suddenly find that you now have to go back and rewrite not one, but "x" number of sections of code to make the changes you need.  Your development time increases and you open up new points of failure in your code (did you change the code by hand?  You probably my typed something in there.  Realized you need a different variable type in while working on the 2nd duped copy?  Great...but you forgot to go back and change the first, etc...)

 

I don't know if bad is the right term for code duping.  I think I'd use masochistic.

1

Share this post


Link to post
Share on other sites