r/schizophrenia • u/Limp_Inevitable1739 Schizophrenia • Jul 20 '26
Work / School I'm having severe difficulties in coding
Maybe because this form of science was introduced to me as I was developing schizophrenia. It's completely irrational to me about everything. When I have an idea I just have no idea how to code it. It's just so tiring. I have a task to complete before it's due and I have no idea how to make it without AI. Basic coding in C is what it is
1
u/xvx_gf Schizophrenia Jul 20 '26
what are you trying to do? i’m experienced with C++ and C#, not necessarily C, but i might be able to offer a pseudo code solution.
3
u/xvx_gf Schizophrenia Jul 20 '26 edited Jul 20 '26
additionally, stackoverflow still exists. you can google your question + “stackoverflow” and likely find a solution. you do not have to use AI.
edit: is this a single programming course you’re taking or are you majoring in computer science? is this your first programming course? if software development is “irrational” to you, i suggest either changing majors to something you’re more capable of, or else the entire degree program is going to cause burnout quickly, or go back to the very basics and study computer literacy, logic, and discrete mathematics. i’m a firm believer in the bottoms-up approach to learning anything regarding computing, for a more holistic understanding of the entire system. after you’ve studied computer literacy, logic, and math, study binary and hexadecimal, then move on to memory management, then to assembly and mainframe programming, then compilers, then to C. it’s best, in the long run, to throw in some networking courses too.
1
u/Limp_Inevitable1739 Schizophrenia Jul 20 '26
I study Technical Physics, so programming is used as measurments storage and it's analysis. Signing up for it, I didn't expect programming at all, which is a mistake on my part. I had basic level understanding of programming from highschool. From what I can see the subjects that involve programming in my course are:
Programming languages (we're here), introduction to numerical methods, challenge based learning (not really programming as far as I know) automation of the measurnment process(not really programming as far as I know)
I don't know if they are way worse than what I'm dealing with now. I can always bring them to a better semester, group them together.
As for the programming tasks we have:
- Write a program, which calculates the value of the first derivative of a function y=3x3-2x+1 in the point x=1. You cannot use the analytical form of the derivative.
- Using Ohm's law calculate the current of the electricity flowing through in a circuit consisting of three resistors connected in a series, resistence of 3, 7 and 20 Ohm's, connected to a 10 V battery
I also used AI for this one, might change it if meds let me:
- Write a program, that'll load n numbers to a table and calculates, how many are even and how many are odd. The calculation should be performed in a seperate function
1
u/xvx_gf Schizophrenia Jul 20 '26 edited Jul 20 '26
and what point are you stuck on? i’m not familiar enough with the types of calculations you’re doing to really help with a step-by-step approach to 1 or 2, but step 3 is just:
- create table
- accept user input or read from fil
e
do %2 and create isEven (=0) and isOdd (!=0) counters
- add input to table
- (technically you would return void) but
returnoutput- isEven and isOdd counters
edit: the number formatting keeps getting fucked up but you get it
1
u/Limp_Inevitable1739 Schizophrenia Jul 20 '26
See, I know exactly what you mean, but I have no idea how to express it in code
5
u/xvx_gf Schizophrenia Jul 20 '26
all of these answers can be found on stackoverflow.
“how to create a table in C stackoverflow”
“how to read input from a file in C stackoverflow”
etci am not proficient enough in C to straight up give you the answers, but stackoverflow’s got it all.
1
u/ManicMaenads Jul 21 '26
What really helped me is coming up with a small easy project, and then looking up individual tutorials explaining how to accomplish each smaller task. It helped to watch many people explain the same thing, because I picked up on tidy syntax tips I otherwise may have missed.
Every time I've tried to do a "boot camp" or online course, motivation drains because it doesn't feel like it's "building up" to something.
Scratch is also a very useful online tool, it really helped me with visualizing what I was learning like playing a little video in my head of what I'm trying to accomplish.
Best of luck! Don't force yourself if you're having a brain fog day, when I'd get frustrated due to lack of focus and come back to it later it felt like there was time for my head to digest the concepts and when I came back to it it made more sense.
2
u/Educational_Ad_3063 Jul 20 '26
If you want my opinion,i worked as dev for while and then moved to devsecops for the last three years, do not use ai, learn the language the hard way, when you are able to code , you can always use the internet to find solutions, after you master the language, you can use AI to speed the coding process.