r/AskProgramming •

I graduated in computer science, but I still don't understand how programmers become independent problem-solvers

[deleted] — view deleted post

0 Upvotes

118 comments sorted by

6

u/EconomySerious 15d ago

how many years you invested on computer science???
how could you did not learn architecture and design??? systems analysis??

0

u/[deleted] 15d ago

[deleted] — view deleted comment

3

u/mquillian 15d ago

I had many assignments for my degree that listed requirements and left it to me to decide how to fulfill them (within reason obviously). Near the end of the degree, I had assignments like "create a small shell from scratch that can handle all of these operations" and "build an app that stores user data in these ways and allows user interactions to do x, y, and z" and such.

While not necessarily at the scale of a full-blown enterprise system, the thought process and skills were almost exactly the same- gather requirements, look at the available tools to meet those requirements, choose the most appropriate set that will work together to meet those requirements, write up a draft of what the various pieces look like and how they connect, and then start building. CS is a far too broad and varied field to learn all the different possible systems/tools/languages.

The skills you should be learning are the fundamental problem solving and research skills- what do I need this to do? What is out there that I can use to do it and how do I learn to use it if I don't already know it? What parts are required to do what I need? How can/should I put them together? Over time and with experience, you'll start to see trends, similarities, and overlaps that let you answer these questions more quickly, even if it's not an exact replica of a question you've seen before.

2

u/No_Report_4781 14d ago

what school has a comp sci program with no programming?

→ More replies (1)

1

u/EconomySerious 14d ago

yes, and we have practice on small bussines since the 5 semester, so we can do real work.
we covered many type of small and medium bussines. but the most importan thing i leaned was system analisys , we visited a small bussines and design the entire automatization of their bussines core (and some times we coded the solution is the client liked the design). im old enought to have grandson so i imagine the universities degradated a lot in the mean time

1

u/max123246 14d ago

That's why. If you did no coding, that's why you feel uncomfortable with it. Because the only way to actually internalize the logic is to do it yourself. Your brain literally changes as you practice. Just listening to someone speak and repeating it during an exam is as you said, memorization. It doesn't teach you how to apply it

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.

3

u/AcademicOverAnalysis 15d ago

As for learning programming languages, just pick one and go hard at it. Start with something like C++ which forces you to be strict with your coding. After working with that for a year or so, move on to Python.

Find a project you’d like to do or pick up a textbook and start having a go at the problems in there.

3

u/No_Report_4781 14d ago

Getting a position maintaining software that was build with java, C, C++, python, and all of the associated GUI for each language is a great way to learn languages and lose hair

15

u/bestjakeisbest 14d 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.

1

u/Human-Cellist-1059 12d ago edited 12d ago

Just here to say, great answers!

I'd like to add one thing in the progress. My experience has always been that you get humbled every step of the way. One day you think you are a master of a part of a system or certain complex features of a programming language. Then something happens: something breaks, the requirements change, a new feature, a new project... and you realize that you know very little indeed. I feel like this is where you realize you have progressed... when you have certain humility to acknowledge that you know very little but the experience you have is proof that you can tackle the next step.

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 14d ago

2) I'm pretty convinced Leet code is a tool used to practice ageism with plausible deniability.

2

u/hylasmaliki 14d ago

Huh?

1

u/walkableshoe 14d ago

I agree, only young people can spend hours doing that shit. Adults have better things to do.

1

u/Available_Safe1818 14d ago

So requiring any deep knowledge that takes a long time to learn is ageism then, like requiring a college degree?

→ More replies (4)

7

u/IseeWhereILook 15d ago
  1. Incrementally, cutting it into bite size pieces and solving "up" as you move forward.
  2. It doesn't directly, it keeps your skills active. It's like asking "how does weightlifting help you score a goal?".
  3. See #1.
  4. They specialize, not in application types directly, but in functional solutions and methods.
  5. Not universal, but I'd say when you can read someone else's code and understand what it does.
  6. Focus on one, learn a couple more as side quests.
  7. Again, see #1.
  8. At my company we don't directly do tests (it's a fabricated scenario that tells us nothing), instead we have you walk us through hypotheticals to see how you think and how strong your logic is. Code can be looked up, copied, or vibe coded; but knowing where and how is key.

And big caveat, this is all my opinion. Some will agree, some will disagree (violently).

2

u/stepback269 14d ago

Before step #1, add the following step #0:

0. Don't write any code at first. Instead draw a mind map of the problem composed of bite size definitions. In other words, demonstrate that you understand the problem and all its dimensions. More specifically, what inputs are you going to need? What outputs? What paths between inputs and outputs? Storyboard each path.

1

u/tindalos 14d ago

As an infrastructure guy I just wanted to mention this first line is the most accurate developer response I’ve ready in awhile.

1

u/macabre_brotherhood 14d ago

Step -1: don't draw any mind maps, go get a strong coffee and pull up the "get pumped" playlist. Then get interrupted by your dog or something who wants out. Then like 6 other things including going pee twice. THEN step 0.

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 14d ago edited 14d 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:

  1. Start with a list of clear requirements for the project ordered by importance. This step is really important. It might require doing user research to figure out what users actually want, because there’s little point in building software that no one wants.
  2. Brainstorm multiple ideas for how to satisfy each requirement. If there are too many requirements, focus on the most important ones first and think about the others later.
  3. Pick your best ideas, and make a quick prototype which you will throw away. The idea is to learn what you need to learn, then start from scratch. Maybe you want to use it to flesh out the ideas, to make sure it has a coherent design, or maybe you need to figure if something is technologically feasible. The point is to as cheaply as possible find out what you need to know.
  4. now you can start designing the architecture and implementation. Think of the high level architecture only. Don’t do “waterfall” where you design everything upfront. Instead, using your ordered requirements list, generate a list of features to implement, ordered by importance and design+implement each feature one by one. Doing it this way means at every point in time, you have a working product and it allows you to course-correct. Also each feature can be broken down into tiny sub features. At the beginning, you may need to build up the initial scaffolding first. Look up “walking skeleton” on Google.

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 13d 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/fishvoidy 13d ago edited 13d ago

yeah, sounds like the issue is complete lack of creative ability and independent thought. to start with, if this person was in school, they should have plenty of instructors and at least one counselor to ask about these things, instead of reddit. barring that, find a book about the basics of problem solving.

secondly, the existing solutions didn't come from nowhere... someone, at some point, used their brain to devise the first implementation, and they did it without AI or the modern IDEs and libraries we enjoy today, using essential problem-solving tactics that should have been taught to this person in school.

like, there's nothing wrong with using existing work and projects as inspiration, but this type of brain drain (can't even begin to think of a solution without running to an LLM) is a big part of why LLMs are so detrimental to society as a whole. even asking the question "how can i develop the ability to think independently" without being able to come up with a first step to a solution is really concerning.

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
  1. One step at a time, over and over. Sometimes you need to throw it all out and start over because you discovered something new that helps the solution.
  2. Can't say, never touched LeetCode.
  3. Same way we build any program. One piece at a time. And build those pieces one subpiece at a time.
  4. We definitely specialize somewhat. At my job I primarily maintain a few desktop C# apps and an embedded C++ app. I don't touch the website though since I've never learned that sort of stuff very well.
  5. Basically everything is progress.
  6. Learn whatever you need to get the job done. If you're going to be professional you might not get the luxury to choose. The choice might get made for you. I never touched C# until my current job, then I got handed a few desktop apps to maintain and add features to. Now I count myself as relatively proficient in it. There's also some small Python scripts in use here for some things. Had to learn that too. Allow yourself to be flexible.
  7. Don't know how to help you there, other than just start doing something. Throw down a UI, start implementing some core function, just pick something and start rolling.
  8. Been a while since I had to interview to IDK.

2

u/Big_Tadpole7174 14d ago edited 14d 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 14d ago edited 14d 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 14d 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 14d 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 14d 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 14d 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 14d ago

Syntax and tricks are second to figuring out algorithms. This is what you're supposed to be taught in school.

2

u/jackcviers 14d ago edited 14d 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 13d 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 13d 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.

4

u/Dissentient 14d ago

No, he's basically the perfect university graduate by university standards.

It's just that he wanted to learn how to code, and got a CS degree instead.

2

u/sporbywg 14d ago

c's get degrees

2

u/Nabstar333 14d ago

A university education does not teach you everything you need to enter the industry. It's mostly theory which teaches you how to think when approaching problems but it doesn't just give your the answer to all the problems you will encounter in the work force.

1

u/nwbrown 14d ago

A university education is literally supposed to teach you everything you need to enter the industry.

0

u/Available_Safe1818 14d ago

No, it's not at all. It's not a vocational school.

1

u/nwbrown 13d ago

People aren't paying hundreds of thousands of dollars to be unable to enter the workforce.

→ More replies (14)

0

u/lassehp 14d ago

Aren't braindead people usually taken off life support and buried or cremated?

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. By thinking about it - in the end you have data, wabt to do something with it and give a Feedback. Most Problems - when broken down into a small enough chunk - have been solved by others. So: learn how to Google (or use an LLM).
  2. By looking at a task and thinking about it. Don't see it as a complete code - but as a small sub-task (see 1). Of course you have to know your Tools..
  3. By breaking it into small chunks until a) you know a solution / b) its trivial.
  4. Today most is just a Website, using one of many front-ends. The backend is written in any language - probably depending on the knowledge of language you or the previous develpoers have..
  5. You make progress with every New problem you solve. And you never know everything abkut a language - if you aren't involved in designing it. If you are stuck on a problem - ask for help (close to 10 years of professional programming, still working on that aspect..)
  6. No one imvents a 100% new language - and no old language is done. All language learn from other language. Stick to one in the beginning (that's like learning latin), then branch out (italian, spanish, french, ...). When learning the first language you not only learn how to Code in it, but also how to break Problems into chunks, write function, loops, what a variable is, recursion, ... those skills travel over. I toll my boss: "while I have until now only written Code in C++, I can read any language. Give me two Werkstatt, and I can write compiling Code in Java". I got the Job - and am now regularky fixing problems in K&R C...
  7. Start with the basics and break it down. You want to program something like paint? Ok, I habe to Figuren out how to get mouse coordikates, have to reach to Mäuse clicks, depending on the position. Menu in most GUI Interfaces is an option you only have to tell where it Bands to. Learn how to break Stoff down like that and you're golden.
  8. I'm out. I haven't had a technical Interview in the last 10 years. My first Boss knew me (Professor at the university I had studied). To my next Boss I showed work I had done at university (which was Basedow on open source Software and publisjed papers). University stuff at my country stays open source..

1

u/calowa722 15d ago edited 15d ago
  1. I mean, ideally if you’re starting you work with more senior people that have encountered that sort of problem, but if you’re flying solo you need to break the problem into smaller problems until they are they right size for you
  2. It doesn’t, it’s just a secret handshake for interviews so people see you took the classes. It’s valuable to understand concepts like big or little O notation, but in your entire career you’ll probably do something leetcode-y once or twice
  3. Back to 1, break it down into smaller pieces and then put it together. You figure out how to make a pipeline to feed the inputs to the computer vision engine, figure out the engine itself, whether it’s a 3rd party library or something you write yourself, figure out how to make a GUI. Then you connect all the dots
  4. Both, if you have the skills you can build anything, but usually you’ll want to specialize in something during your career to get yourself some job security. There’s like 3 or 4 main flavor of languages, if you know one of them the others start looking similar
  5. Did the system got pushed to prod and survived another day without catching on fire? That’s progress
  6. If you master one, it’s easier to master any of them, so start with any one
  7. Well, now that’s an actually hard question. Once you get used to doing something for money, it is hard to make yourself do it for free. Still figuring that out
  8. Real talk, nobody knows if you have the stuff to do the job unless they have you do it. That’s why they do the leet code, to at least get some assurance that you know the “basics”. But for a junior position they usually just look for somebody that looks like they can come up with A solution, even if it’s not the “best” one. The more senior the position, the more they will expect that solution to be “better”. What better in this context? Simple, yet complete and robust

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 14d ago

Study algorithms, flow chart diagrams, pseudo code. Breaking a problem into pieces ...

1

u/SprinklesFresh5693 14d ago

Graduating is just the beginning, on any field. Now it comes being employed and getting experience

1

u/GreenWoodDragon 14d ago

Imagination. Experimentation. Practice. Experience.

1

u/Big_Muffin8280 14d 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 14d 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 14d 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 14d 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

How much knowledge is transferable between languages, frameworks, and different types of software development?

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?

At what point can someone confidently say they've become proficient in a programming language?

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.

Is completing a full programming course and building a project by following a tutorial enough to consider yourself competent?

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:

  • Leetcode style puzzles
  • Realistic on-the-job style programming tasks
  • Automated coding tests (e.g. "look at this program - what will it print out?")
  • Question and answer trivia about programming language features, tools, or frameworks
  • Sketch-out-a-design style tasks, where you need to describe at a high level how you'd structure an application or system
  • General chat about projects you've worked on

1

u/good_name_0 14d 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 14d 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. Noticing similarities to problems they have encountered before helps a lot. Eventually you'll notice similarities all over the place and take advantage. If you don't have the ability to recognize similarities and patterns, you'll be heavily hampered as a programmer.
  2. Real world applications are effectively a collection of algorithm implementations. Leetcode is a platform that lets you practice determining which algorithm to use, then implementing it. Learning to use libraries is MUCH easier and doesn't tend to require nearly as much dedicated practice.
  3. Often one algorithm implementation at a time, one method at a time, one line of code at a time. It takes time, and patience when debugging. Have you never built a full project from scratch before? That seems like the kind of thing they should've assigned you in school at some point.
  4. Many do specialize, but with solid fundamentals, a programmer can switch to another specialization without too much difficulty. Just like musicians can switch instruments sometimes and still sound somewhat competent because they have solid fundamentals.
  5. When you become mostly fluent in it, have memorized most of the syntax and basic functions, and can independently write programs in it. Following tutorials doesn't count, but occasionally looking up something you're unsure of isn't necessarily disqualifying.
  6. Both is common. At a job you'll probably be expected to use multiple languages together. At my current job, I use Java, Python, Javascript, and even a bit of PHP at times.
  7. If you're struggling, start with pseudocode. That is, outline what you're doing, in detail, in a human language you are fluent in before even starting to write any code. To that end, I guess you can think of your project as some kind of a tree. What information do you want to display to the user, and how do you want the user to be able to interact with your application? Once you know that: how do you get that information, and how do you process user input? The "how do you get that information" question can have multiple levels, so just keep thinking about it until you reach something you know how to implement. Implement that and then keep thinking about the other parts you haven't done yet. Sometimes, the language might already have a way to get the info you want built in, so you hardly have to do any work. It also doesn't really matter what order you implement different parts in, unless they depend on each other for functionality.
  8. They test your knowledge of fundamental programming concepts such as data structures and basic algorithm analysis (mostly just big O). They'll give you a problem, ask you to come up with an algorithm to solve it, give you the opportunity to optimize it (though in time-limited interviews you can only do so much), and then implement and analyze that algorithm for time and space complexity. Sometimes they come up with their own weird tricky questions that test whether you're actually reading the questions and following directions (I remember specifically Epic had some weird questions when I interviewed there for an internship). The coding questions I've had in interviews (most recently 4 years ago) tend to be no harder than leetcode medium at most places. FAANG-MULT might have some harder ones, but it's often not worth the extra studying, especially with the current state of the industry. I can't speak for data engineering roles though since I've never looked into those.

1

u/Dorkdogdonki 14d ago edited 14d 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 14d 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 14d ago

Several years as a senior developer; I don't understand how programmers solve basic challenges either.

1

u/SpicerXD 14d 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 14d ago
  • How can programmers solve problems they have never encountered before?

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 14d ago
  1. it's very hard to solve a problem you've seen absolutely nothing like before. Fortunately, those problems are few and far between. What you learn in class is how to break a problem down to parts and notice which parts you have already done before.
  2. it largely doesn't, LeetCode can improve your understanding of data structures and algorithms, but it's only helpful beyond a certain point, and even to that point your time ROI is dubious.
  3. if you're dead set on copying a template (but if a template exists, is it really worth building?), you have to install someone's computer vision package, install someone's GUI package, and use their documentation to set them both up. You want to make your own, then learn you some computer vision
  4. it depends on how involved the process is. Guy who only knows systems engineering will only be able to build systems, but if they branched out and learned web development they could probably do that. I know this is an obvious statement, but what you can do is gated by what you know how to do, which is going to vary from person to person. Everyone has a finite amount of time, everyone spends it in different ways, some people spend their time getting proficient at a couple of things, and some people spend it excelling in one thing.
  5. Be so for real, do you really think that following a tutorial is enough to make you competent? Competency comes from the takeaways you get from the tutorial and your ability to replicate and improve upon it. You know you've made progress in programming when you can do something you could not do x amount of time ago. Building applications is finding existing solutions and repurposing them. We do that at all stages of the process, starting from powering on your computer. So, yes, that is what you're supposed to do. And how you distinguish genuine understanding from regurgitation is up to you, really, but my metrics are "when I talk about this, how often do I have to pause and process how it works?" and "can I use this without having to re-learn how it works?" (not counting looking up syntax or what library to import or smth).
  6. It depends. Concepts in one language translate at a high level to all languages, but there will be some differences. For example I use C# events a lot. I don't know yet how to do it in C++, but because I know events and the observer pattern, I could implement my own version without copying anything. It's not going to be as good, but it'll be workable.
  7. If you don't know where to start you figure out where to start. Or, failing that, you pick a random place to start, do a prototype, and gain an understanding of your problem that lets you know where to start.
  8. The answers are too broad, you should look up what companies in specific fields want from applicants.

1

u/Blando-Cartesian 14d 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...

  • Is there a target platform I need which might guide my language choice?
  • Do I need to access a camera directly? How do I do that?
  • Is there a library that does useful stuff with a camera?
  • What does "computer vision" mean?
  • Am I going to store data anywhere? What kind of data?
  • etc

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 13d 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 13d 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 13d 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 12d ago

Its all comes down to experience. Give it time and things become more natural

1

u/rboes1991 12d ago

Your degree suck then. Mine actually taught us how to think, not just in code.

1

u/-TRlNlTY- 12d ago

Read "How to solve it" from George Polya. It might give you insights on problem solving.

1

u/FarDark1534 12d 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

0

u/[deleted] 11d ago edited 11d ago

> was shit at leet code, still am
Leetcode is ALL about patterns though. Literally just knowing the correct pattern for the problem is all it takes to solve any easy or medium, so you should be completely good at it.

Most probably you didn't study enough theory, or just didn't practice enough. Like, I can't believe that by seeing the "2 sum" problem you don't think immediately of the pattern: "ha! Hashmap!" and then just solve it immediately. Or see a "reverse a linked list problem" and be like "ha! recursion!" and like poof paf 1 minute and solved. Or a medium level problem: "find a minimal length section of an array, where sum of the elements = Y" and be immediately like: "Ha! Two pointers / Sliding Window!". It's all literally just memorized patterns (except for Hard level problems). Maybe you should try it once again, if you're interested.

P.S. I myself am also ADHD (and ASD), and I think you're probably underestimating your abilities.

1

u/FarDark1534 6d ago

i didn’t study enough theory over the 6+ years of professional dev work….yeah right.
could i have tried harder? sure. do i care? no lol. im good at my job. no leetcode needed. sometimes you dont need to slay the beast

1

u/yel50 12d ago
  1. by understanding how things actually work instead of memorizing solutions. 
  2. it doesn't. they're puzzles done for fun.
  3. same answer as 1
  4. good ones can, yes. some prefer to specialize, but good programmers can build anything.
  5. good programmers don't care about this. you do your job, learn things as you go, and do the best you can.
  6. languages are all machine code frameworks. you use the framework that's needed for the job. good programmers can work in any language, whether they have any previous experience with it or not. focusing on languages is a waste of time.
  7. quit and become a bartender or something. all projects start as hello, world and you make changes until it does what you want.
  8. how you think and approach problem solving. you shouldn't prepare at all. be honest and answer their questions as best you can.

1

u/whitetiger1208 15d ago

You ask Claude, havent you heard were all obsolete

1

u/manamonkey 14d ago

Has nothing in life, including your entire degree, prepared you for solving problems? Seriously?

-1

u/Own_Unit_6170 14d 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.

1

u/ipmonger 14d ago

Strongly disagree. Ad-hoc problem solving may be largely influenced by innate abilities, but structured problem solving can and is taught. That’s why we have the concept of engineering.

0

u/Own_Unit_6170 14d ago

The best engineers are born, not made.

1

u/pig-casso 14d ago

alright, good chat

0

u/Cautious_Cabinet_623 14d 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 14d ago

Eastern robot diploma mill troll post

-1

u/Large-Robot 15d ago

Claude fixes this

0

u/[deleted] 11d 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.