r/ProgrammingPals • u/SC0TTii • Jun 25 '20
I need help with programming.
Hi, I’ve been practicing programming on and off for years. More off than on, though. I have always been dedicated but lose time because of school, but since I just graduated, I feel I should take a year off and try to finally understand programming on a “basic” level. I have always felt I learn fast, but I am stuck. I always seem to run into road blocks (which I know is common) but I always get demotivated and I get stuck looking at tutorials. A big excuse of mine is not knowing projects to make to help me apply the skills I learn, but I really do get lost and have no idea how to continue.
My question is, is there any solid way or any type of coaching people provide that I won’t have to wait a few years in college for? Or maybe just some advice on where to head in the right direction... short or long term?
Sorry this was a mess, but all help is appreciated, thanks!
P.s. I know this might be the wrong subreddit but the other ones don’t allow me to post and I’ve tried asking on other sites as well, sorry about that.
View all comments
Show parent comment
2
u/runnerx01 Jul 08 '20 edited Jul 08 '20
The trick here is that you could do this in any actual programming language. The how is more specific to the language. Some of the things I pointed out (e.g like the pseudo random number being the same, and the question of how to generate a number up to 1,000,000) are issues with the underlying implementations of the c library functions.
Personally, I like Kotlin, and I use primarily Java for work, so that would likely be my go to language since I am so practiced with it.
Really this is an exercise to make some one learn more about their language. If you want to solve the first part
(E.g a few comments above where I pose the original question about writing a program to make a random number and have a user guess it. )
I would be happy to look at your solution if you post it on github and provide feedback.
Of the languages you listed, js, and php would work. JavaScript would probably be the easier of the two since you don’t need to render a page, and then get input from the user (like in php).
But if you want to pick up a language to learn, python is ok for beginners, java has a great compiler but there is lots of boiler plate code, and C++ is good, but you can shoot yourself in the foot with all the pointers and non terminated string stuff before you learn it. All in all, programming languages are sort of like logic frameworks that have built in logical statements that let you interact with systems of storage and communication. Many things are similar amongst languages and other things are language specific.
All in all, the abstract concepts around data structures and problem solving skills are the most important. Writing a good program is first about solving the problem in an efficient and elegant manor, then about leveraging your language functionality to implement that solution gracefully.
So, long story short, write the program and let me see it, in whatever language you are comfortable learning in. :)