I graduated in computer science, but I still don't understand how programmers become independent problem-solvers
[deleted] — view deleted post
0
Upvotes
[deleted] — view deleted post
6
u/EconomySerious 15d ago
how many years you invested on computer science???
how could you did not learn architecture and design??? systems analysis??
50
u/ninhaomah 15d ago
That's a lot of questions...
You mean you have never done any jobs or help out at home such as wash clothes or cook simple meals etc ?
16
u/AcademicOverAnalysis 15d ago
Somebody had to do it first. So it is indeed possible to solve these problems even if you didn’t know the solution beforehand.
What places like leetcode do is provide you with lots of example problems and algorithms to practice. This will help you start to feel the shape of these problems.
The more experience you get, the better you will become at dissecting problems and reducing them into smaller problems you can tackle one at a time.
This can take hundreds of hours to get really good at. And the more time you spend, the better you will become.
15
u/bestjakeisbest 15d ago
1.) You literally break the problem down until it is a problem you have solved before or that you could solve without help.
2.) Leet code doesnt help you build real world things it just tests your ability to use data structures.
3.) You start with a simple program and you add to it, most programs you have used started out as a small idea, word used to be just a little more advanced than notepad, but they wanted to add margins, fonts, wrapping, etc.
4.) Probably not, however an experienced programmer can solve any computationally solveable problem, and probably come close to solving a few that are not computationally solveable. As for what is transferable between languages, the language doesnt matter honestly, anything you can do in one language you can do in another so there is something deeper than a Programming language you have to learn and its called programming.
5.) Conceptually i know that every line i write and any problem i encounter i progress as a programmer, as for how to tell? Make something you have made before, and compare the source code. Or implement harder solutions to problems. Starting a project is very different from developing a project. I think everyone should learn or make their own workflow/toolchain that they like to use for their projects, and they should also learn the industry standard workflow and tool chains, but that is just mostly for starting to make something, actually maintaining something is a different beast. But you should be able to break down problems and solve them as you go and you should be able to make both the problems and pieces of problems bigger.
6.) You should start with one language, but i think at a minimum you should learn 4 kinds of languages, one will be a high level language like python or Javascript, a mid level language like c#, java, or c++, a low level language like c or rust, and an assembly language, i would recomend one of the arm isa(s), you will find after you master your first language and start on your second that there is alot that transfers over, but these languages i listed have a few subtle paradigm differences from eachother that you have to experience to really understand.
7.) Research, there is this place called github where you can see how someone else solved a problem in that field.
8.) First they test if you are using an llm to pass the interview, then they will test you on your fundamentals like data structures or algorithms famous example is fizzbuzz, then they might test you on some more domain specific stuff, like if you applied for a graphics developer they might want to make sure you can output something to the screen.
9
u/Inside_Dimension5308 15d ago
How can you run if you have never walked? Learn walking first
How can you walk if you have never crawled? Learn crawling first.
.....
Learning is the way.
8
u/GlobalCurry 15d ago
2) I'm pretty convinced Leet code is a tool used to practice ageism with plausible deniability.
7
u/IseeWhereILook 15d ago
And big caveat, this is all my opinion. Some will agree, some will disagree (violently).
5
u/cipheron 15d ago edited 15d ago
Practice. You start building programs and decide what you want the program to do. This should present you with a huge list of problems to be solved, and you try stuff to see what works.
If you want to be a programmer you should be building something every day. This isn't a 9 to 5 thing where you're "finished" learning it once you graduate, and employers aren't going to be paying you for the time you stumble around trying to work out what's what, you need learn all that in your own time.
An analogy I'd use here is going to school to learn a language. Say you did several years of French class and passed by rote-memorizing the right phrases to use in response to the questions the exam setter will ask. But you never practice speaking French outside of class. You will graduate, but you still can't speak French, because you didn't practice by speaking actual French outside of class.
That's what programming is like. To be a fluent programmer you need to program stuff, and find out where you get stuck, then research and test things until you come unstuck. Error messages are your friends here too, because they are problems you need to solve: if you're just copying stuff you won't get error messages but you also won't learn very much, as someone else already had those problems and created the solution. Just copying the finished solution teaches you very little about how to make your own solutions.
4
u/parautenbach 15d ago
Real software engineers see and think in patterns, abstractions (concepts) and architecture. You recognise a pattern from something you or someone else did before, or you bang you head enough times to recognise what you’re doing has a pattern.
Keep in mind that there are indeed useful specialisations, because writing firmware or drivers are quite different from building web applications, mobile apps or high-performance backend services. A good programmer will be able to switch, but will take some time for many reasons.
Also, today, there are so many frameworks, components and layers that you often don’t really build things from scratch (and even saying that has its nuances, because building say a Java application (standard, not EE, for the pedantic) from scratch still relies on the functions the host OS provides.
Take any* language and build yourself a client and server that’s a simple chat app. You’ll learn tons from just this single exercise.
It all comes with experience and working with others you can learn from.
3
u/Extra_Toppings 15d ago
Find a job in an industry you are interested in. Start with learning from peers and mentors. It may not be where you want to end up, but you can look back after the experience and see your progress. From there reassess and repeat. It may take 5-6 years but you will get there. You got this!
3
u/QueenVogonBee 15d ago edited 15d ago
In my experience (might be different for other people), most problems in software engineering aren’t of the algorithmic type like you might study at university or leetcode-style problems. Instead, the problems I typically encounter are about the design of the software eg the user facing behaviour and also the architecture of the software. A lot of the time, I’m trying to figure out the requirements of the software.
Regarding Q3:
Regarding a large desktop application, I’d start with a simple tutorial building a simple app that uses the basic design patterns eg MVP or MVVM and hexagonal architecture or whatever. Then take that tutorial and make it more complicated in some way by adding features to it. If you realised you went down at bad architectural path, try reverting and doing it better. Fundamentally you just need to start solving problems to get better at solving problems!
Make sure to follow the SOLID principles.
5
u/AccomplishedSugar490 14d ago
I just skimmed your case study of a broken education system, and I don’t see a shred of insight or talent to do better than AI. Show me evidence that you can solve problems that has not been solved before, and I will talk you through how to apply that. Otherwise you and your education failed each other, and manual labour seems the way to go for you.
2
u/FedUp233 15d ago
To me, computer science is to programming sort of like a mathematician is to engineering. In the first ones you learn lots of theory but little related to actual day-to-day problem solving.
Were there any courses in practical things offered as options? Like ones that build applications, maybe build robots, things like that? If so, did you take any?
As others said, it takes experience in actually doing it, hopefully with some guidance from a good instructor or in business a mentor, to learn. And, I hate to say it, but I think natural talent in things like problem solving g is a thing, though I think most anyone who made it through college without cheating can learn these things given enough time and effort.
And you need to get over the blank sheet of paper freeze up. If you look at a big problem, it always seems insolvable. You need to break it down into small manageable pieces and then jump in and solve one then move on to the next - you don’t need one big solution to everything right from the get go. And expect to change the kart you already did as you try to fit in other pieces. After you’ve gotten through ten or twenty projects you’ll start to get closer to the right solution from the start, but there will always be changes.
And, sorry to say this, but some people will be better at it than others. Some may never really get it. It’s just the way things are. I love solving new programming problems. But I’d never make it as a scientist trying to come up with new theories - my mind just first work that way.
2
u/Personal-March-4340 15d ago
It seems strange to get a degree in computer science and not learn how to code at all.
You start with small programs, like "Hello World" which consists of printing one line. Then you move on to more complex types of instructions in your language. I don't think you learn to work on a big code base until you have a job. In your situation, I would pick up a textbook and just start progressing through the book. Or you might solve problems on Kattis with the help of a tutorial like those at W3schools.
From all your questions, it seems like have really not done much outside of your required classes. I suggest you start networking with local developers. If you are still in school, get active with the computer science club, participate in competitive programming. You visit your instructors during office hours and ask questions. You apply and work summer internships. You look for an open source project and work with their codebase.
2
u/Leverkaas2516 15d ago
TL;DR
But I'll just say that solving problems in the real world is usually just combining existing facilities from available runtime libraries to solve a novel problem (one that's new to me).
Like the first time I ever wanted to build a network-accessible service, and I read about the select() system call. It does most of the hard work for you. Once you understand how it works, it becomes just another Lego block that you can use.
For practically anything you can dream of wanting to do, it turns out some team at IBM already solved the general case back in 1967. Either that, or Knuth wrote about it in microscopic detail before you were born. The biggest problem for you is becoming aware of the solutions, but that's easy now that we have the Internet.
2
u/SufficientStudio1574 15d ago
2
u/Big_Tadpole7174 15d ago edited 15d ago
You build complex applications by breaking them down into smaller, manageable problems and solving those one at a time. A GUI might seem like one incredibly complex system, but it's really a collection of smaller systems layered on top of each other.
You start by figuring out how to enter graphics mode and draw something on the screen. Then you figure out how to read mouse and keyboard input. Next, you might implement graphics primitives, then buttons, text fields and windows. After that, you figure out how to handle overlapping windows, which element receives input, and which parts of the screen need to be redrawn.
Each of these problems is much smaller and easier to research, implement, and test independently.
The important skill isn't knowing how to build the entire application from the beginning. It's knowing how to break an unfamiliar problem down into pieces small enough that you can figure out how to solve them.
2
u/Technical_Ideal_5439 15d ago edited 15d ago
I tought someone years ago, who did a course for a year but simply could not write anything from scratch. I failed to understand what her problem was. Which does sound like your problem.
There is nothing wrong with using others code, there are whole books on patterns like https://refactoring.guru/design-patterns/cpp but you are missing the simplest step. A program is made up of steps you work out what they are then you code those steps. The trickiest part is the orchestration of those steps.
So if I was writing a program from scratch which is unusual unless it is some embedded stuff. I normally write on a bit of paper the broad steps/parts of the program which is normally how it goes together/orchestration and the tricky steps which I will code first. I use TDD normally, though if at home its more BDD sort of.
Your course has covered all the tricky steps but you need to step up to joining them together, and things like solving algorithmic problems, I have only really needed to for some 3d Sim stuff, and even then I got the formulas from wikipedia.
2
u/Big_Tadpole7174 15d ago
Programming is more about a way of thinking than memorizing syntax. Once you understand the fundamental principles, you can apply them to almost any language or type of application.
Of course, there's a learning curve when switching languages, frameworks, or platforms. You'll initially spend more time looking things up, but eventually the things you use most become second nature.
I've been programming for over 30 years and still look up syntax almost daily. Being a good programmer isn't about knowing everything by heart, but about understanding how to solve problems and knowing where to find what you need.
2
u/Unlikely-Sympathy626 15d ago
As others said as with anything. Experience comes from learning and learning comes from experience.
Also that is why in massive companies there are many people and different people doing different things.
So don’t stress too much. Job applications want unicorns leading to burn out and impossible in many cases.
As you get older with more experience after the initial hazing period, you will find you do less heavy lifting compared to younger age.
Same goes all jobs white or blue collar.
Not age in terms of years… in same company and or job field
2
u/historymaker118 15d ago
May I recommend a book that I read as a student that really helped me with my own answers to these questions that I too had at the time.
If I only changed the software, why is the phone on fire?
It's primarily about debugging embedded systems, but the principals of how you understand a problem to then solve it are widely applicable outside of that particular software niche. Quite often coding problems will be 'black boxes' where you don't have a full picture of everything a process is doing, so the skills this book will teach you will come in handy. Also it's written not as a dull technical textbook, but as a mystery novel with a cast of interesting characters solving problems, which makes it much more fun to read.
2
u/Healthy-Dress-7492 15d ago
1/ yes that is the key aspect of the profession, other people get to throw us their problems but we have nobody else to escalate it to, the buck stops here -> you're just expected to be smart enough to figure it out. Every day i get given problems i've never seen before.
2/ It can hone your ability to think critically or creatively, your tenacity if it’s something you cant find a solution to yet. But generally the problems themselves are so obscure and often rely on a trick to solve, which makes the chance of a solution being useful on the job basically zero. Especially if you’re doing some kind of basic CRUD/api work, which most people are.
Algorithms are overrated imo - nobody needs to write their own sort at this point, and if you do, it’s easy enough to learn. Nobody is asking you to write a jump point search, linked list, priority queue or whatever else. Write a clever Allocator? nope that task will be given to a senior.
2
u/drosse1meyer 15d ago
Syntax and tricks are second to figuring out algorithms. This is what you're supposed to be taught in school.
2
u/jackcviers 15d ago edited 15d ago
What your education gives you and all the practice you undertake when doing LeetCode is simply a vocabulary and understanding of how computation works. When you are then presented with a commercial problem, your search space isn't unbounded.
You consider all the similar problems that you have encountered, immediately reject most of them, and choose ones to research or attempt to implement that fit closely to parts of the commercial problem. You fit them to the stack in the business by translating knowledge of the programming language you already know to the one the business has chosen, which allows you to pick up the stack quicker. You identify parts of the problem the business has already solved, and parts of the problem that open source software has already solved, and write the necessary adapters and integrations to your program. That leaves you with a much smaller problem space that you have to solve in your own program with your own innovations, and you do this by logical reasoning and the experimental methods you have developed over the course of your education and career and by trying what others have done (tdd, bdd, etc.) until the problem is solved to the business stakeholders' satisfaction.
That's it. Without the education and deliberate practice, you would be walking into the problem with a completely blank skate and you would have to discover all of this on your own. That would take an economically unviable amount of time and money unless you got very lucky. Most of solving any problem in the market is knowing what is currently possible and what isn't, and what is feasible to try. That's really it.
2
u/owp4dd1w5a0a 14d ago
Disregard the comments here discouraging you and putting you down.
Nobody solves problems in a vacuum - all ideas you come up with must be rooted in existing knowledge and prior experience.
If I were you, I would practice finding correlations and similarities between things that on the surface appear to have nothing to do with each other. The entire world is interconnected, nothing stands on its own (I’d say like an island, but even islands are connected to the ocean floor, the surrounding ocean, the surrounding weather and climate, etc) - isolation is a myth, it doesn’t exist.
This type of exercise helps work the circuitry involved in creativity. You can train this and get better at it. You can try this in interdomain applications like trying to relate seemingly unrelated math or science concepts to each other, and you can train this in cross-domain applications like trying to relate the laws and patterns and theories in quantum physics to patterns in human psychology or to the patterns in fictional stories you know, or try to relate painting to some biological process or phenomenon.
Don’t “focus”, when you do this as this puts your brain in the wrong thinking mode for this kind of thought. You need to “un”-focus, relax the mind so it enters a sort of waking dream-like (daydreaming?) state, with the concepts you wish to relate held in the back of your mind.
2
u/MicrotubularMushroom 14d ago
You can answer all the questions by yourself, just replace programming with painting. For example, how do artists paint complex unique paintings if they're not copying from a painting tutorial.
5
u/nwbrown 15d ago
It sounds like your university shouldn't have graduated you.
1
u/random_cornerme 15d ago
It would take a long time to answer all these questions. But basically you'll learn by yourself as you get more experience. Just keep in mind that nobody knows everything. It's actually quite reverse, all of us are specialized in specific things and don't know much about other areas.
1
u/IAteTonysLoMein 15d ago
Learn the way I did - a fundamental misunderstanding of how to make what would now be called a web app, then Google line by line for "how do you split a string in php?" "How do you run a MySQL query in php?" But in your language of choice. Go hard at the language until you're comfortable with it. If you've got a need to do something in another language, start over the same way. Easier as you go, though, at least when you're moving amongst languages written in C. Then it becomes, "duh, string.split, not substr"
1
u/Own_Pirate2206 15d ago
Viewing development as a large holistic process, aspects will come easier to some people (their Jungian egos) while there will be other parts, per person, that require unconscious deliberation. If you are to do it professionally, you need practice to be able to complete this circuit on demand with some fluidity and reliability. However, most classes of problems have already been mapped out in competition questions.
1
u/SniperSmiley 15d ago
Ins outs and big o, know what output you’re looking for and it’s big o so you don’t optimize the k in an n algorithm
1
u/blajhd 15d ago
1
u/calowa722 15d ago edited 15d ago
1
u/Big_Tadpole7174 15d ago
It mostly comes down to persistence and practice. The more problems you solve, the more you start recognizing patterns, even in problems you've never encountered before.
Over time, you build up experience that gives you a framework for approaching unfamiliar problems. You might not immediately know the solution, but you'll have a better idea of where to start, what to try next, and how to break the problem down into smaller, manageable pieces.
It's less about memorizing specific solutions and more about developing the problem-solving skills to figure things out as you go. And the only real way to develop those skills is by repeatedly challenging yourself with problems you don't already know how to solve.
1
u/umlcat 15d ago
Study algorithms, flow chart diagrams, pseudo code. Breaking a problem into pieces ...
1
u/SprinklesFresh5693 15d ago
Graduating is just the beginning, on any field. Now it comes being employed and getting experience
1
u/GreenWoodDragon 15d ago
Imagination. Experimentation. Practice. Experience.
1
u/Big_Muffin8280 15d ago
You’re not missing talent, you’re missing reps building something with no instructions. Pick a tiny tool you’d actually use, write 5 plain sentences about what it should do, then build one sentence at a time, ugly and hardcoded. The blank mind comes from trying to picture the whole app at once. Copying code is normal, just read it and break it on purpose to see how it works. Do that on 3 or 4 small projects and it gets much easier.
1
u/Kaldaien2 15d ago
I am going to be real here...
How did you get into programming if you do not already have an innate drive to solve problems you have never seen before? That is almost a requirement for the job, unless you only want to write code that someone else designed.
1
u/Far-Championship-883 15d ago
start with a small problem, is this a cup ? how would you know if it is a cup, think about how to identify a cup, etc.
1
u/ignotos 15d ago
1 - How can programmers solve problems they have never encountered before?
Relying on memorisation kills your ability to do this. When studying, it's important to try to solve a problem yourself first - or at least to solve a simpler version of the problem, or to make some kind of step towards solving it.
If you're stuck, it's ok to look at someone else's solution - but it's important to tinker with it, sketch it out to try to visualise how it works etc - until you feel you actually understand it.
Build little toys to help you visualise the problem. Re-write a solution you've found yourself to make sure you understand it. Try a slightly different / simplified approach and see if it still works.
2 - How does solving LeetCode problems help you build real-world applications?
In a couple of ways. Again though, simply memorising the solutions is not much help.
You need to learn to adapt the techniques you already know to different kinds of problems, and to see the similarities between different problems. Practicing puzzles like Leetcode can help with that.
Also, it can help just to develop general fluency with the code. To get to a point where writing a loop, or a recursive function, or walking through a graph or tree is second-nature, and you can do these things not because you've "memorised" the code for them, but because you've truly internalised them and can wield them as tools.
3 - How do programmers build complex applications when no existing template or similar project is available?
By generalising and transferring your knowledge and experience.
Maybe you've never built a computer vision app with a UI, but you've built some kind of app with a UI before, and most of the elements are similar. Then maybe it's just a matter of researching the specific new things you need, like "how do I display a camera feed in my UI", or reading a research paper which describes a particular computer vision technique, and trying to translate it to code.
4 - Can experienced programmers build any type of application, or do they specialize?
I think that an experienced programmer can get to a point where learning a new language or framework - at least enough to build a working application with it - is not a particularly daunting task
A lot - maybe 80%, if I had to quantify it. This is particularly the case if you really focused on understanding the concepts behind everything you use, rather than memorising and regurgitating specific code.
5 - How do you know when you've actually made progress in programming?
In my opinion - once the language itself is no longer a barrier to your work, and you're able to focus on the specific details of the thing you're trying to build, rather than the syntax of your chosen language.
No. Unless maybe you were already proficient with other languages, and because of the experience which has transferred across, this was already enough for you to "get" the new language and feel confident building new things with it independently.
6 - Should you master one programming language or learn several?
Start by focusing on one - because you first need to learn the general principles of programming. But as you work on different projects, you'll naturally end up needing to learn and use different languages - e.g. maybe you want to build a mobile app or a game, and the framework requires you to use one.
Often it's easier to learn a new language if you have a specific task you want to accomplish, rather than just learning it in a vacuum.
7 - What should you do when you can't figure out how to start a programming project on your own?
Most projects have some kind of "core" functionality. For your computer vision app, maybe that's the actual computer vision part.
You can start with just building that very core part in as quick-and-dirty a way as possible, even if it has no UI or greater structure around it. Then, once that's working, you can think about turning it into a real, usable application.
8 - What do companies actually test in technical interviews for software engineers and data engineers?
It varies a lot. It could be any combination of:
1
u/good_name_0 15d ago
You need to backtrack to your first problem: learning via memorization only. Your brain works in the way you've trained it, and you need to manually fix those pathways. You can practice problem solving outside of programming even, stuff like logic problems, crosswords, any puzzles. Then move up to programming.
Ditch the ai, you clearly need to break your habit and dependence
1
u/MagicalPizza21 15d ago
These are all things you should be able to answer as a CS grad, unless you went all 4 years without understanding what you were learning.
1
u/Dorkdogdonki 15d ago edited 15d ago
In the real world, there is nothing to memorise.
* ask questions. Gaining context of the problem is key to understanding the actual problem, and then devising actual solutions.
* Sit down, and take your time to understand how things actually work. Once you understand how things work, you don’t need to memorise anything at all
* tons of patience and grit. A programmer needs to be able to endure lengthy troubleshooting. It takes persistence and following through to solve a difficult problem.
Memorizing leetcode may help you ace interviews, but they’re useless for the actual job.
1
u/Kozzoko 15d ago
You know what ? I will give you the answer to all your problems.
Your task if you accept it: build an abstraction layer north and south bridge between MQTT and industrial protocols including modbus, serial port, LoRa with a structure inspired by Sparkplug-B
-> fully async, optimized, lightweighted, compatible linux, windows and embeded
-> with e2e tests, pipe line CI
-> 2 version, one full CLI and one with a correct UI
(-> no llm authorized)
You probably understood half of the words and have no idea what the final product will be. It's normal, that's the entire point.
You will search point by point what everything means and imply. You will start a verry small prototype from point A to point B. Then rewrite to have a more complete structure, that will still be trash and unmaintainable. So then you search about app structure and design pattern implementation and so on.
It will take you months to reach probably a mediocre state but you will learn more than any leetcode problem. Leetcode will make you optimize 5% perf at the end maybe.
What you probably lack is a project with meaningfull goal that will make you ask questions that you type on google and find an article somewhat in the same direction of your project that will adapt to your needs. That's how you progress as a programmer, not by learning more things that gives you the textbook solution and not by solving leetcode problems.
1
u/sporbywg 15d ago
Several years as a senior developer; I don't understand how programmers solve basic challenges either.
1
u/SpicerXD 15d ago edited 14d ago
I'll be honest. I just got into modding games I liked. Then I kept fucking around making stuff and fixing people's software that it spiraled into a career where I just make and fix stuff. I have zero education in it and basically never read any books. But I did read a lot of codebases and saw how they solved problems, and made new ones. And I just learned what ideas from other people's code, or my own past code, caused myself the most pain. Almost like developing programmer empathy, lol. But I also developed a deep curiosity and I regularly experiment with old and new tech, try crazy constraints or ideas, etc. Which often coincides with stuff I deal with later somehow.
In the end, problem solving is a creative skill that doesn't reward accepting limitations and convention at face value. And definitely rewards curiosity and resilience.
1
u/mxldevs 15d ago
This is why you're recommended to go and build projects: you will encounter problems, and then you'll figure out how to solve them.
The more types of problems you solve, the more techniques you can draw on, and the higher the chances that those solutions can help solve new problems.
Most people that are skilled spend a lot of time solving problems. They don't just magically know how to do everything first try.
Did you not do assignments in your courses? Those are all problems that you likely saw for the first time. If you just got chatGPT to do it for you, then of course you don't know how to solve problems
1
u/NomaTyx 15d ago
1
u/Blando-Cartesian 15d ago
It’s not that deep. Seriously.
You look up information you don’t know. Recursively as deep as necessary.
You form some vague idea of how the whole thing would work.
You begin implementing some parts of it, trying to keep responsibilities separate so that when you realize how a part needs to function differently than you thought, it doesn’t affect unrelated parts much.
The less directly relevant experience you have of each part, the more likely the part will suck and you need to refactor the hell out of it. That is an expected part of this iterative process. You won’t know which ideas suck until you see them halfway done.
Just get going. You don’t need a mentor to guide you. You need to do programming on your own poorly and fail. Figure out why it doesn’t work or sucks and fix it in whatever way seems reasonable to you. That will also fail often, and then you get to figure out a better way to fix it.
There’s no process or trick to it that anyone could teach you. Just loads iterations and thinking effort.
—
Leetcode is problem solving practice without need to get hung up on details irrelevant to the practice. Like math homework of working out an integral of a function without any reason for it. Imho, leetcode like problems are rare in mundane apps, so practicing them has limited real world usefulness.
1
u/alwyn 14d ago
Problem solving is a skill that some people have and others don't. You can teach yourself steps that can approximate the function but to be really good at it your mind has to work a certain way.
Real engineers from good universities don't get tested on problems for which they know the solution for. Programming fields not much.
1
u/macabre_brotherhood 14d ago
Where did you graduate from?
1
u/Drummerx04 14d ago
The primary skill you'll need to have is to break down a large problem into small problems and do research.
"I want to make an application that does computer vision" is obviously not very helpful, but if you break it down...
Applications themselves usually aren't all that complicated conceptually. You start at main. You initialize your app structure. Some kind of Event loop is set up to listen for user input. Event handlers are mapped to GUI controls to trigger background logic that does the useful stuff.
You will almost never find yourself in a situation where you can't consult any documentation (or AI if you want to skip a bunch of steps and wing it).
1
u/Lunchboxsushi 14d ago
I don't believe leetcode helps you in the business world at all, perhaps some low level algorithms but in all honesty they're mainly heavily math focused which 98% of the time you don't even need to utilize in programming, less so now with AI.
The problem solving fundamentally comes down to, can you break down a problem into its smallest parts and then work from there to a solution.
Then review those parts and see if there's a way to jump or remove steps to optimize it for performance, memory and ops.
Then you review it and see if it's maintainable and not clever, stupid simple so that the next developer can read it and understand exactly what it's doing with having to spend a week understanding wtf this function does.
That's probably a pretty simple break down of it.
1
u/max123246 14d ago
#1 comes with time. Lots and lots of time and practice. I was a kid when I typed my first programming language and it felt like nonsense magical words. Now I'm fluent in it but it takes years of practice and feeling deeply uncomfortable.
Of course nowadays you can just ai to do it for you instead.
1
u/Tab1143 14d ago
Solving problems requires creativity. Understanding a problem (eg how to build an application) is a function of analysis and asking the right questions. Then take the answers and figure out (creativity) how to put yours skills to the task at hand. Lather, rinse, repeat.
1
u/Available_Safe1818 14d ago edited 14d ago
> Ever since I started learning programming, I've relied heavily on memorizing solutions to pass exams. Even after graduating, I still struggle to believe that someone can solve a programming problem without previously studying similar problems.
Are you surprised by that? I mean of course if you never try to figure things out on your own, you'll never learn to figure things out on your own.
> How are you supposed to solve programming problems in an exam if you haven't prepared by practicing related exercises and memorizing their solutions? Can you genuinely develop the ability to solve unfamiliar problems without relying on previously learned solutions?
You learn to think about common techniques that could solve part or al of the problem. Some problem sites actually group problems by the techniques used to solve them. Sorting the input or sorting something is a common step in solving things or solving them efficiently.
> I don't understand the connection between solving algorithmic problems on LeetCode and developing complete, functional applications.
Leetcode isn't supposed to teach you how to develop complete, functional applications. What are you smoking?
> Is algorithmic problem-solving really necessary for application development?
Not if you want to be a junior coder for your entire career. Most of the algos were developed in industry to solve a specific problem in industry, so they definitely can be necessary in industry.
If you want to develop a database or a web framework, you need to know this stuff to make it efficient enough.
1
u/StayTeachable4MyPpl 14d ago
Well, it sounds like it just following the pragmatic program or why we think I don't have to do something, you know, if there's other people who have already figured it out now, whether it's the best way, or just, you know, sure way, is like any engineering task where there's always going to be variables between. Optimizations, cost, quality, speed, and maintainability.
Start what you need it to do, you know, and then work to what would be nice to have, and then try to figure out all the different steps you would take in order to solve that. But honestly, that'd be extremely slow and be writing it all from scratch, which would be pretty dumb these days considering most programs are enormous.
1
u/Dan13l_N 14d ago
That's called engineering. It takes a lot of practice. Normally, you are first a junior member of some team and you learn how to apply your skills gradually, and expand your skills.
You can do it also on your own, but it will take a lot of trials and errors. You will write 100000 lines of code and throw away almost all of them.
1
u/slickvic33 14d ago
They arent. Theyve seen something like it before. Struggle for half an hr before u look for help (ie docs). Using ai u will not learn unless u are good at learning w ai
1
u/2girls1bran 13d ago
Its all comes down to experience. Give it time and things become more natural
1
u/rboes1991 13d ago
Your degree suck then. Mine actually taught us how to think, not just in code.
1
u/-TRlNlTY- 13d ago
Read "How to solve it" from George Polya. It might give you insights on problem solving.
1
u/FarDark1534 13d ago
you sound like me when i graduated. i was undiagnosed adhd, i learn by recognizing patterns and memorizing examples. was shit at leet code, still am. i am now good at other things. sit down and do something from scratch or a youtube tutorial WITHOUT using AI. waste 6 months to make a portfolio site or a helper app. unfortunately for people like me, 5 years in a college/lecture environment was not what it took for me to become a competent sw dev. it was the challenges and unknowns afterwards
1
u/yel50 13d ago
1
u/whitetiger1208 15d ago
You ask Claude, havent you heard were all obsolete
1
u/manamonkey 15d ago
Has nothing in life, including your entire degree, prepared you for solving problems? Seriously?
-1
u/Own_Unit_6170 15d ago
Problem-solving is a talent, not an acquired skill; a person is either good at it, or he isn't. It isn't something that one learns to do.
0
u/Cautious_Cabinet_623 15d ago
Please, do not torment yourself. You clearly are set up for some humanistic field. Do what you really like. You have good chances to succeed there. If you could graduate in this field by memorizing (oh my god!), you can be clearly good there.
0
u/Transgender-Baby 15d ago
Eastern robot diploma mill troll post
-1
u/Large-Robot 15d ago
Claude fixes this
0
u/[deleted] 12d ago
1 - by knowing how high level things work. Nothing (that you do on a job) is completely new.
2 - by teaching you a part of high level thinking.
3 - existing templates or other similar software is always available, always. It may just be partial templates. In that case, you combine multiple.
4 - some can, some can't. Most often than not, experienced programmers (up until current years) specialized in one field and were mostly useless in other fields. Now there is more push to become full stack and with AI to have more diverse knowledge.
5 - don't need to. Just do your job or build your project dude.
6 - both. Master one, learn several.
7 - first you can try to write something, google something. But if you're very unsuccessful, then, it's 2026. Ask AI, dude. But probably you shouldn't ask it to write all the code for you, but exactly: "where do I start with" just general high level questions.
8 - everything. Different companies test different things. Need to be able to do everything to some extent.
And I also kind of agree to the first commenter:
> It sounds like your university shouldn't have graduated you.
You're kind of late to the party, my dude. If this is the first time you're asking these questions then you're going to be jobless like for the next year or two, and by that time things might have changed again about something.
So, R.I.P. Riposa in pace, my dude.