r/learnprogramming • • May 15 '20

Learn to code TODAY! (Seriously)

Hi guys, I'd like to share my story with coding and when it really started. I know a lot of you guys is having the same struggles I did and I hope this helps.

At first, I didn't understand how some letters on a screen became a whole web store system. It was mystical to me. After some researches, I was told to learn HTML/CSS/SQL/JS/PHP. The starter kit for web development.

So I did, started to learn theories, syntax and when I (thought) finished, I was hopeless. Thinking: "ok, so now I know what is these things and how it works, but how the hell am I supposed to mix it up together and build something meaningful?".

I was stuck. I quit for some time, I didn't knew what was the next step, and searching on the web it looked to me that was a jump from the basics to building complex systems, and I was too dumb for this.

But then, the day that made me a true programmer became! And this is the tip that I thought it might help you guys:

To become a programmer, you have to program. Oh yeah, you already read this on other posts, but it sounds pretentious, right? Like, shut up dude, you already code, it's easy for you to say. Yes, I agree.

The thing is, besides learning syntax and other stuff, do an analysis of yourself. Where are you now? What you already know? What are the things you always see around but have no clue what it is? OOP? API? AWS? What is this? Take notes, search what it is, just to clear your mind. If you have all this information that is kinda blank on your head, it's just overwhelming you. Sounds more difficult than it actually is.

Then when you know what is your level at programming, start taking your own challenges, compatible to that level. Example: I was trying to create a CRUD (Create/Read/Update/Delete) system in Java with SQL, I tried to jump steps and went to youtube tutorials without knowing the basic syntax of both languages, it was frustrating. Then I got back to my "make-a-sum" console programs. After I learned the basics, I finally was able to understand that tutorials properly and then when I watched it again, became natural. It has a lot of things that I didn't knew, but having a solid background for what the tutor was speaking, I was able to study it afterwards.

So, to program: program (but not any or every challenge you found on the internet, but your own challenges, what you are capable to do).

The more I study the more I see is an endless road. The only point you can say: "Ok, now I'm am a programmer!" is when you take challenges and don't give up on them, and make it works. No matter how small is your project.

Search for the zone where is always slightly difficult.

You can become a programmer today, maybe a bad one, but you can start it today! Now, go build something with what you are capable, you'll be a great programmer soon. :)

1.9k Upvotes

144 comments sorted by

199

u/Yogi1987 May 15 '20

Thanks man, i needed this. I had couplebof projects which i abandoned in the middle once they become complicated. One thing i need to learn that how to stick to one thing and complete it.

63

u/[deleted] May 15 '20

Yes! Glad to hear it helped. For me, the thing is to not take a step too big for you. You gotta be in that zone where the task is slightly difficult.

17

u/[deleted] May 15 '20

I look at programming like reading. If you keep starting new projects that's ok, if you abandoned a project and stop programming then that's not good.

The more you do it, the more confident you'll get. It hard to just fail at something for hours. But if you remember those experiences you are more likely to push through to the end.

I see the time I spend just spinning my wheels as a cost for learning something new. The cooler that technology the more it will cost me.

31

u/[deleted] May 15 '20

So I'm a software developer, and on my regular job I don't really need to rack my brains that much, but then one day I woke up, and decided that I really need to up my programming game. That I'm gonna make some really cool projects on my free time, put them on my github, and take it somewhere from there. So after going through a few websites, I land here: https://projecteuler.net/

Now, it's not important for you to be a math whiz to be a good programmer, but a lot of computer stuff is actually built on top of math. And math, if presented properly is cool. Sometimes. Maybe.

So I try to solve the first problem: https://projecteuler.net/problem=1

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

Blah. Run a loop from 3 to 999, have a variable to keep the sum. In the loop, check if the loop counter is divisible by 3 or 5, using a modulo, and then add it to sum. Got the right answer.

Then I went to the discussion page (https://projecteuler.net/thread=1) to see what others were saying about the problem. I saw this solution in php:

$x = 1000; echo 1.5*(int)(($x-1)/3)*(int)(($x+2)/3) + 2.5*(int)(($x-1)/5)*(int)(($x+4)/5) - 7.5*(int)(($x-1)/15)*(int)(($x+14)/15);

I shut down my laptop and went to sleep.

9

u/3-stripes-beanure May 15 '20

Your first solution is definitely how I’d do it. Here, having an understanding of the math makes it easier to write the program. I don’t think there’s any shame in implementing a well known algorithm, as long as you implement it yourself, and there’s also no shame in your solution.

I’ve taken courses in python, java (data structures), Scientific computing (C++), numerical analysis (Matlab), and modelling and simulation (any language we’d like). I’d say that my applied mathematics programs aren’t always the most efficient, and I do use well known algorithms (such as the metropolis algorithm in the Ising model). My programming knowledge is very specific to solving mathematics or physics problems.

I just don’t want you to think your solution is bad or wrong, and also to sort of indicate that finding this problem and looking up ‘algorithm for finding the sum of multiples of x bellow n’ is not cheating as long as it’s not code.

4

u/[deleted] May 15 '20

In this particular case, I believe it's mostly people flexing. A few others have posted solutions in assembly, and without using loops (like this one). But it bothers me that there are people who can come up with such solutions on the fly. In a different place, I can't remember where, I think it was a hackerrank problem, some guy used some bitwise operators in a really smart way and avoided looping or cut down the number of loops in a significant way. How do people learn to think like that?

13

u/travlr2010 May 15 '20

If that solution was well documented with comments in the code, and packaged so it could be called from any program, AND that code is the most efficient in CPU cycles and time, then great.

Otherwise, you're ahead with your code.

There's no shame in brute force. Especially when time and CPU cycles aren't at a premium.

5

u/[deleted] May 15 '20

BRUTE FORCING IS BAAAADDDDDD. jk. My self-made principle, and I'm sure someone famous has probably said this before. Make it work first, then optimize it.

6

u/skeletalfury May 16 '20

“Premature optimization is the root of all evil”

4

u/AdmiralAdama99 May 15 '20

Coding is so effing broad and deep. While Project Euler, Leetcode, algorithms, etc are a significant area that OP should eventually study, I do not recommend it for a web developer starting out.

My advice to OP: get laser focused in what you study. So that you dont try to learn everything, which will cause you to get overwhelmed.

2

u/Pokky_Ninja May 15 '20

I don't know but this made me laugh so damn hard lol.

But it's ok to know your limitation. I would go the same way to solve the problem as you solved it. While the php solution flies over my head.

2

u/[deleted] May 16 '20

I'm a (perpetual) beginner and I'm doing the Coursera Google Python course. His is the only way I really 'know' how to approach the problem. Reading the second answer made me laugh.

I get sort of discouraged because people in the world are so beyond my intelligence. I'm 30 and I feel like I wasted my life so far. It's seriously humbling.

0

u/[deleted] May 15 '20

[deleted]

5

u/UrFreakinOutMannn May 15 '20

Honestly, just looks like calculus. $x == f(x) and then the equation is on the right.

2

u/[deleted] May 15 '20

True man. Better to commit to one project rather than several at once, or you're GitHub ends up looking bad with multiple unfinished projects.

2

u/SamBorick May 15 '20

One thing to keep in mind with this, there are lots of different definitions of 'done'. If you feel like your not getting anything out of a project anymore, it's OK to move on.

I think you can even publish something that only partially works, as long as you document it.

2

u/LuckyHedgehog May 15 '20

Counter point: if you learn something from a half finished project that you abandon, that's perfectly OK. The key is to keep practicing

Writing a dozen half baked programs that team you a bunch of different concepts is better than beating your head against one project for one concept

48

u/[deleted] May 15 '20

[removed] — view removed comment

21

u/Arihant100 May 15 '20

I'm a musician AND a programmer, so double thanks for the advice!

11

u/zzKaden May 15 '20

Im a musician AND a programmer that will now finish my projects so triple thanks for the advice!

3

u/HannibalGoddamnit May 16 '20

Quadriple that for me please!

3

u/[deleted] May 17 '20

im a musican AND a programmer, and I learned this through music production before i even started coding

26

u/wasmachien May 15 '20 edited May 16 '20

Some tips from my side:

Start simple. Don't think you can just go and create a video game or a social networking site. Those are the results of a lot of work, usually by a lot of people. Instead, make a simple static webpage. Make a console app that tells you the weather forecast. Or a script that performs some boring, tedious task for you automatically.

Don't be afraid to make mistakes. Because you will. Make sure to save your early work somewhere, so you can look back at it later and realize you've made progress.

Don't try to understand everything. Sometimes you just need to do or use something without knowing what happens inside.

Don't be afraid to ask for help. But know that asking for help is also a skill. If your questions are to the point, you will get more help. Don't ask why your program crashes. Ask why

Be critical with regard to your study materials. There is a lot of crap on the internet. Some areas move very quickly, which makes old stuff outdated. Books are often better. I like the Head First series if you are starting with little or no knowledge.

Start with the basics. Don't start with Android apps before you know what Java and object oriented programming are.

Big problems can usually be split up in small problems. Small problems are usually easier to solve, and easier to ask questions about if you can't figure it out yourself.

Most problems have been solved before, by people smarter than you or me. Don't try to reinvent the wheel (unless for fun or practice). E.g.: do not try to figure out yourself how to store passwords securely. Just google "storing passwords <your programming language>".

Learn how to use a debugger. A big part of programming is figuring out why your program doesn't work the way you want it to. A good debugger makes this 1000 times easier.

Practice practice practice. Doesn't matter if it's useful or not.

Googling is a skill. Also, read the docs.

Once you have the basics down, try to move on to more complicated systems. Create a website with a front end and a backend. Try to understand how you can tie those things together.

Learn design patterns. Once you advance, you will notice that programming is not so hard. The hard part is making sure that your program can later be extended easily without messing everything up.

Make sure you keep having fun.

3

u/[deleted] May 15 '20

THIS!

2

u/grooomps May 16 '20

Pretty much every website we use of built by a team of professionals, starting out you won't be able to get that level of polish

1

u/AsifMojtoba May 15 '20

Thank you!

38

u/Hopeful_Parfait May 15 '20

All programmer's been there. Better to drop that longs hours of video tutorials and start building your own projects.

10

u/[deleted] May 15 '20

THIS!

2

u/Confucius_said May 15 '20

I need to do this. I feel confident in my python skills. I just need to pick something and build.

2

u/[deleted] May 16 '20

one thing i did was to follow the tutorial but change the variable names. this forces me to look at my code rather than blindly copy

6

u/[deleted] May 15 '20

but these tuts give you a head start on what to do, basically it gives me an idea where to use which syntax.

0

u/[deleted] May 15 '20

[deleted]

8

u/HeyAshh1 May 15 '20

I love those moments too, but it's inefficient to try to work everything out by yourself when other people have done it for you already. Just need a healthy balance!

22

u/Raw415 May 15 '20

Damn dude. I'm 30yrs old and I dropped out of college 4years ago to take care of my parents. In that time I've become a father and worked as a Uber driver with no end in sight. I see everyone I knew in college become professionals in various fields while I'm at home diddling around on my PC. Reading your post has renewed my love for coding again. Thank you.

7

u/[deleted] May 15 '20

Keep going and forget about your age. There's only one time you should care: that one where you decided what to do. I believe in you!

2

u/AsifMojtoba May 15 '20

May the force be with you.

4

u/new_motivation May 15 '20

HTML /CSS/SQL/JS/PHP , heck ! I'm learning Python to get into web dev. I want to create/optimize beautiful websites and web apps. Do I really have to learn about all of this languages?

1

u/[deleted] May 15 '20

If you know what you want, I don't think so... Only concern about it when if comes to be a problema to you. Idk

2

u/new_motivation May 15 '20

What I tried to ask is : is just Python enough to build a whole website ? Or do you have to "complement" it with some lines of codes from other languages , i.e JS ?

2

u/[deleted] May 15 '20

Oh, now i get it. Well, python is a back-end language, in other words, it's responsible to do the "behind the scenes" role. JavaScript is really important, it is the programming language to do things on the client-side. What your navigator exposes to you. The "movie" itself. Yes, if you want to build a website is really important to understand concepts of html, css and javascript. But don't feel overwhelmed and start small, start searching on youtube what is these things. What can be done. Then when you get the general idea you'll be able to see what you need for the step your trying to take on developing your system.

4

u/yesSemicolons May 15 '20

Do I really have to learn about all of this languages?

Nope. Pick one object-oriented language and stick to it. Pick one framework and stick to it. Once you get half-decent in those (happens really quickly when you're a junior in an engineering team) you'll realise that you can easily pick up any others.

2

u/[deleted] May 16 '20

Any advice on picking a framework and language to go hand in hand?

I know its not an easy answer, but something for system development

1

u/yesSemicolons May 17 '20

Not sure what you mean by system development. For general web development Ruby and Sinatra are a great introductory set, or Python and Flask, and there's of course JavaScript and Vue (or React if you want to be marketable, Vue if you want to be efficient while having a good time).

2

u/Ezio_Mash May 15 '20

i got on this exact path with the same feelings but unlike you when i quit i didn’t come back. After reading this if i had a laptop right now i would jump right back. I’m going to give it another go when i can afford it. it’s really true that sharing your story can change someone’s life. this touched me.

1

u/[deleted] May 15 '20

Man... I'm so happy to read this. Please, PM me if you need any other advice

2

u/Ezio_Mash May 15 '20

i definitely will take you up on that offer. that journey is not ideal on your own. Thank you

2

u/[deleted] May 15 '20

Thanks a lot for this post. Needed it myself... I've been trying to get into programming for a long time to start some basic game dev to reach my childhood dream but it all felt hazy and intimidating. It still is... I'm still unsure how I'm supposed to throw everything I've learned into a magical pot that spits out my desired program but reading this makes me want to continue on doing simple things to reinforce my knowledge.

I myself felt stuck with finding a language that I can actually enjoy learning or actually understand. I went through python, java, C#, Golang, and Lua... Many would argue that it was a massive waste of time and I should have stuck with Python, yet it was a language I hated learning. It was a language I just had no motivation to learn at all and so I decided to go back to my first language ever which is Lua.

While this language might not offer a job or a lot of opportunities, it offers me enough to learn it and use it for indie 2d game dev using Love2D and Defold game engine. Lua is a language I've clicked with, it's a language that makes plenty of sense to me, and learning it is tons of fun.

If you don't mind me asking. How much time do you give yourself for programming studies? half an hour? 25 minutes per day? Hour?

4

u/[deleted] May 15 '20

Hi.

Actually, I study 30min/1h everyday. I'm kinda lazy, I admit it. But the magical about discipline is consistence. Do a little, but do it everyday. When it gets exciting, you'll automatically study more, when it's hard and boring, just do the minimum, 15/30 minutes. There will be highs and lows.

About the language: get one to learn the concepts about programming. The one you like. When you understand the logic and the concepts, to migrate to another language it's easy.

See what's your interests about programming. TBH I don't know much about programming games. I study it for career purposes. Good luck!

2

u/[deleted] May 15 '20

Thanks! Was also wondering, do you schedule what you want to learn on this day or next one? Like a roadmap etc? Sorry for a terrible explanation, don't know how else to word it.

2

u/[deleted] May 15 '20

Oh yeah, I made my own "roadmap". I'll try to help: See what you want to do. A big idea. Ok, now see where to start, research. Website? HTML/CSS/Javascript to build something visual. Now, find a way to learn these things. Online courses are great. Learn, TAKE NOTES!!! about what you learned and the most important: practice. You learned one concept, practice it until is clear on your mind. But always looking to the big picture, how does it helps to build my goal? If you don't have that in mind, find that online. If you do not do this, it'll get boring. Been there done that.

2

u/[deleted] May 15 '20

This post gives me so much hopes man.

I consider myself a rookie with experience in HTML/CSS-SASS and Python basics and my website is in production. The website that i am doing is taking most of time, already 15 days.

This is the 16th day and I legit feel like quitting.

When I entered reddit to see some memes, I came across this.

Now, I am going to code more than ever.

1

u/[deleted] May 15 '20

Nice! Don't quit. It's foggy at the beginning, but things will be clear soon for you!

2

u/Anonymous8952 May 15 '20

Okay. But where to begin to build projects I do not have any idea about what project to start and I have no project in mind at all I just want to know how to program.

1

u/[deleted] May 15 '20

To know nothing is a good start, you have all the curiosity. Google stuff, it is really very foggy at the beginning. Take notes of whatever you want to understand and start googling. Before code, you have to understand what you want to do. Good luck!

2

u/ViP2_Skema May 15 '20

I have no experience.

Where should I start?

2

u/[deleted] May 15 '20

Asking yourself what you want to do. Then googling stuff. But I'll try to help: what you want to do? Hobby?

1

u/ViP2_Skema May 15 '20

I want to do it seriously.

I have time on my hands, so would like to focus.

2

u/[deleted] May 15 '20

Yes, but are you doing it for career purposes? So, if you don't know anything, start curious. What can I do with programming? What is a program? Then search what is algorythm, how it works. Then programming logic. Programming languages are not as important as the programming logic. On youtube there are plenty courses about everything. Start small and curious, and keep the consistence. 30 minutes of your day to study. To search things is already to study. Good luck!

2

u/ViP2_Skema May 15 '20

Thank you

:)

1

u/[deleted] May 15 '20

I know it's hard. You can PM me if you need ;)

2

u/burntrissoto May 15 '20

Theodinproject.com

2

u/DeepaPrasanna May 16 '20

Thanks a lot ! Since last few days, I was having negative thoughts that I cannot do and cannot be a good programmer

2

u/[deleted] May 16 '20

You can. But you have to be a bad programmer first. Start becoming a bad programmer today. Good luck!

2

u/noshame202099 May 16 '20

Its syntax I just don't understand it

2

u/[deleted] May 16 '20

Try again and again until you understand it. Everything new for the brain is hard. It becomes natural. Good luck!

2

u/dkaarvand May 16 '20

Is it foolish of me to start with C# without any prior programming skills? It was either C# or Python, but trying to avoid Java and anything with PHP, HTML, etc, because I have zero interest in developing a website, ever. (I know, you can do more with Java, but I feel like its a dying language)

Am I a fool?

1

u/[deleted] May 16 '20

It is not about the language, it is about the concept and the programming logic. You can do this, you're not a fool. Good luck!

2

u/[deleted] May 16 '20 edited May 17 '20

You've magic in your words. Surely,too motivating stuff for us.

I'm not a programmer but I have the intention to learn a language. Your words already pushed me to the path. So many programmers around us but a few of them like you who inspires and spread positivity.

Thank you

1

u/[deleted] May 16 '20

You can do this!

2

u/awebb3701 May 16 '20

If you have all this information that is kinda blank on your head, it's just overwhelming you. Sounds more difficult than it actually is.

This feeling right here has crushed me more times than I can count. I always feel like I need a mentor there to walk me through it so that I can disengage from that feeling.

1

u/[deleted] May 16 '20

I know this feeling. Google was my mentor lol, good luck!

2

u/greysilver69 May 16 '20

Now I’m on my way to build a killing machine w AI I shall call it the terminator why the name beachside it will terminate our problems and because Ive watched fineas and ferb ill make history and be in movies about him exists tell me if I succeeded

1

u/[deleted] May 16 '20

LOL. Good luck?

2

u/flxjrm May 16 '20

This post encouraged me more than anyone to practice coding again (cuz I feel lady due to quarantine), thanks 😁

1

u/[deleted] May 16 '20

Hahaha, you can do this!

30

u/alphabennettatwork May 15 '20

This is great advice. Some other advice that's I've seen given that's really great: don't try to learn too many new things at once. Learning a new database technology along with a new backend technology makes it hard to distinguish how they are affecting each other, and sometimes the separation becomes unclear. This is why starting simple (a console app) is so good, all of your focus is on a single thing. You aren't complicating it with 4 other technologies you don't know and potentially mixing them up in your head, you're nailing one thing.

The next step would be adding another technology - so perhaps after your console app, you move to a console app that grabs some data externally from a database. You might then try to build a static web page - particularly one with no back-end, to familiarize yourself a bit with html/css, and perhaps adding a little simple javascript.

After a little experience in all the separate areas, starting a project that is a more fully formed app with a real front-end and back-end becomes a lot more approachable and less intimidating, and then you can add things like javascript frameworks and go-betweens like Entity or other technologies. As you say, having a solid grasp of the basics helps tremendously.

Good post.

7

u/KappaTrader May 15 '20

Noob here, what exactly is a console app?

12

u/alphabennettatwork May 15 '20

It's an application that doesn't really have a user interface, and sometimes not even prompts for user interaction. The traditional "Hello, world!" app is typically a console application, if that helps.

4

u/AdmiralAdama99 May 15 '20

Completely agree. Coding is so broad and deep. Like any complex problem, it should be diced into small parts.

3

u/magneticlibrary May 15 '20

I am no where near the level that you are at but I have watched tutorials, tried something too advanced incorrectly, watched tutorial again. Corrected that, moved on. Tried something too advanced incorrectly. Rinse, repeat ad nauseum. But it’s progress and I’m proud. I have found the community and tutorials amazeballs. Good luck out there!

0

u/[deleted] May 15 '20

Nah, I'm not advanced at ALL. I am a bad programmer, as described in the end hahaha. But what you're doing is what I tried to say. Learn by mistakes.

21

u/[deleted] May 15 '20

A programmer programs. I can recommend this video, it motivates me greatly:

https://youtu.be/sz4YqwH_6D0

7

u/prabeshdai13 May 15 '20

This hit me harder than I thought it would

3

u/simplism4 May 15 '20

Thanks very much for sharing!

2

u/[deleted] May 15 '20

Oh yeah but have you seen the stork!
https://www.youtube.com/watch?v=0RXOqFhd73Y
jk that was good and was moving

3

u/AsifMojtoba May 15 '20

I needed this. Thank you.

2

u/Will301 May 15 '20

Wow that was good, thank you mane

2

u/forsience May 17 '20

A programmer programs. I can recommend this video, it motivates me greatly:

https://youtu.be/sz4YqwH_6D0

Damn, what a fuckin reality check. I guess I needed this more, than I knew. Thanks!

8

u/bear-force May 15 '20

When you are following a tutorial (on Udemy or something similar):

  • Learn 1 chapter and program something with the knowledge of that chapter.

  • Learn another chapter and use chapter 1 and 2 to create something new.

  • Repeat with each chapter and always use ALL the chapter knowledges.

  • Don't just create what they made in the course, make something NEW that YOU made.

When you finish a course, you will now sort of understand what everything does, or at least know that it exists and you will find it more easy when you need it. The rest is just experience and using it as often as you can.

I'm still learning though, I tried Python programming over and over again and giving up. Now I'm doing the Automate the boring stuff on Udemy. I can follow along with all the chapters and use all the stuff I learn there to do something on my PC, today I sent an e-mail with a Python script using an interactive shell prompt. It's not much, but these are real life scenario's that I could actually use (I do a lot of sysadmin work). Don't cram all the stuff in your head, it's never going to stick. It might seem that it takes longer this way, but learning it just to forget it after 1 day is not really a good investment of time in my opinion. Besides, you just give up because there is nothing to show for your actions, and then you have to start all over again because you forgot so many things. I can definitely agree with OP, integrate theory with practice immediately!

2

u/[deleted] May 15 '20

I know it's the perfect job for me and I know if I push through I will be a successful web dev, I just damn need to stick to finishing my online course and making my first project websites !

Times like this I wish someone experienced would tell me by looking at my progress "push a little harder you are almost there, you gonna earn money buy those things you always wanted !"

1

u/[deleted] May 15 '20

What unmotivated me the most was doing courses And never seen it become something in the "real world". Use your knowledge to build simple things. Picture what you want to do first. Can you create a simple front-backend-database note system? It's a good start, the first step to earn money and buy those things you always wanted!

8

u/CannedShroudTed May 15 '20

I really love the idea of this... But doing it is weird... I start one and then get fascinated by something else in the same field(Programmming). Everything is just so cool!

I really just want someone who'll tell me what to do... I'll put in the hard work

6

u/Ejacksin May 15 '20

Then maybe a boot camp would be a good option for you.

4

u/revisioncloud May 15 '20

I've been trying to "learn" on/off for the past 2 years. And while I could say I became fairly consistent recently because of the quarantine, here I am starting another online class. I have to admit I am stuck in tutorial hell but hoping for that day I finally make the jump.

Thing is, I already have lots of projects I could think of to apply my knowledge to. Our office website is a fucking mess (we're all people from an entirely different background which is a long way from CS). My goal before the year ends is to finally have some legit projects under my belt.

Congrats on your journey!

7

u/DnS101010 May 15 '20

This is a great post. This is the way. Never give up, learn new things, apply knowledge to problems, solve them, repeat.

Btw. being a programmer means more to read and understand than to type actual code.

while(true) { Never give up; Learn new things; Apply knowledge to problems; Solve the problem; }

3

u/[deleted] May 15 '20

Well I'm worried that I'm taking unbearably long time to learn and remember tutorials....is it just me or anyone else feeling the same

3

u/[deleted] May 15 '20

Heck some idiot PAYS me to be a shitty programmer.

Get out there learn by doing. It's the only way that actually works. You can watch a million tutorials or sit in a class for months doing stupid excersises, but you'll still feel like you can't make anything useful.

5

u/kandeel4411 May 15 '20

The clearing your head advice is something I would seriously recommend, like if you are watching a tutorial/trying to understand something and they write an extra line of code you don't understand, don't wait until they explain it to you someday later or until you stumble on it, go directly Google for it and see why and what it's usages are and why this instead of that. Sometimes all it takes is literally 5 minutes.

You will be surprised how much clear the framework/technology feels and how confident you will be in using it.

1

u/ebolamonk3y May 15 '20

Don't do it. It's a prison.

1

u/[deleted] May 15 '20

What?

1

u/GreymanGroup May 15 '20

Can you be more specific about your CRUD exercise?

1

u/[deleted] May 15 '20

Sure. What do you want to know?

1

u/[deleted] May 15 '20

What was it? Is it on GitHub or something you can link to? How did you come up with the idea for it? What resources did you find most useful while making it? Biggest hurdles in your process? Any of the above would be good details to share, thanks 🙃

1

u/[deleted] May 15 '20

CRUD is the denomination for Create, Read, Update and Delete. The basic operations most systems do. I didn't github it yet, but it's one of the most common things on systems, so you'll find on the web examples easily. It wasn't an idea, it was a necessity lol. I'm doing it because it's something a potential job asks for. I already know the basics of Java, so I just searched a step-by-step video on youtube and followed it. Things I didn't understand I went back and watched it again and tried again and again till I get it. Since I was following a instructional video, there wasn't any erros if I followed it right. But I messed up. Missed little details that crashed my program. It happens. Took me one hour to solve a little thing. Hope it helps. Good luck!

2

u/[deleted] May 15 '20

I want to thank you my friend.

2

u/SamBorick May 15 '20

This sounds a lot like how I learned to code. There's some value in trying to skip ahead, getting a little lost, going back to fundamentals, and returning to the advanced stuff a little less lost. I think it helps you figure out what you don't know faster.

2

u/zorbat5 May 15 '20

I am running against a brick wall with a django app I try to write. I came a long way and much of it is just how the app looks (html/css). The python part was quite easy, up until now. Now I hit a wall, I have no idea how to do some things and haven't worked on it for about 2 days... It sucks and want to move on, get it fixed and work my way through. As it is a very database heavy app, when I know how to do this I understand how django talks to the database, then I am able to finish the whole app in a couple of months and be done with it (For now that is. More features will be added in the future but for now...).

It's a frustrating process as asking for help on the django discord is not been taken lightly.. It's a rough and tough road to be walking.

Thanks for the kind words, it motivates me and tonight I will go on, working on this damned frustating problem and try to get going.

2

u/Trubo_XL May 15 '20

Here I am, maintaining build scripts for a project. Not sure that counts or not :p

2

u/[deleted] May 15 '20

Yeah, I agree. What really got me started after learning the syntax and OOP was to do projects of my own, not follow tutorials, but create things that are useful to me and help me learn, things that give me a sense of accomplishment.

At the beginning, it feels like there are 10 thousand things you need to learn, and it is kinda true, you need to know so many different things to create something really useful (json, APIs, csv, file handling, os, command line, etc, etc), but just learn the basics of one thing a day and in a few months you will have a giant toolset.

I don't need to be an expert on every technology, but if I have a basic understanding of a technology, I can start using those basics immediately and then once I need more advanced features, I can get a deeper understanding of it.

I started with a simple python blackjack program that used OOP and that helped me to learn a lot about classes, but then I felt that I needed to learn how to interact with the world outside of my computer, so I wrote a program that goes to my email inbox, looks for a certain email message, then put some of the contents on Twitter. I had to learn about base64, file handling, and both gmail and Twitter APIs, but now I have those tools in my toolset.

Then I started looking at job postings and I saw that most of them had Linux familiarity, so I took a Linux course, but instead of running Linux on a virtualbox like the course recommended, I decided to resurrect my old and almost unusable Sony Vaio laptop from 2007. I bought a SSD, upgraded the RAM and fully installed Linux in the laptop, it now runs like a beauty, so I basically gained a new computer.

Next, I wrote a program that looks for patterns on stocks and posts them on twitter daily. This program gets the data from a broker, updates 200+ csv files with the latest data, then goes through each file looking for patterns and tweets them out daily. It uses like 5 different technologies in it, requests, csv, pandas, APIs, and cron jobs. I would have never thought I would be capable of writing something like that when I was first starting, but here I am.

Now I am working on another project to tweet out stock levels for the day i.e. where a stock is likely to go during the day.

The reason I persevered and did not give up early on my projects is because they are not just some youtube/online tutorial, they are my own projects which I need/would benefit me personally. The satisfaction and accomplishment I feel from completing them is ten times greater than completing any tutorial.

TLDR:

Do projects that benefit you, that do something useful for you, learn by doing, and do for you.

2

u/poger10 May 15 '20

Does anyone have experience with The Odin Project? I'm into my first week and was curious if anyone has any feedback?

2

u/dramakween101 May 15 '20

I tried that for the longest time and I just couldn't. My computer couldn't handle the VM and I can't buy a new one and all your projects are supposed to be on it? Plus their material feels v dense.

I found another course on Udemy and that's really sparked my curiosity and works better for me.

The BEST thing about TOR is the community. They have a lot of information there.

2

u/[deleted] May 15 '20

Thank you

2

u/squishles May 15 '20

An exercise that helps for learning things at the system level like what you describe is whenever you see something in a bit of software you don't understand even if you don't have time to try to write it leave that cooking in the back of your head how you would do that.

keep doing that and one day you'll probably have to do it. I sort of realized at some point I'd just been doing that by nature after I was already in a place people where asking me how to design things. Like where did I learn how to implement x, I saw it one day probably over a decade ago and the back of my head wouldn't let it the fuck go until I figured it out now I get to run around looking like a wizard. there is no the computa magic just happened.

2

u/Admirable_D4D3 May 15 '20

Does anyone know how I could practice in COBOL? I've been learning the basics, but Idk how to proceed or who I could talk to, just a few people on StackOverflow helped me, but I like the community feeling :(

2

u/bjr816 May 15 '20

I needed this. I'm two years out of college and I haven't experience a developer job yet. I need to find the motivation to refresh myself and keep learning so I can make project and apply. I believe its cause I'm lazy and lying to myself saying "This week I'm code for an hour, then next week try two." and I never really do it. I've been reading some books/articles to stay motivated and hopefully now and after quarantine I can push myself to code. It's always been interesting to me but yet stressful so I just give up at times and I hate that.

2

u/sirgengar808 May 16 '20

The ten thousand hour rule really does apply everywhere

2

u/PsychoticallyAmiable May 16 '20

This thread is amazing so far, thanks a million for sharing.

2

u/JJakk10 May 16 '20

Yeah the key's patience and practice (through projects). I remember that when I first started I was just like you, I wanted to build huge complex apps, and skip all the basics. Eventually I found my way, but yeah, coding's not about immediate results.

2

u/archerimagine May 16 '20

Few things to note when your are learning from tutorials.

  • Sometimes you will not understand some topics, like yesterday I was not understanding the port mapping concept for docker. So in place of stopping just there, immediately research on the topics, read some blogs, follow some youtube video, and finally write it down on paper.

  • While doing the above step, keep your focus do not go on clicking ever other links or video on the internet, just research enough to get the answer of the question and not beyond.

  • When learning from tutorials, generally they make multiple small projects, always try to combine multiple of these small projects and re-implement into a big projects, like for web development, take a header nav bar design from one project, combine with showcase from another, or create a footer from another, just combine things, this combination also enhances the mind.

  • Always revisit the old tutorials, when you learn new things, you can see the old learning with new eye and learn something entirely new.

  • Communicate with others use reddit, twitter or any slack, discord, IM to get your doubt cleared, find answers to you question is also software engg.

  • Always read the top voted answers on stackoverflow, it give a different perspective into the same learning.

  • at the end, have patience and practice, practice, practice, there is no substitute for practice.

2

u/[deleted] May 16 '20

It's just time, practice, and perseverance.

You start with one tiny thing that is confusing and seems useless. Then you learn another tiny, useless and confusing thing.

Eventually, the tiny useless and confusing things start connecting. They start to make sense; you learn how to use them. They become useful. Then, you combine them into bigger things.

The things that were once tiny confusing and useless turn into things that are meaningful, understandable and very useful.

2

u/[deleted] May 16 '20

badprogrammer, my new username.

2

u/[deleted] May 16 '20

Thanks!

2

u/__rusmir__ May 16 '20

The famous desert of despair, glad you conquered it... Here's a bit more explanation: Why Learning to Code is So Damn Hard

2

u/ScienceCorgi May 15 '20

I got that wake-up call when I started my first job in a software house. I have a degree in Physics, but I studied some languages both in university and by myself.

What I learned in that year at that job was that I believed I knew how to program, when I actually just knew a bunch of languages. It was a really powerful realization that put me in the right path.

1

u/SponsoredByMLGMtnDew May 15 '20 edited Jun 01 '20

LOOKING FOR AN OPENSOURCE PROJECT TO BE CREATIVE IN?

Roughly two years ago I started an open source project for people to contribute to called The Really Annoying Directory

Live Page: https://reallyannoyingdirectory.netlify.app/

Github Link: https://github.com/DevvitIO/ReallyAnnoyingDirectory

The core idea of the project was to give people a silly front-end centric project that was easily approachable for just about anyone with any skill level in Web Development to get their feet wet on github. I'm a self taught developer and this is the project I would've wanted around when I was getting started. All skill levels are welcome so if you are experienced and think the idea sounds fun you’re more than welcome to make a page.

Even if you don’t really know HTML, CSS, or Javascript yet, there’s a template in the directory structure that you can use, or if you need inspiration about what to put on the page, there’s a lot of examples already live you can look at.

TLDR instruction: You make a webpage, and put it in the directory. The theme of the project is just anything you really want to put in.

I stream maintenence of the Project Every Friday at 1pm-3pm est

1

u/black-eagle23 May 15 '20

I'm at chapter 7 of eloquent javascript, and it's really frustrating and I don't understand and don't have any clue how code works. May be I should take your advise and start coding my own projects. Overall, thank you for your motivation! This times I really need it.

2

u/donfontaine12 May 15 '20 edited May 16 '20

I'm doing Chapter 7, too. The robot exercise. Eloquent Javascript isn't for beginners. I know a little Javascript but It isn't my first language. I have to refer to Mozilla's MDN Javascript reference each exercise. This book isn't easy.

Did you understand each chapter? Did you complete each exercise? How close is your solution is to his? Which chapter was the 1st chapter you didn't understand?

I'm having problems, too. I read Chapter 7 twice and I'm entering all the code along the way. Breaking down everything I don't understand. I understanding things a little bit better now but if I can't finish the exercises, I'm going back to read Chapter 5 and up.

I'll probably have to type up the code ten times or more to get the gist of what's going on. Sometimes I skim through the chapter reading without typing up any code. This is the book will confuse me fast if I don't stop and put more effort into it.

2

u/black-eagle23 May 16 '20

The first chapter I didn't understand was High-Order Functions. But I read it again and again, code it, experiment with it. Now I can easily understand, what filter, map and reduce do. Similarly I don't understand The Secret Life of Objects. I don't get it how his Matrix works, but I understand how his Matrix iterator works. Even though I don't fully understand 6th Chapter, I was curious what is Project Chapter. And it was really frustrating, I don't understand how any code works in this Chapter.

Regarding exercises, I do all of it. If I tried my best and can't solve it, I just look at the solution.

But I'm agree with your opinion, this book is really hard to "conquer". But I hope it would worth it. I'm very curious to get to the Project Chapter where he creates a game. Unfortunately I should read again chapter 6th and 7th. I will refer to MDN more often as you do. May be it will help me.

Thank you, for letting me know that I'm not an idiot, who can't understand a simple book. I hope we will not give up on this book and on the programming as a whole, and we will be a good web devs soon. I wish good luck in your journey!

2

u/donfontaine12 May 16 '20 edited May 16 '20

I've read Amazon reviews about Chapter 5 and up is when things really get complex and it wasn't beginner friendly. But this was like the best selling book on Javascript so I wanted to try any way.

And right now, it's getting tough but I don't want to give up yet. I stopped coding for 2 weeks after reading Chapter 7 because I was confused and I just read it again yesterday. After I completed the exercises for Chapter 5 - Higher Order Function, comparing my code to his, I realized how thick my code looked and his being as few lines as humanly possible. That's when I knew I had to refer to a Javascript reference since I wasn't familiar with all the methods.

Like for his Flattening exercise, he used reduce and concat, which are array methods. So when the next exercise comes up and it mentions, we're using maps, I'll go to Maps in MDN and read it and all its methods to figure which ones I can use to solve the problems.

Also, I had trouble with the arrow functions, r => r {blah, blah, blah...}, which I didn't even know the name of. I found it watching a Youtube video then I read arrow functions until I got it.

If you don't understand the Matrix, maybe take a day, a week or how ever long to doing simple Matrix tutorials until they become second nature. It may take a month to finish 1 chapter, but you'll understand it better. If you have trouble with a specific question you just need a clearer explanation on, post it to StackOverflow, the Javascript subreddit and etc. Post the same question on multiple websites and forums so you can get a lot of answers and go through each one. There are really some helpful people out there and it's only a click away.

If you realized it's still too hard, you may want to do a beginner's tutorial for Javascript so you can build a firmer foundation. Because you could finish reading a chapter and barely understand any of it. You don't want to go 4 or 5 chapters you don't understand because they build on each other.

This book is really kicking my ass but if I finish this book, I'll know it'll make me a better programmer. The thing with programming, you'll have to put in a lot of work to finally to get it to click. I remember reading a post a few years ago about how a programmer got really good quick and it was treating programming like an exercise at the gym. You don't understand concat array method, you do 10, 20 or so reps on that specific exercise until they become muscle memory. You type up a concat example, delete and retype again, again and again. So next time, that problem shows up, you can bring it up with a snap of a finger. I never took the advice until I met this book, so good luck and happy coding.

2

u/black-eagle23 May 16 '20

Thank you for your support. I very like your example with the gym and I try to implement your advices in my workflow. No one said that to be programmer will be easy task. And there are a lot of work to do to become one. I wish you best luck too. :)

2

u/donfontaine12 May 16 '20

You're welcome. A year from you can be a great programmer. Good luck.

1

u/WearetheAI May 15 '20

Thank you.

1

u/[deleted] May 15 '20

Great advise. I’m an advocate for getting your hands dirty and doing the work. Even tho I’m not far in my journey. I do know I’ve learned a lot more from coding then reading or watching videos. Sure, doing that stuff can plant the seed but doing projects is where it all starts coming together. I will say tho finding projects can be a challenge in and of itself. Thanks for the post!

1

u/ivanjxx May 16 '20

The thing is u cant always know everything. Using google and stackoverflow is always acceptable.

1

u/__zaris May 15 '20

That was really motivational pal. Thank, seriously!

1

u/atot20 May 15 '20

Really good advice.

1

u/CowboyKm May 15 '20

Very inspiring. Thank you friend. I could say that this happened to me some days before, when i realised the importance of using git and GitHub. Before i did not want to bother with them. Thought, who cares?, I want to focus on studying and learning how to code. But they are very useful and essential.

1

u/[deleted] May 15 '20

Thank you kind stranger.

1

u/[deleted] May 15 '20

Glad that I got to read this really motivating message during a time of coding despair. Thanks!