r/learnpython • • Mar 27 '20

People often say "Do some projects and you will improve your coding".But how do I improve my problem solving abilities?

455 Upvotes

108 comments sorted by

224

u/fiddle_n Mar 27 '20

Really, the same way. If you do some projects, you will be presented with problems and you will need to think to come up with solutions to them. The only thing I would add is to learn Python theory simultaneously, so that you are aware of the tools available to solve the problems you might have

42

u/Robbzter Mar 27 '20

This! Problems are everywhere, and by doing projects you'll need to solve them. They'll also get more complex with more advanced projects, so the learning courve basically never ends. I've had to optimize one of my apps for better performance and minimal CPU usage recently, which I've never done before. It was really interesting and fun, and I managed to get decent performance in return!

25

u/fiddle_n Mar 27 '20

Yes, it's always good to do that! The Advent of Code series (https://adventofcode.com/) is really good for that. They give you a problem, and they often give you a large input. So it's possible to create an inefficient script that would simply take too long to run, and it forces you to think about how to optimise the problem.

4

u/Robbzter Mar 27 '20

Really makes sense. Getting used to poor practices is easy as a beginner, because the negative effects on performance is hardly noticeable on small beginner projects. I am 99% sure this is also part of the reason why Python is often said to have terrible performance and so on. It's not C or Rust of course, but it's fast enough for any small to medium scale application in my opinion, and performance can be improved quite a bit by using modules like Cython (or libraries that make use of it like Numpy). Same with Kivy. It's not Java or Kotlin, and Android Studio doesn't support Python for Android, but the performance a lot of people seem to complain about are actually their own fault.

2

u/FriendOfDogZilla Mar 28 '20

Is Instagram small or medium?

2

u/Robbzter Mar 28 '20

It's more of a beginner project. But you can create a working search engine or video player for reddit if you want something more advanced ;-)

3

u/FriendOfDogZilla Mar 28 '20

Literally made me lol, thank you. 🤣

6

u/[deleted] Mar 27 '20

Fully agree with you.

Learned Tkinter a while back by a course but got to be a pro only doing a couple of projects.

The projects required a lot of creative skill of manipulating the problem-algorithm for better results rather programming skill - although it is essential as it can save a lot of time instead browsing bunch of stackoverflow threads.

4

u/[deleted] Mar 27 '20

i was attempting to learn how to make a UI with multiple pages using tkinter, and i tried at least 3 or 4 ways of creating it.

4

u/CWFifer1 Mar 27 '20

Do you mind sharing which course you used? I’ve tried a ton of YouTube tutorials and none have really had what I’m looking for

1

u/[deleted] Mar 28 '20

https://www.udemy.com/course/python-tkinter-masterclass/

This is the course I went for and I'd suggest to go for any popular course in Udemy but learning the thing through a project will make it better.

3

u/itsonlybarney Mar 28 '20

I'd love to know what course you followed. Got a project I would love to have a GUI for, but every tutorial does things differently. TIA

1

u/[deleted] Mar 28 '20

5

u/stigmatas Mar 27 '20

Do you have or know of a good location of an up to date cheat sheet for 3.x python?

EDIT:
https://perso.limsi.fr/pointal/_media/python:cours:mementopython3-english.pdf

2

u/meanderingconquest Mar 28 '20

Agreed. Learn the tools that are available to you in Python and that will expand your problem solving capabilities.

0

u/baubleglue Mar 27 '20

Python theory

What is it?

2

u/fiddle_n Mar 27 '20

Learning the language features of Python. Knowing what the language has to offer you up front helps when you are trying to think up solutions to a problem.

1

u/baubleglue Mar 28 '20

theory

A theory is a group of linked ideas intended to explain something. ... They can be tested to provide support for, or challenge, the theory. The word 'theory' has several meanings: a guess or speculation. a law about things which cannot be seen directly, such as electrons or evolution.

1

u/fiddle_n Mar 28 '20

As your own paragraph says, the word 'theory' has several meanings. This is the meaning that I intended, from dictionary.com:

the branch of a science or art that deals with its principles or methods, as distinguished from its practice, e.g. music theory.

1

u/baubleglue Mar 28 '20

Python is not a branch of science or art. Python is a tool, there is no "theory" in it, as there is no hammer or spoon theory. If you google "Python theory", there is one video and all other results: "Python's design philosophy", "Theory of Computation", "Python Concepts". Something like 90% people in this subreddit and at least 80% people at my work have a problem with definitions. Definitions are important, that mean you talk about same thing as your colleague.

It make sense to talk about Python's idioms or best practice, none of them will help with "problem solving abilities". If you direct somebody to learn "theory of computation", it may help, but learning "python theory" doesn't. It is important to use right terms, it drastically improve ability to solve problems.

1

u/fiddle_n Mar 28 '20

The term "branch of science or art" is meant to encompass a wide range of disciplines one might study and should not be taken so literally as you have done so. But then, it wouldn't be Reddit without someone taking some term hyper-literally.

1

u/baubleglue Mar 28 '20

Which topics you will include in Python theory? Anyway learning Python in-depth it is a wrong advice for improving problem solving skills.

-3

u/thesecondbread Mar 27 '20

I agree.Although,the problems in a project are fairly simple(it depends,really,because some are challenging.).But trying to solve a coding interview problem is way harder or even a codewars kata.

21

u/ericula Mar 27 '20

The type of problems encountered in a real live project are quite different from coding interview questions. Coding interview questions (and codewars kata as well) tend to focus a lot on knowledge about data structures and algorithms. If you want to get better at those I would suggest you buy a book on algorithms. Coursera offers a couple on algorithms that are quite good as well.

3

u/Poddster Mar 27 '20

Although,the problems in a project are fairly simple(it depends,really,because some are challenging.)

What kind of projects have you been working on?

The answer to your OP question is probably "work on more challenging projects" :)

3

u/justneurostuff Mar 27 '20

Yeah it and most things in life depend on whether you pick a basic ass project or not.

2

u/torqueparty Mar 27 '20

No offense, but that's kinda like wondering why all the push-ups you've been doing aren't improving your running speed.

3

u/Capn_Sparrow0404 Mar 27 '20

That's why he is asking how to improve his running speed.

24

u/[deleted] Mar 27 '20

It is hard to learn anything in the abstract not least because it is difficult to feel passion for what one is doing. Problem solving skills will develop when you focus on solving problems you can relate to.

So, I strongly suggest you look to your interests, hobbies, obligations (family business, charity activities, work) to look for opportunities to apply Python.

You will learn far more about Python and programming when you work on something that resonates for you and that you have some domain knowledge of (or incentive to gain such knowledge in).

Start very simply and regularly refactor the code as you learn new things. Enhance as you see opportunities.

At first, the 'tasks' you automate will be trivial and hardly worth the effort BUT because it is about the problem and not Python, it will be more rewarding for you.

You might like to find the book Automate The Boring Stuff With Python as well. The publisher has made it available to read online for free.

15

u/[deleted] Mar 27 '20

Actually work on the same project for a long time. Getting something up & running is not the hard part. The hard part is dealing with things like legacy, integrations that don't match your data model, etc.

30

u/wsppan Mar 27 '20

Study data structures and algorithms. They will give you the language you need to translate the problem space into the solution space.

3

u/badwithpython Mar 27 '20

Can you point me to any textbook or resource?

6

u/gh05t_111 Mar 27 '20

Algorithms, CLRS

The bread and butter. It does have a learning curve but I don't think any book comes close to this.

2

u/neuronet Mar 27 '20

Algorithms, CLRS

Yes. The gold standard against which everything is measured.

1

u/TheRevTastic TheRevTasticTJ Apr 05 '20

I’m having trouble finding a link to this to look to purchase it. Minds helping?

7

u/Banholio Mar 27 '20

This is the real answer. It's always good to practice and keep coding, but if you really want to understand it, you at least need this

3

u/neuronet Mar 27 '20

If this were stack overflow, and this question were appropriate for stack overflow, this would be the accepted answer (oh, plus domain-specific expertise: like, if you want to be a data scientist, obviously study probability/stats, linear algebra, and calculus; if you want to be a front-end type person, then I don't know what -- Django or javascript or something I don't know I'm not a front end person).

7

u/wsppan Mar 27 '20

There really are very few never seen before problems. Almost every problem you come across looks like a similar problem or pattern of problems. Learning data structures and algorithms helps you to recognize these patterns and what potential solutions are available to solve the current problem at hand. Also, D&A help you figure out time and space complexity for the various solutions available to you and their trade offs. There are no shortcuts to learning this stuff. Studying Computer Science is so much more important than learning a programming language. Especially one like Python where a lot of these data structures and how to manipulate them are provided for you without really having to learn them and where and when to use them. Everyone should start from first principles:

  1. Read Code: The Hidden Language of Computer Hardware and Software

  2. Watch all 41 videos of A Crash Course in Computer Science

  3. Take the Build a Modern Computer from First Principles: From Nand to Tetris (Project-Centered Course)

3

u/neuronet Mar 27 '20

I agree, and this deserves more upvotes. But also study math. :)

1

u/wsppan Mar 27 '20

Most definitely. Especially Discrete Math, Number Theory, and Matrices/Graph Theory.

2

u/neuronet Mar 28 '20

Yes if you are actually going down the road of CS proper. For data science, other stuff is more important: calculus (ideally w/differential equations), probability/statistics. But matrices (i.e., linear algebra) is important for sure.

1

u/a2242364 Mar 28 '20

Do you need to be well-versed in math to be able to dive into this stuff? Only took highschool math, and even that is far behind me now...

1

u/wsppan Mar 28 '20

Some of the books are heavy on the math but there are some that are not. Look at

Grokking AlgorithmsĀ by Aditya Y Bhargava or Data Structures and Algorithms. Aho, Ullman & Hopcroft

9

u/greebo42 Mar 27 '20

good judgment comes from experience.

experience comes from bad judgment.

This may sound flippant, but I think it applies to programming. In my experience, it also applies to woodworking. Really, any endeavor which requires you to form a model of a problem somehow (in your head, in diagrams, in words, whatever) and then approach a reasonable solution. You start to get an intuition for just how finely-grained you need to break the parts of a problem in order to be successful. You develop a feel for what makes a good solution and what leads to dead ends. You get some confidence when you realize that many problems have more than one perfectly reasonable approach.

One of the best ways to learn about better solutions is to stumble over solutions that aren't so good. So this is what underlies the general advice "do more projects." You might cringe in a few years when you look at your early code. Occasionally you'll see something you did a while back and actually be impressed with it!

4

u/eugooglie Mar 27 '20

I think what you're saying applies to nearly everything. Since I was a kid, I've been taking things apart, seeing how they work, and trying and a lot of times failing to put them back together. Those experiences of failing still taught me a lot. My friends ask me how I know how to do so much stuff and figure things out. It's not because I'm exceptionally smart, I just have a large frame of reference for a lot of stuff because I've tried doing a lot of stuff. Being able to break problems down into smaller easier to digest problems comes from experience seeing lots of different problems.

7

u/Reasintper Mar 27 '20

Kata and TDD will do worlds for you in that area! Also patterns are a good topic to read up on.

Also, if you use the coding challenge sites like exercism.io or codewars.com take some time to really look at the way others have solved the same problems as you.

But also, reading other people's code that solves a known problem. Think about how you learned to "write" prose or poetry or any of that. Not only were you taught the letters and sentence structure, but you were made to read literature. You need the same kind of code interaction.

Feel like reading some code that solves some specific problems, doesn't matter what language, or if you know how to do it in one language and are trying to pick it up in another.... Then try rosettacode.org and as a random example, here's how to implement AVL Trees in a gazillion different languages https://rosettacode.org/wiki/AVL_tree

5

u/[deleted] Mar 27 '20

Solve hard problems and you will feel better about solving harder problems. There is nothing else you can do. It's all about about confidence because you cant objectively approach this issue directly.

4

u/ajithvallabai Mar 27 '20

Codeforces ,project Euler,leetcode ..etc Solve recursion ,backtracking ,dynamic programming ,overlapping problems you will.know the real problem solving skill

4

u/most_humblest_ever Mar 27 '20

Watch someone smarter than you work through a problem. David Robinson has a channel on YouTube where he goes through #TidyTuesday problem sets in R. It's about an hour of him problem-solving, live, on the fly. He tries stuff. Fails. Forgets how to do something. Looks it up. Tries something else. Fails. Tries something else, sees an interesting insight, then jams for 30 minutes and does some really incredible stuff given the time constraint.

Obviously this is great if you are learning R, but I am sure python and other languages have live coders that do this too. Sincerely, it was invaluable to watch a few of his sessions.

4

u/--0mn1-Qr330005-- Mar 27 '20

So exactly as you said: do projects.

I know this sounds silly, but here's an example. I was coding a project that used two different libraries that needed threading: Pynput, and Tkinter. As I was doing this, I ran into a problem where the two threads did not run at the same time, and I didn't know threading well. I basically did some research, googled what was happening and how to fix it, and kept trying things until I finally go it to work. My take away was a better understanding of threading and troubleshooting.

Another problem I had was when I wrote an OpenCV program that would edit images. OpenCV has a GUI which I used for the program. Eventually, I found that the GUI looked different on Windows and Linux, and it was missing features. I had to completely rewrite the GUI in TKinter instead. This created one problem after another. I had to learn the mainloop of TKinter, figure out what the equivalent elements are, discover that the image display in TKinter is not the same as OpenCV so I had to use the library pillow and convert the images for them to work right. I also had to make them render every tick of movement on the sliders. Each of these things was a problem that took between hours and days to figure out, and took lots of googling things an stack overflow. This is what you want. You WANT to run into these problems, and diligently work to solve them. By solving them, you are learning.

One final example, while I was working with a python library, I got an error. By googling it, I found a github issue on the library repository with someone else having the same issue, and I found a stack overflow article showing that a typo is usually responsible for the issue. I was able to write this explanation on the issue, and thanks to that, the creator was able to fix this and roll out a new version within the hour that fixed the error on my end. This was very satisfying and a valuable experience.

Anyways, this is how I have been doing things, and it has been working for me. I have learned so much in the last year and have become a pretty competent coder. Another advantage of doing projects is that if you learn git and put them on Github, you just killed two birds with one stone and created a portfolio of your work. Quick tip about that: Learn gitflow, and a few git basics. Use this on your repos, as a lot of recruiters want to see if you're able to collaborate in a repository and follow a standard work flow.

Edit: I just wanted to add HOW to do projects, or at least an easy way. What I did was find free tutorials, and paid ones for very cheap (humble bundle is doing one right now, it's pay what you want and has three tiers). Work through the tutorial until you are completely finished. After this, you have a basic understanding of the project you just did, but you're not done. Now that you know how it works, add a few things. If it is a GUI, change the way it looks so yours is unique. Change the colors, the font, the shape of the buttons. If you feel more advanced, start adding more advanced features. If it is a basic calculator, add modulus, and maybe a few more buttons the tutorial didn't include. This will achieve a project that is unique from the tutorial, and is very much your own work, and this is the quickest way to run into the problems I described above. These problems are exactly what you want.

1

u/kn3gt Mar 28 '20

What is your approach to git if working alone?

I’ve tried to be mindful of this, but most of my projects so far are university related where my code lives in a single file. Rather than having ā€œfeaturesā€ or similar reasons to branch, I really only have new classes or methods. The final submission has to be self contained (besides some common imports) even if it is calling other project files submitted to us as framework.

So my flow really just ends up serving as code progression (I commit end of each day), progression log, backup, and etc. I’m guessing this doesn’t do much for me in terms of a potential portfolio for employer’s until I can get thru some personal projects this summer (I work full time).

2

u/--0mn1-Qr330005-- Mar 28 '20

So I follow gitflow even for my own personal projects. This is beneficial because you do new work on a feature branch and once it is tested and working, you can merge it into develop. This has saved me countless times from trying to revert back a few commits. Instead, if the feature wont work, I can scrap the branch and create a new one. I avoid contributing directly to the develop branch as much as possible.

I consider anything I want to add into the program a feature. Whether it is a single function, or an entire behavior, I call it feature/basic-description. If I make good progress, I merge it back into develop even if the feature is not done, and create a new branch to keep working. This helps because I can make incremental changes that I know work instead of one massive change I might break without noticing. If I find a bug or potential bug, I create a bugfix/thing branch where I specifically work on that one thing. All of this can later be viewed from the commit history ("merged from bugfix/submit-button into develop branch") and you have a better record of how you wrote your program.

I created this google sheet that basically outlines the entire process I follow under the heading "Git-flow process: Raw Git" which can be found in the document outline. The rest of this doc is more detailed info and tips. I'm not sure if this would be helpful but you're welcome to check it out.

1

u/jorvaor Mar 30 '20

Very useful. I have been using Git for more than a year, and I don't use have the topics touched in your document although many would be useful to me.

1

u/kn3gt Apr 24 '20

This is great. Thank you for the response. I will certainly check out the google sheet.

You’ve helped me get a better feel on a possible approach. I wasn’t quite certain how to apply the feature branching approach to my coursework before hitting the ā€œworking codeā€ milestone, but considering certain functions or substantial progress as features will be a very good start and improvement to my workflow.

3

u/MikeTheWatchGuy Mar 27 '20

One strategy that I like and follow - Build utilities you will use, a lot. Build ones that you'll use a lot, and build a lot of them.

The reasoning

  • You'll stop learning how to program and instead program (you already understand this clearly)

  • There will be some user interface required - it may be a GUI or could be command line. Regardless you or others will be interacting with your code

  • You benefit on a personal level. You'll have a utility that's tailored to you and your needs. You can't buy a program more suited to you than what you write yourself

  • You'll likely improve it. The more you use it, the more you'll want to add to it

  • You are reminded of your accomplishments, frequently. Be proud, you've earned it

  • You'll certainly run into plenty of problems to solve

  • Utilities are something you can share with your friends, colleagues and the rest of the world

Thank you for posting this. It's motivating to see your interest and how many others agree on this approach to becoming a better programmer.

TLDR - Build sh*t you like and will use. Programming is a craft, to get better at crafts you do them over and over.

5

u/manna4all Mar 27 '20

Try CodeSignal. Learned a lot from there when I first started learning python.

9

u/Humanoid_v-19-11 Mar 27 '20

Learn math

1

u/kapitalsnow amateur; started learning cuz i was bored in quarantine Mar 27 '20

I cant stress this enough. I never understood why you have to have Maths a levels to take a computer science university course until I started learning Python on my own. Almost everything will require some maths theory.

1

u/Humanoid_v-19-11 Mar 27 '20

And it’s pretty much the best problem solving ā€žteacherā€œ/skill there is

-2

u/Poddster Mar 27 '20

And it’s pretty much the best problem solving ā€žteacherā€œ/skill there is

I completely disagree with this.

In standard mathematical education, how often do people actually solve problems, rather than perform rote memorisation?

I'd say programming is the best problem solving teacher there is :)

1

u/Humanoid_v-19-11 Mar 27 '20

Well I mean I'm a physicist, for me math is a tool to solve problems. And to master a tool you have to repeatedly use it on simple tasks to be able to do more elaborated ones.

1

u/jdb441 Mar 27 '20

Probably the commenter is assuming that one already has a standard math education. I think when the person wrote 'learn math' they mean expanding on the basic rote memorisation education and taking it into topics relevant to computer science like discrete math linear alg and data structures.

I believe it's a balance of math and programming. How can we use math to elevate our programming?

1

u/jdb441 Mar 27 '20

This is the answer one doesn't want but needs. It's not enough to just code. Especially for people trying to break into programming as a career.

2

u/krantheman Mar 27 '20

hackerrank maybe?

2

u/[deleted] Mar 27 '20

By solving problems.

1

u/johninbigd Mar 27 '20

Exactly. It's the only way and there is no shortcut. That was drilled into my head by my high school physics teacher. He literally used to regularly tell us, "The only way to get better at solving problems is to solve problems."

2

u/XO-42 Mar 27 '20

Just to give you another different idea: play games. Doesn't matter if it's board games or video games, but usually games involve quite a lot of problem solving. So if it's about improving your general ability to solve problems, playing games helps. It's what kids do to learn about life, and adults surely can still profit from gaming by keeping their minds sharp.

2

u/Eleventhousand Mar 27 '20

You fix stuff that is broken, or that needs an enhancement.

I don't consider myself a master Python developer, but rather someone that enjoys languages and can pick up anything that I need to.

I tuned up some of my Python skills by finding small projects on github that were looking for developers to help fix bugs or implement enhancements. I submitted pull requests, some of which were merged, and some of which never were.

2

u/ajskelt Mar 27 '20

I think that is also just doing projects.

I remember a year ago looking at my first projects and realizing how much better my problem solving abilities are and what I would do different. Now today I can look at my projects from a year ago and say the same thing (although they are better than the ones before that)

I think like any skill it is just a process of gradual improvements. I’d guess maybe at some super high level someone could look back and say they’d do it exactly the same. But I’d guess that is extremely rare, and would take a really long time to get to.

2

u/dan4223 Mar 27 '20

This is why I love checkio.org. Solve the problem any way you can come up with, then take a look at how others solved it.

2

u/[deleted] Mar 27 '20

Find puzzles to solve and solve them.

8

u/NitroXSC Mar 27 '20

My favorite puzzle website: https://projecteuler.net/

It is really math heavy but finding the appropriate data structures and algorithms is the essence of most problems.

I currently have 140 solved problems. (with one 80% and two 70%)

1

u/ragnar_graybeard87 Mar 27 '20

Traditional thought would say you should get better at mathematics. Like if you took algebra I and II on khan academy then the pre-calc and calculus you'd come out with better "problem solving" skills in general.

1

u/kickulus Mar 27 '20

it's simple, get smarter! nah, think about ur problems more, i guess

1

u/neuronet Mar 27 '20

In addition to data structures and algorithms, it depends what you want to work on. YOu need domain-specific expertise to expand your abilities. E.g., if you want to do data science, study linear algebra, calculus/differential equations, and probability/stats (and I mean study, not watch youtube videos). If you want to do front end development, learn I don't know what -- pyqt and django and css/javascript or something (I dont' know front end stuff so I'm just making up names here).

1

u/guacguac Mar 27 '20

I have a different suggestion. Once you solve a problem, take a look at how other people solved the same solution. Your brain usually prefers one way of solving problems and looking at how others did it will make you more versatile and creative.

1

u/TinyTheBig Mar 27 '20

Try codewars

1

u/48151_62342 Mar 27 '20

Try using your brain

1

u/kinzlist Mar 27 '20

Hackerrank

1

u/yamichi Mar 27 '20

Practice and a book called Thinkertoys was pretty rad for me...

1

u/radixties Mar 27 '20

There are many problem solving websites, the one I love the most is codeforces.com, a huge set of problems, all levels and all categories ! Frequently hosted contests and a rating system that gives you a rank in the whole platform and assigns you a level (newbie, pupil, specialist, master, ... , Legendary grand master). Most people code in Cpp but you can use python if you want !

1

u/PianoNyan Mar 27 '20

I find some of the greatest "learning moments" are when I sort of figure out a way to make something work and then go look at how other people did the same thing (usually far better than me). Working through the steps is pivotal but you can learn a lot by seeing how somebody else who knows what they are doing puts things together much more efficiently.

1

u/DisastrousSection8 Mar 27 '20

i know is specific to my country but there is some great problems to solve here! http://aipo.ucc.ie/

1

u/stigmatas Mar 27 '20

Codeacademypro free with student address, can be faked.
edabit.com

https://exercism.io/onboarding

all places that give you word problems(problem solving drills) to improve your coding, all free.

1

u/Sbvv Mar 27 '20

Read books, learn patterns and face problems.

1

u/[deleted] Mar 27 '20

Projects have problems

1

u/alanbosco Mar 27 '20

Now that's a problem isn't it? šŸ˜†

1

u/Haltarys Mar 27 '20

You can find many websites that offer you fun algorithm problems to solve. My favourite is https://leetcode.com

1

u/MorningStar1994 Mar 27 '20

I honestly just grinded a bunch of Hacker Rank questions. They literally have a sub group of questions called "Problem Solving". I've noticed that I'm way faster when I'm working on my projects because of these questions. They make you think critically and you solve a variety of problems.

1

u/JeamBim Mar 27 '20

The problems you seek are in the projects you're not doing.

1

u/amberoze Mar 27 '20

Break some things...

Edit: or have someone else break it.

1

u/Merry-Lane Mar 27 '20

By solving problemes ?

1

u/Bigtbedz Mar 27 '20

For me personally I find problems at work and create solutions at home. I work in a warehouse dispatching delivery drivers. It's a pain to keep a running order of what drivers are up first. So I'm making a driver pool where they "punch in" when they return from a delivery to get added to a queue. It will monitor what position they are in and if there are any orders waiting. If there is an order and they are in the first position the app will say "Hey come on in" they will click a button to say they have taken an order and that removes them from the queue.

It sounded simple when I came up with the idea at work and it turns out there are alot of edge cases and interesting situations I have to think about. Funny enough this is the first project I've started where I haven't had to refer to documentation or tutorials. I just hit the ground running laying out my design and started filling in the functions I knew I needed.

Tldr: search for an issue at work or in everday life and try to think of a solution you believe would be optimal. Even if it's outside of what you think you know/understand, try to solve it. You will learn alot

1

u/ActualPersonality Mar 27 '20

flowcharts to your rescue!

1

u/bobspadger Mar 27 '20

By finding problems

1

u/[deleted] Mar 28 '20

I think it really helps to have your work reviewed. Solving a problem is one thing. Solving a problem well is very different. Getting your work reviewed is a good way to learn better tools for problem solving.

1

u/Thecrawsome Mar 28 '20

Making a github project for the world to see / showing your code to someone else, and asking what you could do better

getting a book recommendation that its straight to the point on the basics (Python Tricks the book, by Dan Bader is my current recommended book for python), grokkings algorithms for fast algorithm knowledge

copy-pasting someone an algorithm example, and put your code inside it

1

u/gingerBeardMan750 Mar 28 '20

I would say dedicate some of your time to learning the ins and outs of algorithms, but also spend some time solving logic-based puzzles such as Sudoku.

But I agree with the majority of the other comments, doing projects will sharpen your problem-solving abilities.

1

u/Mohammad-Ruqaa Mar 28 '20

It will be improved by time so when you are doing projects you will absolutely find some bugs and errors... usually you will see these bugs more than once after a while when you get the same bug you'll say oh I had this problem before I know how to fix it. Actually that's what happening with me you may get this bug twice and forget how you fixed the first time but after get that bug you will be able to fix quickly.

1

u/edwrdalln Mar 28 '20

It will come along while you're doing the projects šŸ˜‰

1

u/[deleted] Apr 01 '20

By solving problems

Now that we got that out the way

Let's close this thread BOYS.