Page 2 of 2

Re: High quality command programming

Posted: Mon Apr 04, 2016 7:44 am
by walbus
Sorry, but it´s simple, this code looking absurd !

Re: High quality command programming

Posted: Mon Apr 04, 2016 5:28 pm
by Bo Marchais
Danilo wrote:
Bo Marchais wrote:Guys like this help us all learn in one way or another... so I hope he'll keep working.
I’ve seen that several times in the PB forums over the last 16 years:
One guy gives a wrong ‚tip‘ (or somebody didn’t understand correctly), and few month later everybody is spreading it - because they learned from the 1st guy.
You bring up a good point. This is what I mean by cargo-cult programming.
It is very common - and when it works, very efficient. That's why we waste so much time searching for random examples.

Most of us are basically building replicas of code we've seen elsewhere, or reinventing our own wheels based on things we already learned.
It may have been 3 days, or 3 months, or even 30 years since we saw it, but now we think it is our own talent. But that is what clever monkeys do, and we are very clever. :)

But sometimes we just borrow from someone else, especially when what we know is incomplete, or missing some parts.
I think this is oryaaaa's issue - he has come into contact with assembly language, and is learning how to decorate his programs with it.
Does he realize that messing about with registers accomplishes nothing when the purebasic FLAC playback routines cheerfully stomp over his modifications?
Probably not. But if he was 10 or 12 years old, we would all think he was a prodigy for even considering these topics. And better this than virus writing
or ransomware. Maybe the end result of his work has no practical applications, but who knows what tomorrow will bring from him?

70% of the code people have contributed here isn't very useful to me, but it still has value. Even the junk.

Most of the time it makes me think that Purebasic needs a LOT more built-in commands, because we are forced to waste so much time constructing low-level components that EVERYONE needs... but then again, if Fred did this, it would no longer be the sleepy little language that nobody knows about. If I was the boss, I would immediately start stealing functionality from Php and Python and then fix the documentation and sample code... but the end result of that is just that Fred would spend all his time making money and get bored with needy users. I've watched (and helped) this happen a dozen times in my career - if you build a better mousetrap, the world will give you pots of money.

But few people know what happens next: When you're the guy who built that better mousetrap, success from money almost always causes an allergy to mousetraps!