8 karma · joined Feb 6, 2023 (3y ago) · 13 submissions
comment 3y ago · link · parent
You say there are benefits to using a debugger, but I've never had any issues not using a debugger. I've been coding for 26 years. The worst thing that's ever happened to me is that I once commented out a couple lines of code, forgot to uncomment them and pushed it to production. This affected maybe 0.001% of our users. Of course, I've learned to be more careful since then. Regardless, I've asked myself many times over the years every single time I make a mistake if it could have been prevented using a debugger and the answer is always no.
You say that you use a debugger to step through every line of code to examine the state and state changes, but I always do this in my head and have never had any issues. My colleagues always use a debugger and they constantly make mistakes. I often feel that the reason they make so many mistakes is because they rely so heavily on the debugger that it has a negative impact on their ability to analyze code in their head.
This is also why I always teach my son to do math in his head and never on paper. Relying too much on calculators and paper is in my opinion the reason why so many students perform poorly in math. But this is of course another topic.
comment 3y ago · link · parent
Perhaps this is why I've never needed a debugger: prevention is the best cure.
7.
Debugger or print? That is the question
1 points · by zeroEscape · 3y ago · 16 comments
comment 3y ago · link · parent
Whitehats are basically people who do what is legal whereas grayhats do what they think is right. For example: Say you are sitting on the toilet and your neighbor comes into your house and takes $10 out of your wallet and leaves. Also, let's say you see him but have no proof. Legally, you cannot break into his house to take the money back. You need to report it to the police etc. Of course, if you have no proof, then there isn't much point in reporting it. I think a lot of gayhats would just walk into their neighbor's house the next time he leaves and take the money back thus avoiding all the red tape.
Regarding what you did... It's not exactly certain because it seems like you kind of did it by accident, at least initially. Generally speaking, you need permission to hack someone. Someone can give you explicit permission or they can give people in general permission. Regardless, if you don't have permission, I believe you are supposed to stop immediately, inform the business and if they don't give you explicit permission, continuing to hack them would be illegal. If you continue, then that would be grayhat hacking. Illegal, not necessarily unethical.
comment 3y ago · link · parent
13.
Simple Way to Jailbreak ChatGPT
6 points · by zeroEscape · 3y ago · 3 comments