Author Topic: copy/paste programmers?  (Read 3582 times)

0 Members and 1 Guest are viewing this topic.


José Roca

  • Guest
Re: copy/paste programmers?
« Reply #1 on: August 28, 2018, 05:50:54 AM »
There is nothing wrong to reuse code as long as you bother to understand what the code does. When you try to learn how to use a procedure, often the documentation isn't enough and you need some sample code.

As I see it, the problem is that many people aren't willing to learn. They use visual designers and fill properties instead of coding, and when they have to do something that can't be done filling a property, they are more lost than a shrimp in the desert. RAD tools should be employed to save time when doing repetitive tasks, not as a way of not having to learn programming.

JRS

  • Guest
Re: copy/paste programmers?
« Reply #2 on: August 28, 2018, 04:44:43 PM »
I was able to reuse the graphics engine from an early BBC BASIC interpreter for Linux in SDL as an extension module
before Richard wrote his own Linux BBC BASIC. I also created a standard shared object (.so) for languages like BaCon to use.



« Last Edit: August 28, 2018, 08:50:50 PM by John »

AlyssonR

  • Guest
Re: copy/paste programmers?
« Reply #3 on: August 30, 2018, 12:18:57 AM »
I only copy/paste code from other programmers when I'm trying to get my head wrapped around some problem that I never met before.

I then hack at it until it's broken ... and try again and again until I understand what it does from module.name to .end

After that, I'll (usually) re-write the code, fixing all of the variables and so forth in order to then use and re-use the new code in my projects.

The exception, of course, is libraries, which are pre-packaged and intended to be ready for re-use.

Chris Boss

  • Guest
Re: copy/paste programmers?
« Reply #4 on: September 01, 2018, 05:28:33 AM »

JRS

  • Guest
Re: copy/paste programmers?
« Reply #5 on: September 01, 2018, 10:01:55 AM »
If I was Moses and lived to 900 years, I might agree with you. Your method is a sure way to learn Windows API programming if you still believe that Windows has a future.
« Last Edit: September 01, 2018, 05:03:10 PM by John »

AlyssonR

  • Guest
Re: copy/paste programmers?
« Reply #6 on: September 02, 2018, 12:31:18 AM »
For me, Windows has a future.

Not much of one, to be sure as I will almost certainly be moving over to Linux when I no longer have a machine with Win7 on it (I refuse to go to WinSpy .... ummm .... Win10).

After that, I'm not sure that I'll be willing to learn the programming of, beyond my immediate needs.

Aurel

  • Guest
Re: copy/paste programmers?
« Reply #7 on: September 02, 2018, 03:58:52 AM »
Don't worry about windows it will survive but linux with just 2-4% of PC is on thin ice
he..he what kind of American you are John....
ahhh ..yeah..in most movies there is no Windows than Mac and unixoids give mea break.

jack

  • Guest
Re: copy/paste programmers?
« Reply #8 on: September 02, 2018, 04:51:51 AM »
please stop the off-topic posts, see the thread title.

Aurel

  • Guest
Re: copy/paste programmers?
« Reply #9 on: September 02, 2018, 08:11:22 AM »
Sorry Jack it's just my reaction on John post...

..on topic
Everyone use some sort of copy/paste especially when start with something new
in programming and that is the easy way to learn things.
So nothing unusual  :)

jack

  • Guest
Re: copy/paste programmers?
« Reply #10 on: September 02, 2018, 09:21:47 AM »
yes, I agree with you José Roca and Chris Boss, the problem arises when someone is not willing to learn.

JRS

  • Guest
Re: copy/paste programmers?
« Reply #11 on: September 02, 2018, 11:47:38 AM »
It can be scary for some leaving their comfort zone.

Arnold

  • Guest
Re: copy/paste programmers?
« Reply #12 on: September 02, 2018, 11:22:07 PM »
Using Oxygenbasic, copy and paste will not be sufficient most of the time.  O2 is a bit like C, Asm, Basic, C++, Java etc, but it is not identical. Even after copy and paste, some preparations will probably be necessary in order to run the code. But O2 is versatile, and thus many ways for a solution can be found. As there is a lack of ready-to-use libraries or header files at the moment which could be used e.g. for WinApi programming, there are a lot of possibilities to do research in this field, applying either structured or object-oriented programming. It is very educational for a hobbyist like me.

But probably it will be difficult these days to discover new algorithms for already solved problems. Therefore I apply copy and paste most of the time. This does not mean that I would copy 50000 lines of code - I will never need so many lines.

JRS

  • Guest
Re: copy/paste programmers?
« Reply #13 on: September 02, 2018, 11:48:31 PM »
Many of the Script BASIC C extension modules I created were front ended (gcc pre-processor) code translated into C BASIC for readability and ease of expanding.

I try to limit as much as possible writing code from scratch. I reuse old similar projects if I can and search the net to see what's out there. Mostly what I'm looking for concept and what the code is written in is irrelevant.