South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
[)roi(];12753433 said:I disagree, forcing the cart before the horse is impractical; far more sensible to choose a language designed to exploit OOP
I don't know what you're disagreeing with. I'm saying that it exists and that you can do it, not that it always makes sense to use it or to prefer it.
[)roi(];12754111 said:Only if calling a lemon an orange is acceptable to you...
I think you'll find many would disagree re game programming.For self-contained systems and game programming though, nothing beats a well designed object model.
What on earth are you talking about? If you don't think that C or assembler can be programmed in an OO fashion, then just say so and state your reasons. If you just think that these are inferior languages for expressing OO features, then we are in full agreement.
[)roi(];12754339 said:Surely calling them a lemon; as far as OOP is concerned is expressive enough. Not design for OOP means at best it'll be an abortion, or if you need a picture, hopefully this sums it up
https://encrypted-tbn0.gstatic.com/...9pUib_N4BdFtjcnx5eNC6JK2Qb4rvbZV9RqbMUKRYv90P
You can literally feel the tension in this thread
A lot of firmware and custom ASIC code uses OO assembly code design, and a lot of system software (notably, the Linux kernel) uses OO C. It's pretty common, and can and has been used effectively. It can be challenging to program (OO) in relative to an OO language, but in a few cases it has its advantages, and in some cases, it's all you have available.
Source? Ps. don't ever post pictures of your carA lot of firmware and custom ASIC code uses OO assembly code design, and a lot of system software (notably, the Linux kernel) uses OO C. It's pretty common, and can and has been used effectively. It can be challenging to program (OO) in relative to an OO language, but in a few cases it has its advantages, and in some cases, it's all you have available.
[)roi(];12756015 said:Source? Ps. don't ever post pictures of your car
On a similar silly note; it could be said there are viable culinary reasons for veggie burgers / sausages; IMO you probably have to be a staunch vegetarian to find cardboard sausages even slightly appetizing![]()
Why would you want to copy/paste hundreds of lines of codes (in some cases) to do the exact same thing, and then, when you have to fix a logic error, sit and fix it (and remember where you used it) in all those places; when you could just define an object and put the logic in there and fix it once?
Maybe I'm just lazy and don't want to work "hard"
function doSomething() {
//snipped
}
import myFunctions
doSomething();
class Functions {
static function doSomething() {
//snipped
}
}
import myFunctions
Functions.doSomething();
[)roi(];12756015 said:Source? Ps. don't ever post pictures of your car![]()
[)roi(];12756015 said:On a similar silly note; it could be said there are viable culinary reasons for veggie burgers / sausages; IMO you probably have to be a staunch vegetarian to find cardboard sausages even slightly appetizing![]()
Oh don't mind him, you're just wasting your time. You can give all the reasons in the world why it's not what they claim it is but in the end they will just sit back and type "we won."[)roi(];12754339 said:Surely calling them a lemon; as far as OOP is concerned is expressive enough. Not design for OOP means at best it'll be an abortion, or if you need a picture, hopefully this sums it up
https://encrypted-tbn0.gstatic.com/...9pUib_N4BdFtjcnx5eNC6JK2Qb4rvbZV9RqbMUKRYv90P