r/AskComputerScience • u/Jclau77 • Oct 19 '18
Struggling in Computer science to the point where I am almost failing
I don't even know where to even start. I've been wanting to become a programmer ever since I was a child and I really wanted to follow in my father's footsteps as a programmer himself. I have previously taken this course earlier but I dropped to a lower level and I got a 66 for a average. We used a different language and now since I am back in Java I find it challenging to the point where I am struggling. I really really want to get into a good college since I am currently attending my final year of HS. Yikes, I need at least a 80% to land into the college I want to be in but at the moment I got a 54% which is on the brink of failing. This is a academic course by the way which is more challenging then previously. It's getting to the point to where I am asking myself "Should I really pursue this?" or that I am not fit to be a programmer but deep down I really want to become a programmer when I graduate.
I've been really dependent on my teacher on asking for help to where my teacher doesn't want to help me no more since I am getting stuck 99% of the time nowadays which sucks, I have spoken to my previous CS teacher and he said that at this rate I will not get into the college I want to be in and secure that programming job. I have other responsibilities as well such as a part time job, focusing on graduating, projects, assignments, tests etc. All of this is weighing down on me to the point where I am considering on dropping out. I attend classes 100% of the time and the things that I have a problem with is this.
I understand the theory of the program but I struggle on executing it such as typing the code myself and not knowing where to place certain pieces of code.
I keep looking back and forth and putting previous programs as a base structure.
Not understanding errors.
I feel like Peter Parker from Spider-man 2 to where he is being weighed down by everything, school, life, part time job etc. I just don't know what I should do it's like I am climbing a wall and I am unable to reach the top and I keep falling back down to the ground. I feel like I've failed myself, failed my parents especially my father since I promised him I would be a better programmer than him and yet I am on the brink of failing. That was the first test by the way and since I need a 80% I have to really focus but I don't feel like I have the abilities to continue.
What do you guys think I should do? I really need someone to help me on this, this is really really stressing me out how do I keep going even though everything is been thrown down upon me. How can I climb this wall? I really really need some help on getting through this.
9
u/Great_malboro Oct 19 '18
Im gonna drop this on you and hope it helps. Im having my own problems compiling an engine and I hope you stay up brah. Dont let this stress you out. Its a game of endurance that im oddly failing as well but im still gonna get back to it like you should.
6
u/BelldandyGirl Oct 19 '18
Having been in your shoes when i was in high school (my father was also a programmer), i can understand exactly what you are going through. I had never fully understood programming and it never really clicked how or where to start a problem even throughout college!! I didn't get that AHA! moment until i started my first internship. That's when it finally started making sense. I think the thing with HS and college projects is that they're small, somewhat boring, and not really solving real world problems (remember coding tic-tac-toe anyone?) I mean, i get what they're trying to do and how the educational system is trying to mold you into thinking a certain way when it comes to coding. Its almost like chess and you have to look at a project or problem from a broad prospective but also think several steps ahead for any play or outcome. This is a lot like how coding works. Trust me it gets easier the more you are put into these situations. Having now been a software engineer for well over 10 years (a sr. Engineer now), I can say that I am pretty confident in my abilities and how to approach a problem even if i am rusty or don't know the exact logic off the top of my head. Its like that stuff comes later because the important part is how to lay it all out. I would not get discouraged if i were you especially since you are still young and haven't exposed yourself to many real world cases. Maybe see if there is a free internship you can take up? That may very well help you get over the hump.
Btw feel free to reach out if you want help with any coding questions!
Good luck and don't give up!
4
u/VennHearts Oct 19 '18
I feel for you brother, I just started my journey in programming, but I have one thing to say, friend. Don't give up, in our lives we will meet steep hills and non-believers, sometimes we need to take a step back and breath before charging in. I suggest you start by talking to the fellow people around you, I find that there is at least one person who is really good in programming and I like to compare codes and see how we do things differently. Also to all of the non-believers out there who drag you down, just imagine the fire burning inside and the look on their faces when you say "I freaking did it". So take a step back and just take digest everything bit by bit (no pun intended) and when you're ready you run forward towards your dreams and make it a f**king reality.
P.S. I just read that you are in High School, I suggest you take a year off after school to develop yourself and your mindset. Experience life, make new friends, expand your social circle. Don't rush into things, and don't stop believing!
2
u/huuhuu Oct 19 '18
There's a lot of good advice here already, so I won't repeat it. One thing I didn't see is "use version control." git works for me. Don't worry about becoming a power user (you can spend years learning every magic incantation), just learn how to add and commit files, view your log, and checkout previous versions.
This will allow you to work in small steps, and as soon as you get lost or break something, you can teleport back to a previous, working version.
I recently wrote a script that reads a list of IDs from a database, and then fires them one by one to a service called RabbitMQ. I'd never done either of those things in this language before, so I did it basically like this:
Get a working connection to my database
Select some stuff from the DB and print it out (I'm familiar with DBs, so that part was easy, but figuring out how to print the results took a little tinkering)
get a valid connection to RabbitMQ
Publish a test message to RabbitMQ
take a breath, clean up some debug messages that I didn't need any longer.
tie the DB and RabbitMQ pieces together, publishing all of my messages.
Tada!
I know that list is accurate, because I committed my work as I went along, so my git log is a coherent story of how I got to where I ended up. I can't imagine keeping my thoughts organized without it, and when I was trying to publish a test message to RabbitMQ, I really mangled a bunch of stuff a couple of times. git checkout . got me back to a blank slate.
Good luck. Stay hydrated and remember to breathe.
1
u/dantheman252 Oct 19 '18
You can do it man just stay the course. Honestly, if you ever have trouble with assignments or understanding things you can PM me. I have done a lot of programming school and have taught some so I think I could help. I find that teaching reenforces those early concepts as well so it isn't entirely altruistic. Helping you helps me!
1
u/CondescendingAndroid Oct 19 '18
It always helps to try and break the program down into it's integral parts. If you aren't struggling with the logic (ie: I know how to solve this problem in terms of programming logic such as for loops, ifs and such), then once you crest this Hill of writing the code, you're golden. PM me if you need any guidance or explanation. I'll do my best to respond in a timely fashion
1
Oct 19 '18
I know, to a point, how you feel. When I took my first programming class (which wasn't until college), I aced it. But after that, in my second class, I started struggling hard. I had to start asking the professor for help constantly. Luckily he was nice enough to, in a way, take me under his wing. That still didn't help a lot, though. I was about half way through the semester and I was wanting to just give up and switch my major again (keep in mind, I also had a part-time job and 4 other classes to do work for, so I didn't have a lot of extra time to devote to programming).
One day, I was sitting in front of my computer screen, staring at what seemed like endless blocks of code, and I started feeling that anxious feeling again. Like I wanted to drop out, again. Then I got angry at myself. I knew I was better than this. I didn't know what was holding me back, but it was pissing me off. I knew that I could pass it. I knew I could be a goddamned programmer. I gave up my entire social life, gaming, hobbies, etc. up and devoted everything to programming (except what was necessary for my other classes) and pulled my grade up.
It turns out, I was just in a programming slump. I had to break out of it.
I don't know if these tips will help you, but they sure as shit helped me:
Make programming a hobby, not just something you do in your free time or for school.
This helped me SO MUCH. Once I *forced* myself to actually make it a hobby, I started progressing far beyond my own expectations. Now I actually love coming home after my classes on a friday night and just writing code.
Get a rubber ducky.
Yeah, it's weird. I'm sure you've heard of it though. If not, then go to https://rubberduckdebugging.com/ for some info on it. I LOVE my rubber ducky and it helps so much with programming. If I'm stuck, I explain my code to the duck, and I always figure it out shortly thereafter.
I think you said your father was a programmer? Is he still around? (I didn't see much else about him in this) If he is, see if he can help you. My fiances father was a big influence on me and a big mentor. He helped exponentially.
Stack Overflow! https://stackoverflow.com/
I'm sure you've heard of this or use it. Don't be ashamed to, lot's of professionals do. However, don't copy and paste. That's a big no-no. You need to learn the code on your own. But if you're stuck, like you said you are 99% of the time, this is super handy reference. Someone somewhere has had the same problem as you. and if you can't find the problem on there, post it! People will help you on it.
As hard as it may be, don't get discouraged.
I know, this is kind of like saying "Oh, you're sad? Well don't be!" but think of it like this: our emotions are what helps make decisions, right? They are like handy road signs. If you're feeling discouraged, its your emotions telling you something. Now don't think they are telling you to quit (don't quit unless you actually WANT to quit), but let that propel you forward. Let your negative emotions drive you to achieve your goals. That was a very important lesson I had to learn.
Sorry for this lengthy reply, but I just want to get the point across that you're not alone. There are thousands of people out there in your exact same position.
As for your parents, I don't think you're going to be failing them. Things change, shit happens. But don't do this for your parents or in fear of letting them down. You have to do it for you.
Good luck, brother. I believe in you and so should you!
TL;DR
Make programming a hobby, use Google, get help, let bad emotions drive you forward, and have faith in yourself.
1
u/Whitegrlproblem Oct 19 '18
I failed one class senior year due to attendance and was still accepted in a great college. When I first started coding in python I had a difficult time and had to ask online for help constantly. It's all apart of the learning process. Wrapping your head around coding is hard at first because you have to change your mindset. Once you get the hang of thinking logically it starts to click and becomes easier. If you need help with any assignment or topic message me, I would love to help out.
1
u/vreten Oct 19 '18
Two things that helped me. Write it out in sudocode, just the start and end, then fill in the rest. It doesn't need to work. Once that looks good replace with real code. I learned this from a professional programmer and it helps to keep me out of the weeds and focused on problem. Get a tutor, makes all the difference.
1
u/bunnycumslut69 Oct 19 '18
Join the programming discord and people can help you when you need the extra push to get your code working. Let me know if you need the link
1
u/The_Turtler_Man Oct 19 '18
As im well into my last semester of computer science in college, this feeling you have is all too familiar for me. If you have trouble with a particular assignment try understanding the problem better. I know that sounds cheesy but I promise 95% of the time I have a coding problem its sheerly due to the fact that I don't understand the problem or goal well enough. That being said I never started any CS classes until college so even if you have to drop this CS class in high school you should be totally fine in college. Who knows it could be that your teacher isn't the greatest. In the end if you know you want to do this and you find CS interesting don't let your mind over complicate things and make you second guess yourself, you CAN do it.
1
u/notdeadpool Oct 19 '18
Go to the Udemy website and type in Java masterclass - there is a great course by a guy called Tim and it will sort you right out. They do offers where the course comes up as £10ish regularly.
1
u/neznein9 Oct 19 '18
Break it down into smaller problems. I have been programming for a long time and when I start a project in a language I don’t know very well I go slow and run the program every few minutes to test each little thing. For instance, if I’m creating a new class, I’ll just add the file and name it, then run it to see if anything is broken. Maybe I didn’t get the constructor right so I get an error...fix that and go again. Everything is working, next I’ll import my empty class to the place I want to use it, and test again. When that’s stable, add some empty methods and test. Fill in one method at a time with the right logic and test. Finally start connecting all of the logic into bigger systems that resemble what the app is supposed to be doing.
Basically, don’t try to write it all in one shot and slam into all of your errors at once. Go super slow and keep it manageable. If errors are overwhelming, you can literally comment out whole blocks until you get things under control and then reintroduce one block at a time. If you have a hundred errors, just solve the first one and ignore the rest. Watch some videos on how to use your breakpoints and debugger features. If you need to, go ahead and put a log statement on every line until you isolate the bug.
Remember that learning is a marathon, and schools pretend its a sprint. If you need two weeks to understand a topic thats okay - once you learn it that knowledge is a foothold to more learning later. Don’t feel bad if a class expects you to get it in one week. Right now you are filling your toolbox with the tools you will use every day for years to come, so make sure you are taking the time to build that foundation right. I hope some of this helps.
1
u/lgeneva Oct 19 '18
Hey there! I want to share some words of encouragement.
During my first year of college I knew that I wanted to be a software engineer. Unfortunately, I had a terrible experience in my first programming course. I ended up with a poor grade and a feeling of disdain that caused me to switch my major entirely.
After drifting around for while and switching majors a couple more times, I finally went back to programming. I got excited about it again and did a lot of reading on topics that interested me. I've been a professional software engineer for over six years now, and couldn't imagine myself doing anything else.
The short of it is, this one course is in no way indicative of the developer you have the potential of becoming. By all means, seek out the joy in the craft, and reach out to your instructor and the community with specific questions you may have. The programming community as a whole is a very welcoming group, and we want to see our peers succeed.
Keep hammering away and you WILL make breakthroughs. All the best!
1
u/SmoothB1983 Oct 19 '18
If you can get through this you will be an amazing programmer. Endurance is part of the game. Getting through hopeless struggles and figuring out how to get on top is a major skill in this industry. It is used every week if not daily by me and my peers.
Ultimately your teachers failed you. They should have found your stopping point and helped you get over it. But that's ok! There is a way.
Try other learning opportunities. The internet is vast and publications are bountiful. You have unlimited teachers via content on the internet. Since java is your problem, I suggest the excellent book "Head First Java". It might be a tiny tiny bit out of date, but it is an excellent resource for newcomers to the language. Make sure not to skip over content "because you know it"!
Good luck.
1
u/uber_kerbonaut Oct 19 '18
It does take a lot of time. Most of the time I spend programming is actually spent researching things and having 20 tabs open.
I think not knowing how to solve the problem in front of you is completely normal. But you'll gradually learn how to get answers by searching Google rather than asking an expert.
1
u/PM_UML_DIAGRAMS Oct 19 '18
CS is a good major, you just sound burnt out my man.
"Yikes, I need at least a 80% to land into the college I want to be in but at the moment I got a 54% which is on the brink of failing. "
Truth is, something may have to give. Take the pressure off yourself to get into the 'perfect' college. Lots of colleges have excellent CS programs and very few require that you even took CS in high school. Remember that sleeping well, eating right, and keeping a decent schedule will get you really far. I am a CS grad and had a lot of the same troubles you are having now... it does get easier, but you have to take care of yourself.
1
u/Crazypete3 Oct 30 '18
My advice is to keep calm. Make sure you start project well in advance of them being due because an unknown error can really waste time and resources. The hard answer to this is just you learn the more you run into them. If I'm accessing an array many times and I get a set fault I KNOW I'm accessing outside the bounds of the array. It's just something I had to learn from failing in the past. So don't let it discourage you and just learn from it. If it's something your super stuck on, look up it. If not ask your teacher about it and they will help you. Don't beat yourself over it, errors are normal and you'll get used to them.
1
u/DesperateRadio7233 Jul 26 '23
Once you get past data structures and algorithms, courses will become a lot easier from there. Just persevere through those introductory/intermediate courses that cover c++ and java, take very good notes, and form productive study groups to ensure that you learn and retain knowledge for the exams/the subsequent class.
Also, taking courses over the summer if possible is not a bad idea. I found that being able to focus my effort on just 1-2 classes per semester over the summer/may-term allowed me to learn and retain knowledge much better than the Fall and Spring Semesters (When I am balancing 6-7 courses with information going in one ear out the other). I think you may find that your performance in accelerated Summer courses may actually be greater in the long run once you get used to the accelerated pace of these courses.
When I first learned to program, the best advice I got was that "the best programmers are not necessarily great typers, but great writers". Take extensive notes on concepts by writing them down and always write an outline of what you plan to code before typing anything on the computer. The outline should incorporate both diagrams and written comments and reflective answers that showcase what you are going to code and what key concepts from class you are using to code a particular function. It should also show how functions/classes "connect or interact" with one another. And throughout the outline, you should note any concepts that you are using throughout your code and if you encounter a concept that you have not mastered or gained comfortability with yet, stop the outline/program process and try to learn/gain a solid understanding of that particular concept in isolation before continuing with the outline process.
Especially when learning to code, and even in your career, you should spent up to 80% of your time writing out your complete outline/plan and ONLY 20-30% of your time actually typing the code out on the keyboard (once you have a complete outline/plan of your program, its structure, all the associated concepts and how they are implemented/relate to different parts of your program, any predicted areas of challenge/potential issues and what strategies you will use to overcome them/sidestep them when the time comes, etc...).
and importantly, do NOT stop writing things even if you think they are old/relatively easy concepts that you learned before and can ignore in diagramming. Keep writing them down until they become second nature like brushing your teeth. Only then can you consider the concept mastered to the point where you do not need to incorporate it in your written/planning stage.
Trust me when I tell you, using this outline/diagrammatic/planning process of writing out your ideas and concepts will greatly improve your learning and will actually allow you to code projects faster, improve your problem-solving abilities, and allow you to not get "stuck" when coding. This will also help you when exam time comes as you will have a strong grasp in your head of key concepts that you developed through a process of struggle.
Besides all of the above, one other recommendation would be to get a monitor if you haven't already. The first two years of college, I did all my coding on my 15 inch laptop, and constantly felt overwhelmed, especially when switching from coding window to web browser, etc... Having a large external monitor, or better, a dual monitor set up was LIFE CHANGING. I found that I could focus on coding for twice as long without eye strain and could learn concepts much better with the large monitor more naturally positioned rather than having a laptop screen crammed in front of my face. Furthermore, this allows you to have your resources out in front of you like papers and books rather than having to shuffle between laptop, paper notebook, textbook, etc...
0
Oct 19 '18
[deleted]
2
u/Jclau77 Oct 19 '18
That's the problem, I'm using Java and the thing is all my friends have left since I have to stay one extra year, I've been running Solo ever since first semester came up, no one in my class I know about so I feel like I have to take it alone myself with all the burdens weighing down on me. I've been going to extra help and plan to go to a computer club to help me boost my confidence.
15
u/Ttaywsenrak Oct 19 '18
Im a CS teacher who teaches Java in highschool. What specific stuff confuses you? Is it brackets and parentheses? My students struggle on that a lot.
If it is logic related, then for placement you must think about how data is received, calculated, and stored.
Generally speaking, dont get intimidated and just shut down. Each problem you solve is based on finding out the steps to take, and how you say them programmatically. If your teacher has office hours, use em.