Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fear of mistake

Hello everyone. I am computer engineering student (at first class). I watch courses part by part but I scare project which I have to do myself because I don't wanna make mistake. I couldn't over come of this fear. Do u have any suggestions?
 
Hello Welcome to Code Forum!

May I ask why are you scared of making mistakes? Mistakes is how we excel at something. Don’t be afraid of mistakes, embrace them.
 
You're right. Do u have any suggestions?

The best way to learn is to practice. We all make mistakes but in order to learn a coding language you have to try and practice. That's what bugs are for and I've never heard of someone programming that hasn't encountered a bug and had to fix one. You will always encounter bugs in your code. What makes a good programmer is someone who can read the codes bugs and know how to fix the bugs until they perfect whatever it is their designing. The best way is to start coding something and see if you fall into any mistakes and then work on fixing it.

Also welcome to Code Forum! Were glad to have you here.
 
The best way to learn is to practice. We all make mistakes but in order to learn a coding language you have to try and practice. That's what bugs are for and I've never heard of someone programming that hasn't encountered a bug and had to fix one. You will always encounter bugs in your code. What makes a good programmer is someone who can read the codes bugs and know how to fix the bugs until they perfect whatever it is their designing. The best way is to start coding something and see if you fall into any mistakes and then work on fixing it.

Also welcome to Code Forum! Were glad to have you here.


So thanks man
 
Hello everyone. I am computer engineering student (at first class). I watch courses part by part but I scare project which I have to do myself because I don't wanna make mistake. I couldn't over come of this fear. Do u have any suggestions?
I understand this completely, but the trick is to keep pushing and overcome the fear by practice. You WILL make mistakes.

Hell, I just discovered a vulnerability in a client's site the other day that I made 2.5 years ago. The vulnerability allowed a malicious user to upload a .PHP script via a custom Media Center. The logic in place was "if file is a valid image, upload to /uploads/images/, otherwise upload the file to /upload/pdf/". The problem is that it did NOT say "else if file is a valid PDF", so the script allowed ANY file to be uploaded to the PDF folder. That vulnerability was used on 4 separate occasions by a hacker in Morocco to use the client's site to host non-malicious files. It could have been really bad though. That vulnerability could have let the hacker destroy the site, steal account data, and much more. One could say I did not have ENOUGH fear when I coded that page. If I had been fearful of my code being bad, maybe I would've spent more time. Or maybe if the beta testers had been MORE fearful they would have tried uploading a PHP file. However, I probably coded it quickly and the testers most likely tested an image upload & tested a PDF upload and said "Ok it works!" without testing to see if the page would deny an invalid PHP file upload. This is a great example of how fear can actually be a GOOD thing for programmers.

People make mistakes all the time, so the important thing is to following these rules:
1) Double check your code (I most likely did, but missed the glaring vulnerability)
2) Test your code to make sure it works for the "intended use" (in my ex, test to make sure it works for PDF & image uploads)
3) Test your code to make sure it doesn't break or allow "unintended use" (we did NOT test the media center feature in this way, and that was our mistake)
4) Back up everything and as frequently as your server can handle (we have terabytes of storage space dedicated to backups, but we also host and actively develop over 100 websites)

Fear can be a good thing. Just don't let it eat you up - instead, convert that fear into motivation to produce good work. A fearless programmer will make more mistakes than the fearful programmer... but if the fearful programmer is too scared to create anything than the fearless programmer will come out ahead because they will make mistakes, learn from them and become more cautious while the fearful programmer stays in a place of fear. Anxiety & fear are great motivators to take actions that help you alleviate your concerns, but only if you actively attempt it.

Good luck 🙂
 
I understand this completely, but the trick is to keep pushing and overcome the fear by practice. You WILL make mistakes.

Hell, I just discovered a vulnerability in a client's site the other day that I made 2.5 years ago. The vulnerability allowed a malicious user to upload a .PHP script via a custom Media Center. The logic in place was "if file is a valid image, upload to /uploads/images/, otherwise upload the file to /upload/pdf/". The problem is that it did NOT say "else if file is a valid PDF", so the script allowed ANY file to be uploaded to the PDF folder. That vulnerability was used on 4 separate occasions by a hacker in Morocco to use the client's site to host non-malicious files. It could have been really bad though. That vulnerability could have let the hacker destroy the site, steal account data, and much more. One could say I did not have ENOUGH fear when I coded that page. If I had been fearful of my code being bad, maybe I would've spent more time. Or maybe if the beta testers had been MORE fearful they would have tried uploading a PHP file. However, I probably coded it quickly and the testers most likely tested an image upload & tested a PDF upload and said "Ok it works!" without testing to see if the page would deny an invalid PHP file upload. This is a great example of how fear can actually be a GOOD thing for programmers.

People make mistakes all the time, so the important thing is to following these rules:
1) Double check your code (I most likely did, but missed the glaring vulnerability)
2) Test your code to make sure it works for the "intended use" (in my ex, test to make sure it works for PDF & image uploads)
3) Test your code to make sure it doesn't break or allow "unintended use" (we did NOT test the media center feature in this way, and that was our mistake)
4) Back up everything and as frequently as your server can handle (we have terabytes of storage space dedicated to backups, but we also host and actively develop over 100 websites)

Fear can be a good thing. Just don't let it eat you up - instead, convert that fear into motivation to produce good work. A fearless programmer will make more mistakes than the fearful programmer... but if the fearful programmer is too scared to create anything than the fearless programmer will come out ahead because they will make mistakes, learn from them and become more cautious while the fearful programmer stays in a place of fear. Anxiety & fear are great motivators to take actions that help you alleviate your concerns, but only if you actively attempt it.

Good luck 🙂

Wow. This was long and really great. So thanks for your advices and example. I am gonna try and I am gonna make mistakes for to be better.
 
Back
Top Bottom