The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
Вставка
- Опубліковано 15 тра 2024
- Is there something special to how programmers think that makes them good at what they do? In this video I detail how software developers think that allows them to solve complex problems and build robust applications.
🏆 * Paid Coaching *
Interested in joining my paid coaching program and getting mentored by me to get your software development career started? If you consider yourself an action-taker, you're ready to invest in your career and you're committed to putting in the work then book your intake call at andysterkowitz.link/call-00063 - Наука та технологія
Do you have a better sense of what it means to "think like a programmer"?
Code is like a tool. You have to think like a carpenter who uses a hammer to nail wood
Definitely.
I think most people who are just getting into programming rush to the keyboard too soon and just want to write code as they go. They seem to underestimate the value of good old pen and paper (or dry erase board) to actually plan out your program and figure out what you want it to do and how to do it before you even get to the computer. They live by the motto of “Hours of coding can save you minutes of planning.”
yes now that you have explained. it makes sense never thought about it in that way, scientific method
@@RR-gm7qj The problem is, that only works for people who can stabilize early in the work process and work with the existing structures. However, what are the ones to do who are stabilizing late in the process and tend to adapt to the progress of the work being done?
I can tell you from my experience that even though I may have planned something on a project, the final result most of the times didn't have anything even remotely in common with the initial concept. That's why I have started to get at it from two directions: The superstructure (i. e. any interfaces that I want to expose) as that remains rather stable, and the elemental operations that need to be performed to receive certain results. The intermediate parts are usually established somewhere in between as they tend to shift and evolve a lot before the project is finished.
In my opinion, programming is 20% code, 80% problem-solving. If you cannot solve the given problem in your mind, you cannot write the code for it. Therefore, think BEFORE you code!
Amen!
I think solution, therefore I code!
Beautiful
"If you cannot solve the problem in your mind..."
What does that mean in actuality?
Is it me thinking of a way to be reminded of a task so I write a short script to my terminal?
What does it mean?do you have a clear case? Can you elaborate like you were talking to a five-year-old.
Thanks!
@@jhde9067 Being an Engineer requires being able to design highly scalable complex systems and solving problems. Actually writing code is just an artifact of the design. Really, coding is the easy part. Design is the harder part.
I learned that a big part of programming is identifying the problem and asking questions, even the wrong questions, until you arrive at the right question that will lead you to a solution.
I'm a chemist that is transitioning to a programming role where I work. After fixing several iterations of the same issues over and over again, I came to the same conclusion. On my whiteboard at my desk, I wrote: "The key to solving a problem isn't the solution itself; it is understanding the problem in the first place." Now I ask questions, and everyone gets mad at me. However, I'd rather ask a lot of questions and code something once than go back and forth a hundred times.
I'd recommend reading up on active listening techniques, they will help you to get even more annoying - well they won't as you will get better on deeply understanding the problem with less iterations ;)
But yeah, good software always follows this order in some way.
Analyse
Plan
Implement
Test
Repeat
@@bobbyrinehart1299 It’s certainly the case that some people will take offense to questions being asked, because it can certainly reflect poorly on them. Questions can imply that the product manager is doing a poor job of communicating the expectations or purpose of the project. They could suggest that earlier developers did a poor job of building a sensible architecture, so that it’s confusing and difficult for somebody to jump into it.
People getting offended at questions is probably a sign that the questions needed to be asked.
Yeah the foundations of logic. What are the fundamental axioms ? Are they relevant to the question at hand? Am I making the right conclusions based on those axioms without violating any of the fundamental laws? Etc. Physics is great for that
@@bobbyrinehart1299 Yeah the foundations of logic. What are the fundamental axioms ? Are they relevant to the question at hand? Am I making the right conclusions based on those axioms without violating any of the fundamental laws? Etc. Physics is great for
Major Points / Summary
1) Know what programming is. It is writing code to solve a problem. To solve problems you need to think more methodically. (Orderly and structured thinking. e.g. like the scientific method)
2) Breaking down problems. Break a hard and complicated problem down into multiple easy and simple problems. (Decomposition)
3) Think algorithmically. Think about turning the solution into a a recipe. (simple step by step instructions)
Thank you 💓
thanks pal
Thanks bro.
thx
arigathanks 👍❤️
What really changed the game for me was actually planning the finished project and then working backwards to its most basic parts of that project. Really makes things much simpler and easier to manipulate. But you gotta know the tools and ingredients at your disposal. Once you get that down, it's not bad at all
Planning is key. The adage is minutes of planning can save hours of coding...or something like that 😊
How to eat an elephant right? One bite at a time.
@Alek WolfI think that what he OP really meant was to start with the deliverables and a deadline and work your way planning backwards from there. You may even start creating an empty setup.exe for you application and writing the user manual first. The user manual and a mockup UI is a great way to get stakeholders involved and reacting to your solution.
@@AndySterkowitz agreed
I agree. I always thought projects are done this way, until I joined my current organization 4 years back. I have been trying to explain for the past 4 years to begin with the end on mind.
Now I get why Math is closely related to programming. They both contain the basics essentials of deep problem solving and algorithmic structuring of solutions.
Because programming is a direct descendant of theoretical math. Programming was a technique mathematicians used to "apply" their hypothesis in the real world to solve problems. The math was always worked out first, then input into a machine, then the math was twerked to improve the results.
Programming IS math, its just that you organize the "math laws" in programming the way you want them to work together.
Hello, I'm a 14 year old and just trying out programming because I'm confused on what I actually want to become and this is the most interesting career path that I could think of, I started codecademy in python, but I have one problem, I suck at math and I don't think I am a very good problem solver, does the ability to problem solve improve overtime or am I never gonna get better because I don't want to decide on this and just realize that I can't keep up with everyone else, advice is appreciated, thank you!! :D
@@TitaniumTronic As long as you practice and breaking things down to small chunks and think it through before applying it you'll improve over time. As for how good or bad you are in math, you'll be fine so don't worry about it as long as you know the basics you'll improve over time :)
@@myth5002 Thank you!
The main thing is to not be intimidated. Take on tasks you may not be able to do. You get stronger when you struggle.
You know that you think like a programmer when every decision in your life mentally starts with "if this than that result else this other result" which has it's pros and cons
This video is spot on, problem solving and decomposition are so crucial but so hard to teach people. I learned problem solving in my early 20s as an aircraft mechanic in the Air Force. I've used these skills for more than 20 years in programming, operations, support, management and in many other parts of my programming career.
🔴 Please make a video about: When to know is enough learning, and get ready to take the first project as a freelancer
In my opinion, i think the better approach would be to look for the projects that your present skill can solve, not really waiting to get to an hypothetical entrance point into coding. that way you can also be gaining some confidence as you learn.
He already mentioned that many times!
Learning never stops. Start doing projects alongside learning
I think you'll never know enough especially with web development. So what I did was just start building projects or rebuilding projects and then tweaking things adding new stuff to it. That's how a lot of pro learn it but a few would want you to find your own path.
Simple answer! Never, it will never be enough!
I love the small parts breakdown idea. User stories were something I learned at my bootcamp and it's super helpful in getting me started on any project!
Awesome...
You speak the truth Andy. Once you step away from tutorials and start building stuff all of the points you just made start making sense.
Love to hear that! This has rang true from my experience....theory is important to learn but is difficult to grasp without reference experiences.
The best math subject to study for coding is formal logic. It really helped me understand how to solve problems using a logic structure that's easier to code later.
I agree with the video also, understanding the problem before you start programming is crucial.
My favorite math course for CS and the one that was most useful was discrete math
Formal Logic? Do you mean the propositions, premises and conclusions kind of logic?
@@imt3206 Yep, that's the one.
Formal logic and symbolic logic are courses from the philosophy department.
Yeah the foundations of logic. What are the fundamental axioms ? Are they relevant to the question at hand? Am I making the right conclusions based on those axioms without violating any of the fundamental laws? Etc. Physics is great for
I learned something recently. Import code of a website template with CSS and JavaScript files included into one window of your text editor. Now start typing the code line by line into another window using the template as your reference that way you learn what every single line of code is doing. You can even rearrange the code to see if you end up with the same results. Hope this helped someone.
Thanx
*Edit* A great way to start programming. I have always been amazed at the vastness of code libraries and frameworks that now exist everywhere. Its a big field! Have fun :)
@@jsmythib how else can you enter code besides "manually" genuine friendly question not a challenge
@@punkisinthedetails1470 It must of been late night! :)
How do you do that ?
This is sooooo helpful. I started a computer science degree ten years ago and was falling behind because I didn't understand these approaches. I'm trying my hand at programming again and I want to thank you for helping me see this now. I think I may have a chance with these tools
I feel you touched on something very true. Programming felt tough at first but, with the added knowledge of discrete math, you start seeing how it is it is to solve problems when you take the time to structure and create algorithms, pick apart the problem into small bits and then it s just watching your syntax depending on the language
"When working with security, I use Discrete Mathematics. Yes, I am a discrete mathematician." -- Art Benjamin
Nice of you to drop in a new option... if coding fails, there is always alchemy! lol. Thanks for the videos Andy, they keep me motivated!
I’m from a Linux background and just started programming 24hrs ago and realized that I needed to break the problems down. I thought it was just me and I found it easier so I’m glad you said this
I have a physics background and just got more serious about coding, and indeed noticed that it is a lot more similar to math and physics than I initially thought. It’s high level problem solving!
I thank you a lot for everything you teach, I am in my beginnings as a self-taught software developer and by putting into practice what you say I see that it works and gives me confidence to continue without fear. THANK YOU A LOT! see you soon!!
This was gold. You combined the elements of thinking like a programmer and made gold. Not impossible after all! Subscribed.
Thanks for the video. As someone who has switched from a career in science to software development, you are spot on about the similarities with the scientific method.
I can definitely see how this would help me. I will now incorporate using a notebook to write my steps down and brainstorm before just diving in to the code and guessing on what to do. Thank you!
3:00 "That didn't work - WHY didn't that work?" is the key.
Every mistake or mishap holds very valuable information. People who only want to make a mistake go away, miss the lesson this mistake teaches them. Whatever led to the (unexpected and undesired) outcome was a set of logical circumstances, not malice. If you make the effort to reveal the underlying logic and understand what caused the effect that you just observed, you'll learn a lot from it.
Great video! Was starting to get into programming as a teen, but unfortunately gave it up to pursue other fields of IT like network administration. Now that I have those goals out of the way, I've come back to learning how to program again for my cybersecurity goals and this provided some great insight! Subscribed and can't wait to watch more.
I needed this. I failed data structures last semester and I'm coming back with a vengeance this fall.
You got this!
Don't worry. You do not need to know how to build a linked list, build quick sort algorithm from scratch for example to survive as a programmer from 2010s. Nevermind. Most modern programming languages have all those data structures and algorithms built-in. For example, in Javascript, you can seamlessly create a linked list just by using Javascript array as the array is dynamic by default.
maannn. Now I am doing data structure in this semester 😂
Loved the video. I really appreciate that point made about how to take the next step beyond the syntax of a language and begin solving problems. I’m currently at that point now with python.
Thanks for the great vid. Looking forward to next ones
Thank you for this video. This has helped me out so much not only in my programming life but also my daily life.
I've been programming for decades so I thought I could just chip in with a small tip. Don't know how I ended up here exactly but anyway.
First, realise that no one can make something good when they don't understand the problem space. If you never worked on a certain type of problem before, you are a beginner in that area, no matter how many years you have programmed. Don't fall for the UA-cam videos where people write perfect code from scratch on hard problems, that never happens and you have no idea how long they spent working on that code before making the video. My work method in these cases are as follows:
1. Make it work
2. Make it better
3. Repeat
It's important to as quickly as possible get something working. It doesn't matter if it's complete crap. When you reached that point you understand the problem better, what you can improve, what you need to rewrite or discard to solve the problem better. Then repeat that process until you're satisfied with the solution. Experience makes the process easier of course and what constitutes a hard problem, but what never works is just thinking about how to solve a problem, that's part of it but until you have something working you don't know.
I agree
It's exactly how I approach programming. Been doing it for over 10 years, and found that my first "draft" is always messy, but it works and it really helps me think about the problem from different angles. Then polishing comes in, until I'm happy with the final result.
Brilliant!!! Slot of people would say that you think too much, but honestly I think you're hitting the mark every time.
Awesome timing on subscribe+like request from you Andy, I just clicked both buttons and then hear it. Just Wow.
Great content by the way! Love your vids.
I was honestly just thinking about this lol. Thanks for the vid Andy!
Cheers!
That last piece of advice was exactly the advice i needed to hear. I was on the verge or thinking thats how to go about these programs but without guidance I couldn’t be sure , thank you
Shout out to You Sir Andy Sterkowitz! all the way from SOUTH AFRICA🇿🇦. You Sir are brilliant! Everything you have just said makes a lot of sense!
Your delivery is top-notch. Thank you.
This content you are serving up is gold, sir! You made gold! 🏅
Thanks for the video Andy! Really agree with all you said. I think that's what makes programming really fascinating.
I think that being a musician, having written some of my own music, has helped me tremendously with learning to code, and actually coding.
This, and other way around as well. Learning programming has made me a better musician and composer.
@@CptNelson Piano and Guitar here :D and TRUE
Right?? It goes both ways. I think it has to have something with us loving to build things and that both are about transformation of data, that in music you transform a certain musical structure to another.
im a musician too, not much a composer, I'm more into improvisation but I really like chord tones so not mindless pentatonic. I hope this can help me..I'm about to start learning code and I thought if what I did in the past could help me
This channel and this advice is the perfect link between all the concept videos and tutorials to practical application of that knowledge. Your advice is helping me out a ton, love the content.
me too here Dickson.
good video
I absolutely agree to your thinking! I wish more people know this!
Data Structures and algorithms helped me a lot with my thought process
dude, do you have a podcast? I find your videos very informing but not overwhelming. You give just the right amount of information to take in without overloading my head haha. get that podcast rolling!
Apreciate the concise manner you've presented the core concepts - 1) It's about problem solving 2) Holistic vs detailed approach ( big picture vs. 1 big problem = number small problems ) 3) Computers are dumb - so you must be pretty sure what you're telling them to do exactly - as oposed to what you want as a end result
Very good tips. To enhance the skills, I'd suggest writing the simple app you come up with in one language then write the exact same app in another language. For example, a ToDo app in JavaScript and then also in PHP. This will really reinforce your understanding of the basics of thinking like a programmer.
Thanks for the info! I'm new to coding and look forward to watching more of your videos.
When it came to think algorithmically and you compared it to creating recipes, I went out of full screen to subscribe instantly. Then I realized I already had... :D
Great input Andy, helps a "young" programmer so much!
Just found your channel Andy, love your videos!
This is the reason why I decided to become a programmer. It is who I am. I wish in school they would ask, who are you? instead of, what would you like to become. I still got some road ahead of me before I get there, but I am happy doing what I am meant to do. Thank you for the video.👍
I got about halfway through your video, opened up Pluma, and am having a huge brainwave about the type of program I want to develop.
Thanks for talking about decomposition. It's getting Me to think both micro and macro.
I've nicknamed the categories "moving parts" which are the raw technical components and "shiny parts" which are supposed to appeal to the user and UI.
Anyway, I'm rambling. Thanks a bunch!
I do this all day, every day, and I enjoy my job. You hit the nail on the head.
In a nushell you describe perfectly what it means to be a developer, best description I’ve heard to date
My first app was a simple program that drew 3 dimensional surfaces (first one just drew a parabola using lines) on a TI-83 in high school. I made my first useful app on a TI-83 that solved the quadratic for me in college. Never went much further than that (on my own at least, just various courses otherwise). I think I should study up and switch careers (currently restaurants). Thanks!
wow Andy... i like what you just put out... looking forward for more content from you
I'm a total beginner and I'm glad you mentioned important steps to take. I had always thought the computer knows what I want it to do, now I'm exposed and can't escape but humble and learn to code. I need to know a little more from you, Andy. I'm desperate, I want to create an app for the school for teachers in my country but I have no idea how to start it. Your tips kinda moving me in a direction I wanna go right now. Thanks bud, you're awesome, just so you know.
LOL The computer knows what you want to do exactly as much as the pencil knows what you want to draw, or the brick knows the house you want to build!
It's amazing to think - all this machine does at the core is move around binary digits and perform simple logical manipulations on them, and we've built everything off that, piece by piece, up to a system where I can send this message across the world.
A bit like that simple aforementioned brick, and wood plank, and iron girder, have built up enormous cities.
Talking aloud to a random object on your desk can be really helpful to decompose and solve your problem.
I share the same way of thinking. I never jump into coding at first, sometimes I spend 60% of exam time figuring out everything and seeing through the problem. Coding comes easy if you know the syntax, it's just the way to express your thoughts to the computer.
Thank you! I’ve just found your channel and it really caught my attention 🤗
9:42 Great point. Computer doesn’t do what you want. It does what you told it to do.
And children do neither
@@johnjordan3552 Programming humans is infinitely more challenging than programming computers, as challenging that might be.
Good video 🙂👍
When I listen to you the method "reduction" from theoretical computer science pops into my mind, like even if we are solving various different problems with computer programs, lots of them are just variants of the same basic problems like finding a route while minimizing some kind of costs, sorting something most effectively, ...
Another thing which I think is very important is switching perspectives. Because even when you develop a program completely by yourself, that means you know everything happening there, you must know that there are scopes and that an object, whatever it is, doesn't know everything happening. So you need to give it the information it needs, you need to think about how the information changes, how to assure that changes get everywhere where there are needed (referencing correctly).
Another key skill, which I cannot surely say that I already learned it as I am only starting my career is getting out from the microcosmos of solving problems in one programming language to developing whole software, which will need more than one programming language, additional software etc.
great vid btw, as a starting intern programmer im sure ill learn more along the way on how to warp my mind into every scenarios desired response.
This is gold, honest. Very simple and yet effective. Thank you.
Glad it helped!
this is so well explained, thanks Andy!
Thank you sir. I was struggling for longer period. Now I'll try this method.
Excellent video brother, for those of us who are JR | Entry level I think this information is very useful and in which way we are realizing this while we gain experience
create checklist on the tiny part helps a lot, it helps you to not get overwhelm by how big the project is, and its really help you track how much you've done
Thanks for this video. I'm currently going through working on python. I"m coming up with problems I need to solve. I work as an editor and creative. I'm coming up with automation to help me organize the footage and rename files automatically to where I don't have to do things manually. I structured my naming conventions so that way when I run the automated scripts I don't run into problems.
I tend to see problems as a whole like you were talking about the thing that helps me change the most is just picking a starting point once ik where I’m going to start from then adding the other things into the plan step by step and looking at individual pieces is easier.
EXCELLENT ADVICE! THANKS SO MUCH FOR SHARING ABOUT YOUR FIELD OF EXPERTISE! YOU GIVE A PRETTY ACCURATE IDEA OF WHAT PROGRAMMAING MEANS AND HOW PEOPLE MUST GO ABOUT DOING IT!.
Great analogy with science behind the scenes. If you do learn syntax of programming language, its the same as learning periodic chemicals table. Its good to know it, but solely knowing every piece good enough won't tell you alone what to do with that. And thats where methodic thinking and problem solving comes to life. Without them - you are destined to be an executor-only, which will sooner or later be too short.
Awesome Video definitely gonna take some of this advice when i start my next project
It is true, not memorization, but application and practicing the concepts. Thank you.
This really helped. Thank you!
Thank you Andy help me a lot, cheer!
"need people to connect" made me chuckle , facebook is a giant cess pool. So glad i havent used that in years. Solid video
This was helpful, thank you.
Great Video, This Was Helpful!!
First video I've seen on the mic. Nice vocal mixing!
You are the most honest software developer on UA-cam thank you I watch your videos since 2019 thank you
Nice.
You have my like and subscription.
Keep up the good work.
Thank you a lot for this video ! I'll try my best
I've always thought logically about many things. So computers were perfect for me long ago, since I always take things apart in my head. My problem is with programming, is I didn't know where to start. After 30+ years of living after childhood, I think I got it. So it's videos like these that help reinforce how it works. Building blocks help build a program.
Great video. I would add 'Pattern recognition' which means for me a similar problem is solved by someone. The solution can be re-used with modifications if needed.
One thing to add is thinking in terms of delivering a product to a customer. Because that's ultimately what we get paid for. That may sound obvious but for me it never really sunk in until I got my first proper dev job and the first thing we newbies were taught was not some fancy framework or coding practices or anything technical, but how the whole industry and the particular business works. How we interact with clients, how we make sure their needs are met and how what we end up doing is often decided by politics and the wish of the customer as opposed to what we would most like to do, or even what makes sense.
It's also very important to practice team work, many beginners including me make the mistake of learning to code, doing their own little projects etc and not doing any serious team work. That can really cause a lot of frustration when you find out that you can't just sit in a corner and code. You have standup meetings, pair programming, demos, retrospectives, sprint planning etc, or even just the little coffee break chats, these things are a much bigger part of being a programmer than most newbies realize. Which is why the stereotype of the quiet, socially awkward guy isn't the best fit for a programmer in the real world, in fact I know very few programmers who are like that. There are many introverts, of course, but nothing like in the movies.
Definitely. Domain knowledge.
And, to me, that is in the end the most rewarding part-- knowing that what you're doing is helping people in their everyday life do something easier, better, and more profitably because you gave them the tools to do it.
THANK YOU!❤ its easy to get bogged down especially as a beginner. My biggest issue is trying to think of a project to do. For reference i am at the transition between beginner and intermediate.
anything that i can think of that i imagine i would enjoy. I'm trying to make a platformer battle sim (basically smash but with my own characters which i think are extremely creative and cool) in python as a beginner. so funny trying to understand the language and failing miserably in my every attempt lmao
Now I know a couple things i enjoy in a game and that's interaction under some rules (that's why i love platformers and sandbox games. if thing = this then walk slow, if thing = that then jump higher). So I will try to understand how and implement it to all of my projects
So yeah, try that, find some stuff you like in games and implement them. Consume and produce. It's always the best inspiration. Doing what you love. Good luck with your stuff o7
Thanks for the vid, very informative.
This is absolutely what I’m trying to do, develop a crazy imagination mindset when programming and solving problems, creating things. 💪
Thank You very much Andy!
Peace ✌️
I have actually been looking for somebody just like you. This is exactly why it turns out, coding is working for me. I'm beginning to get there. I think I'll be reaching out. Hope you're still active. Just found you.
Thanks for sharing all this valuable knowledge.
I've written programmes as a hobby for 4 decades and it is the problem solving that has always been why I do it. Syntax can be irritating but, if you've taken the time to work through the problem being addressed and worked out the steps needed to arrive at the solution, the syntax becomes (quite literally) a detail. I began programming when it was totally normal to work on paper before ever going near a key board (or, I kid you not, paper-tape puncher) and to write the entire programme in correct syntax on paper before, very carefully, entering the instructions to the computer. You didn't even get to consider syntax until the plan was concrete and fine-grained. I personally still find it amusing (although admit to a little envy) when I see people speed typing, racing through multiple auto-correct options, and debugging programmes.
Thank you very much for this I’ve always had issues with different bugs while making my projects
I’m a self-taught JavaScript young developer😂
But with this I hope I can get better thanks so much
Good Stuff ! Thank you SO much !
I really appreciate this, it made my mind more clearer.
this was a great intro, thank you... my biggest concern is how do I know what tools or methods to help accomplist everything on my "recipe" for example... in order to solve a particular or smaller component part problem, how do I know when to use a function, or an array, or start an edit session... I have no problem with syntax, but knowing:
a) what kind of programming tool to use (when and where)
b) how to deploy it (when do I use an insert cursor, when do I use or create a function ?
Thank you Andy! U're Amazing!
2:42 it is possible to create Gold from other elements in a lab(using nuclear fusion or fission) but you get only small amounts, its extremly expensive and the gold is would be radioactive for a few hundred years.
When I get some funky problem in my code. I some times panic and go shit! I'm going to have to restart... Then I throw away that panic and say "I will solve this problem". When I throw away that panic I start to think alot better. I was in the CSS and Javascript portion of my webpage and nothing was working. I went all the way back to the HTML and found the problem laid there..... Issue solved but it would never had happened if I didnt start breaking things down and looking at each brick I placed in my wall so to speak. I agree with this video 100 percent. Feels good when you solve something on your own.
This the best vid I have ever seen on this subject.
This is great. Thinking more critically is the key.