|
|
|
|
|
by danjoredd
1031 days ago
|
|
>Does it matter if I know exactly how everything inside in the model works, if I can get it to work exactly to my specification without it? Maybe not every single thing, but you should know what your lines of code that implement it do. You can't debug if you don't know why you wrote what you wrote. >This is essentially how I started programming as well way back in time. I didn't know exactly what the Perl code I copy-pasted did, but if it solved the problem, it solved the problem. It brought me and my family out of poverty, and at that point, I couldn't care less about how the magic actually was done, just that it did work. Ok. Great that it pulled you out of poverty. That's irrelevant to your argument, but Im glad for you. I guarantee you that the code sucked regardless. You might not care that you produced software that sucked, but it still guaranteed sucked. If you copy and paste code without knowing what it does, you are a bad programmer. Someone, somewhere, is going to have to clean up your mess. And they are cursing your name right now. |
|
That's the thing though, the point of code is not to be perfect in isolation, it's to solve a problem. And if you eventually can solve a problem by treating it as a blackbox, who cares?
> That's irrelevant to your argument
It's not though, it's to illustrate that you can have a real-life impact using code that you don't understand at the time.
> I guarantee you that the code sucked regardless
That is irrelevant though, because no matter if it sucked or not, it worked and solved a real problem, which is the reason we (I at least) write code in the first place.
> Someone, somewhere, is going to have to clean up your mess. And they are cursing your name right now.
Well, and here I am cleaning up someone else's mess, so what? Life goes on.
You seem to fall into the classical programmers trap of thinking that code has to be beautiful just to look at in order to be valuable, and anyone who disagrees is a shitty programmer and it's their fault you have to refactor some shitty code right now. It's not, they're not, and it's not their fault.