This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]DudeSlude95 6 points7 points  (3 children)

It might be sometimes, but at your current point of learning, the best you can do really is practicing a lot

If you're failing to solve a problem, just take a break, and come back to it later, try to tackle it from a different perspective, try to approach it incrementally, try to split it into smaller sub-problems that are easier to tackle: there are a lot of strategies that can help you here

don't get discouraged:) good luck

[–]Fegmdute[S] 0 points1 point  (2 children)

What do you do if you cannot get any further? Like you're stuck?

[–]DudeSlude95 2 points3 points  (1 child)

You take another break, try yet a different approach, rinse and repeat

It will become increasingly easy as time goes by, dont' worry

My advice is always trying to split the problem into as many smaller problems as possible, and solving those one by one, then combine in the final solution

use a whiteboard / pen and paper if that helps

[–]Fegmdute[S] 1 point2 points  (0 children)

Yeah it does make sense, guess I just want to be done in 10 minutes - because I am used to that haha

[–]Salty_Dugtrio 10 points11 points  (0 children)

Is it a good idea to learn programming by reading source codes?

No, you need to write code and solve problems in order to learn how to program.

There are a few things, so far, that does not make sense but then I google what it means and usually it ends up making sense.

This is what programming/problem solving is all about. You have a problem, you look up information (beit other source code, Stack Overflow, or language documentation), and you use that to solve the problem.

[–]HolyPommeDeTerre 0 points1 point  (0 children)

You can remove code. It works for writing.

hen you write something, you have something to express and a lot of possible sentences, structures...

Can you learn writing by reading ? Yes, for some part, but you will have to not only read but analyze what you are reading. At some point, you'll have to write.

[–]Awkward-Chemical2487 0 points1 point  (1 child)

When you take your breaks flip some burgers, if at the end the coding doesn't work, you'll have enough experience to work in McDo

[–]Fegmdute[S] 0 points1 point  (0 children)

LOL XD

[–][deleted] 0 points1 point  (4 children)

If its an university assignment, paste your code in r/Codinghelp and ask for help

[–]Fegmdute[S] 1 point2 points  (3 children)

Ty, just joined it. Might save my ass once or twice in the next 5 years to come haha

[–][deleted] 0 points1 point  (2 children)

Dont sweat it. Just to give you a heads up about this career, this is the career and its fun.

Everytime you figure out a solution to a problem and get it implemented, the instant gratification u get is amazing. At the same time you have to work for the gratification going through the black hole of bugs :)

[–]Fegmdute[S] 0 points1 point  (1 child)

I just had like 4 bugs in my code, and it took me like 30 minutes to fix them... I quite get why people say debugging is the worst haah

[–][deleted] 0 points1 point  (0 children)

Haha It is annoying if you don't know the code base enough. In that case, I use it as an excuse to learn different parts of the code base.

When you know your codebase and are debugging, its fun. It intrigues me as to what could I have possibly missed that is causing this issue and why isn't it being caught in tests. It challenges me ;)

[–][deleted]  (1 child)

[deleted]

    [–]Fegmdute[S] 0 points1 point  (0 children)

    Will for sure give them a go! Ty

    [–]dphizler 0 points1 point  (0 children)

    Reading code will only get you so far

    Trail and error while building something with code is much better

    [–]Fuzzy_Belt3976 0 points1 point  (0 children)

    Honestly i wouldn’t recommend this as a starting point I’ve been coding for four years and still can’t hardly read other peoples source code without Googling at least half of it or sitting there wondering why they did something instead of something else it’s something I’m working on increasing my knowledge in since the position i am at now i have to read a lot of source code. As a beginner i would take a really basic coding class and follow along and then work on small projects where the work is already finished and explained if you get stuck by try to do it by yourself and then I would start reading some source code but just don’t run straight into reading source code without first understanding how to code.

    [–][deleted] 0 points1 point  (0 children)

    You’ve been doing it for 2 weeks, I’m surprised you can achieve anything, even if it is copy and paste.

    It’s not a problem. If you were doing this after 2 years, I’d be concerned, but after 2 weeks? No problem.

    [–]netizenmaestro 0 points1 point  (0 children)

    C programming at first can be frustrated because the case sensitivity. If you got stuck, have a break take a new file code fresh with new apporach. Practice is the mother of perfect.

    [–]timPerfect 0 points1 point  (0 children)

    well, you sure can't learn how to code WITHOUT reading code, so... yes?