Please make sure you have fully read our posting guidelines
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 15 October 2011 - 06:40 AM
I gets all your texture budgets!
Posted 15 October 2011 - 08:47 AM
Volume of sphere = 4.13 * r^3 Volume of cube = a^3 Volume of cylinder = 3 * r^2 h Volume of tea pot = "measure with cylindrical cups the volume of water it holds" Volume of a mine = ... Volume of a ... = ???
Posted 15 October 2011 - 08:56 AM
Exactly. The code is waaaay more elegant than the stupid integral.Compare:
Volume of sphere = 4.13 * r^3 Volume of cube = a^3 Volume of cylinder = 3 * r^2 h Volume of tea pot = "measure with cylindrical cups the volume of water it holds" Volume of a mine = ... Volume of a ... = ???
vs.
It's similar with elegant code.
Posted 15 October 2011 - 09:31 AM
I'm the opposite. I find the algorithm more beautiful than the actual implementation of it.For me it's not the code itself that is beatiful, but the implementation behind it
Posted 15 October 2011 - 07:57 PM
Sometimes when I write a complex piece of code that's easy to reuse and loose coupled or something along those lines I can't help but think it looks beautiful . How many of you occasionally think their code looks absolutely beautiful?
Posted 16 October 2011 - 07:17 AM
Compare:
Volume of sphere = 4.13 * r^3 Volume of cube = a^3 Volume of cylinder = 3 * r^2 h Volume of tea pot = "measure with cylindrical cups the volume of water it holds" Volume of a mine = ... Volume of a ... = ???
vs.
It's similar with elegant code.
Posted 16 October 2011 - 04:14 PM
Posted 16 October 2011 - 04:32 PM
Code which does useful stuff, mostly does not look beautiful. Aesthetics is not its primary concern.
Posted 18 October 2011 - 02:02 AM
Posted 18 October 2011 - 02:24 AM
Compare:
Volume of sphere = 4.13 * r^3 Volume of cube = a^3 Volume of cylinder = 3 * r^2 h Volume of tea pot = "measure with cylindrical cups the volume of water it holds" Volume of a mine = ... Volume of a ... = ???
vs.
It's similar with elegant code.
Posted 18 October 2011 - 02:54 AM
Compare:
Volume of sphere = 4.13 * r^3 Volume of cube = a^3 Volume of cylinder = 3 * r^2 h Volume of tea pot = "measure with cylindrical cups the volume of water it holds" Volume of a mine = ... Volume of a ... = ???
vs.
It's similar with elegant code.
The integral does not have enough information. f, a and b are not given.
I know this is just an example, but, this is what I disliked about courses and love about programming code:
Programming code requires you to give the value, operators, etc... of everything you need. Only then it compiles and works. Every mathematical problem can be formulated as programming code.
Mathematical formulas can be sloppy, and often are in course books, with you having to guess the values or sometimes even meanings of some of the symbols based on vague slides. Plus, variable names in math formulas are 1 letter names, that's not very readable code .
Posted 18 October 2011 - 03:20 AM
hahaha nice analogy!Zipping the equivalent text string will not make it a better solution, just harder to work with.
Posted 18 October 2011 - 09:40 AM
Code which does useful stuff, mostly does not look beautiful. Aesthetics is not its primary concern.
This.
Most production-level code is actually pretty hideous. Of course, it can be hideous because it's truly bad, or because it's full of tiny considerations for really obscure cases.
Hmm, I smell a journal entry :-)
[edit] As threatened!
Posted 18 October 2011 - 01:11 PM
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.