r/learnprogramming • • 4d ago

ASCII art but with whole words

8 Upvotes

I recently watched "Coding Challenge 166: ASCII Text Images" by The Coding Train and "I Tried Turning Games Into Text" by Acerola and was pretty fascinated.

So I got the idea of ASCII art but with whole words. Like I give the program an image and a paragraph and it outputs ASCII-like art comprised of words in the paragraph. They can be placed randomly (so yes, the original paragraph doesn't need to be retained), but the words can't be separated (e.g. words -> wor and ds). And, if for example the word "This" appeared 5 times in the paragraph, then the output must also have at most 5 "This".

Here's an ugly example output I typed

   the  words      used  are
 from       a text          file
and          they          don't
 have                         to
   be                        in
     order                 they
       can                be
         placed         all
           all       over
             the place

I've tried searching around for an existing implementation but haven't found anything yet.

To achieve this, I need an algorithm to calculate the density (and potentially even edge detection) for whole words, and an algorithm to smartly place a word into adjacent pixels, right?

I'd appreciate any help on how I should go about this.


r/learnprogramming • • 4d ago

Help Need help preparing for technical coding interviews

6 Upvotes

Hey everyone, I graduated last June, and I have been job hunting ever since. Out of over a hundred applications, I’ve only managed to land a handful of interviews, and I almost always feel completely unprepared for the technical coding assessments. I’m hitting a few major problems that I hope you guys can help me with. First, my background is primarily in full-stack web development, but when I try to grind LeetCode, it feels entirely disconnected from the day-to-day work I did when I was an intern. My current and only project experience revolves around CRUD, state management, API integration, and database interactions rather than the data-structure-heavy problems on LeetCode, making it hard to balance interview prep with practical skills. I'm also overwhelmed by fragmented job postings demanding everything from Java and Ruby to TypeScript, PHP, or Python, and it feels impossible to handle the tech stack whiplash without trying to master five languages at once. Finally, I feel stuck building basic CRUD apps, and I'm struggling to find a clear roadmap to learn more complex, enterprise-level concepts.

Because of this, I'm looking for tips or alternative resources on how to prepare for coding assessments (do I just keep grinding LeetCode problems?). I'd also love recommendations for good YouTube channels, documentation, or websites that teach web development from scratch through actual problem-solving rather than passive follow-along tutorials where I just copy their code. Finally, any advice on what key topics I should focus on to keep up with current industry demands would be huge. Thanks!


r/learnprogramming • • 4d ago

How to specialize in C++ and more theoric concepts?

2 Upvotes

I love C++. Although, in my studies, i really want to learn things like how exactly shared libs work in memory, or things like that. I never really contributed to an open source project and github is really confusing to me (im learning by myself).

May someone give me a light of how can i learn all of this concepts to kinda master this language? Like, C++ is so cool hehe

Thanks!
(im trying to learn graphics programming [opengl], maybe im gonna stick to this to a carrer on that. idk..)


r/learnprogramming • • 4d ago

What is the take between std::cout and std::print in C++?

31 Upvotes

While we already have std::cout and we can use it with the overloaded operator <<, I am wondering why C++23 has std::print. Both offer compile time type checking and compile time safety.

I generated the asm thru `g++ -O2 -S` and discovered that a Hello World program that uses std::cout generates ~30 lines of assembly and the same program that uses std::print generates ~29,000 lines of assembly!

Why do we need a separate way just to print on the console? Just because std::print offers cleaner syntax? What does std::print really solve?


r/learnprogramming • • 4d ago

How to learn DSA?

0 Upvotes

I have just started DSA so whats the best way to start and how to solve a leetcode a day cause i have no deep knowledge about DSA?


r/learnprogramming • • 4d ago

Looking for interesting GenAI + MERN stack project ideas

0 Upvotes

Title: Looking for interesting GenAI + MERN stack project ideas

Hey everyone!

I'm planning to build a full-stack project using the MERN stack and Generative AI.

I'm looking for ideas that go beyond a basic AI chatbot or simple API integration. I'd love to build something that solves a real-world problem and has practical use cases.

I'm open to exploring technologies like:

  • RAG and LLMs
  • AI Agents
  • Vector Databases
  • LangChain
  • AI-powered automation

If you've built something interesting or have any unique project ideas, I'd love to hear your suggestions!

What GenAI project would you build if you wanted to create something genuinely useful?

Thanks in advance!MERN stack project ideas


r/learnprogramming • • 5d ago

I had my first software engineering interview. Didn't get the job, but I can't stop thinking about the experience.

117 Upvotes

I studied a non-CS course at university, but my interest in programming actually started while I was still there.

After graduating, I started teaching myself how to code. But as anyone who's had to support themselves or a family knows, life doesn't always go according to plan. I needed to earn a living, and before I knew it, years had gone by.

I eventually found myself working in technical research and writing. It's technical work, and I've gained quite a bit from it, but I've always wanted to be the person building the software rather than just testing and writing about it.

This year, I enrolled in an eight-month backend development programme where we mainly used Python and Django. After completing it, I decided to switch to Java. I found myself drawn to Java. Since then, I've been spending my free time learning Java and Spring Boot and building personal projects, trying to get myself to a point where I can confidently work as a software engineer.

Recently, I got invited to my FIRST software engineering interview.

I was nervous, of course, but something interesting happened during the interview. The two engineers spent most of the time asking about one of my backend projects. They wanted to understand the design, why I'd made certain decisions, and what would happen if the system received the same event twice.

For once, I was having a conversation about something I'd actually built. I could explain my thinking, and I enjoyed it.

When the interview ended, I walked out feeling like it had gone well.

There was also a 60-minute technical assessment with SQL, Java coding, and multiple-choice questions.

I passed all the SQL test cases. Then came Java.

One question involved implementing a class with a constructor, a cost calculation, compareTo(), and toString(). I managed to get part of the output right, but the calculated value was wrong.

And some of the multiple-choice questions caught me out on things I really should have known. For example, I realized afterward that I'd misunderstood how a PriorityQueue retrieves elements.

A few days later, I was still thinking about the test, looking up questions and finding mistakes I hadn't noticed during those 60 minutes.

Then the rejection email came.

That was disappointing. I'd been trying to get into software engineering for years, and this was the closest I'd come.

The funny thing is that I also started questioning the interview itself. At one point, they asked whether I was familiar with Spring Boot. I said yes, that I'd built three projects using it. They moved on.

Two days later, I found myself wondering why I hadn't explained those projects further. That's how much I was overthinking the whole experience.

I don't know whether the technical assessment was the reason I wasn't selected. But it definitely exposed gaps in my Java fundamentals.

And that's what I'm trying to figure out now.

I've used a lot of time building projects and trying to understand backend engineering. But clearly, I also need to become better at solving unfamiliar problems without help, especially under time pressure.

For those of you who got into software engineering through self-study or a career change, how did you prepare for technical assessments?

Did you put projects aside for a while and focus on DSA and language fundamentals? Or did you find a way to balance both?

I'd really like to hear how you approached it, especially if you were trying to make the transition while working another job.


r/learnprogramming • • 4d ago

Discussion Path for a future WebXR dev

0 Upvotes

Hello,

What is the path for a future WebXR dev?

Right now I am studying the CS50x course from Harvard.

Is there something else I should learn along with it?

What is after that?

Thank you.


r/learnprogramming • • 4d ago

What would I need to do to get a career in programming?

8 Upvotes

I’m 23M and I’ve been doing programming, specifically game programming, as a hobby for a while. I started when I was like 13 with Roblox, which I stuck with for most of my time. Eventually, I dabbled with Unity, Unreal, and Love2D, but still primarily used Roblox until 2 or 3 years ago. I wanted to shake things up, so I decided to learn C++ and graphics programming despite the difficulty, I really enjoyed learning it.

Anyways, when it came time for college, I decided to pursue programming. Unfortunately, there have been difficulties, so I haven’t graduated yet, but I don’t know. I’m at a point where I feel like I need to think about a career, and I keep trying to chase programming, but honestly, I don’t think I take it seriously enough like, based on where I’m at now, I probably can’t get a job, maybe an internship, but idk. I don’t know what steps I should take to even consider doing this as a career.


r/learnprogramming • • 5d ago

How you plan and develop "complex" systems??

24 Upvotes

Well, I’m fed up with starting projects and leaving them unfinished, whenever things start to get complicated, I just give up.

Usually, when I work on a project, I don’t do any planning. I just start writing code until the pieces come together and make sense.

Just a moment ago, I was working on an inventory system for my game, but I started getting stuck on questions like "how will the inventory update when the server updates the player's inventory?" or "how will the inventory interact with the toolbar?". Things like this cause my brain to freeze up, and I end up giving up on the project, because implementing them at this stage would be a headache

Any tip is more than welcome.


r/learnprogramming • • 4d ago

Project Query

1 Upvotes

What projects to do while programming? Like should I clone a website or an application watching from YouTube. I have been doing only school assignments, what else to do as projects?


r/learnprogramming • • 4d ago

Java or Kotlin for a beginner interested in backend development?

2 Upvotes

Hello,

I’m a beginner learning programming as a hobby, and I’m mainly interested in backend development.
I’m currently trying to decide between Java and Kotlin. I know both are used for backend development, especially with Spring Boot.

Which one would you recommend for someone starting out? Is Java still the better choice for learning the fundamentals, or would Kotlin be a good starting point too?

I’m not really focused on getting a job right now, just learning and building some fun projects.

Thanks!


r/learnprogramming • • 5d ago

How do you deal with competition?

7 Upvotes

I’m learning comp sci and most of my course mates use AI to do their work.

And I try to do my work by myself and it takes long to do the work and I don’t even know if my work is correct or not.

I don’t know when I should use Ai and when I shouldn’t use it for programming especially if I get in a work environment


r/learnprogramming • • 5d ago

What programming projects should I put on my resume?

3 Upvotes

I'm looking for ideas to create some interesting and advance programming projects for fun and to put on my resume.


r/learnprogramming • • 5d ago

Best way to learn advance python?

5 Upvotes

Any good resources?


r/learnprogramming • • 5d ago

Why is C++ better than Python?

70 Upvotes

Hello! I am new to programming. Im in college and we use Python for my classes right now.

I hear people make a lot of jokes about how C++ is more powerful than Python, and should be used instead. But why?

Feel free to give me any tips as well, on things that helped you be a better programmer, or just any insight you may have! Thanks so much


r/learnprogramming • • 5d ago

Resource Ressources on how to start an open-source project and proper documentation

3 Upvotes

Hello everyone

I am currently working on a project that that I plan to release as open-source.

I am still a student and this project would be part of my portfolio that I will show later to universities I want to Apply aswell as being usefull to some people. This is the perfect Opportunity for me to learn in a real world environement with real feedbacks and gain some experience.

However I struggle on how to create the contributor onboarding and the developer experience.

My question might be a bit vague as I don't even really know what to look or ask for.

I am talking about the README, CONTRIBUTING and how to structure a doc folder with all the .md files.

in short how do I structure an open-source project before even releasing it, What makes a good open-source project and what ressources are there for me to learn everything I need to start.


r/learnprogramming • • 4d ago

Zero Excuses

0 Upvotes

If you are not willing to learn, no one can help you. If you are determined to learn, no one can stop you.

Zig Ziglar


r/learnprogramming • • 5d ago

Need project idea for my next hackathon that includes use of MCP and AI agents

0 Upvotes

So for my next hackathon the problem statement is to use AI agents, MCP , browser automation, and personal data intelligence. I want to build something that actually solves a real world problem that developers face and that has some real word impact , so your ideas and suggestions will really help me find some idea and also help the community


r/learnprogramming • • 5d ago

Need a Python Data Cleaning Project Dataset

5 Upvotes

I'm a 1st-year CSE student. My college teacher assigned me a Python Data Analytics project focused on Data Cleaning.

Sir has strictly instructed us not to use AI for the project. So I'm looking for a genuine.

If anyone can share their project or dataset for reference, it would be really helpful.


r/learnprogramming • • 6d ago

How do you guys search about complex and niche topics in programming without AI?

65 Upvotes

Hi guys, one question I had the other day was: How can a machine with 0 and 1 understand what I am writing, talk with the browser that talks with my system that understands JavaScript and is able to do so in milliseconds, how is all connected? Of course I can ask this question on some LLM and get somewhat useful answer, what I do is tell AI to give me a broad picture and then suggest me books/blogs/videos that go deeper, but how can developers without AI (especially seeing the decline of search engines) get to these answers fast? Or do they go on a reading-books-spree and then try to gather their ideas? Since there is always a lot more to discover, how to re-iterate the process to have a big and deep picture on everything that is going on under the hood? Or is slowing down and thinking deeper the solution? Like using real life scenarios or from some playing with tools gathering the knowledge to systems?

Thanks


r/learnprogramming • • 5d ago

Robot as intro for learning to code for kids

7 Upvotes

My son is turning 8 shortly and is interested in learning how to code. He loves anything involving mechanics and I thought about buying him a robot that he build/alter but also program to do basic functions. I believe that he will start using Scratch Jr at school from next year (we live in Australia).

I like the idea of micro:bit v2 with a tbot but also makeablock codey rocky looks interesting. My thoughts were that the options to attach Lego pieces to them would make things more interesting for him.

I have no experience with programming and don't know which one would offer a more seamless experience for a youngster.

Your assistance is greatly appreciated!


r/learnprogramming • • 6d ago

Is it still worth to read programming books in AI age?

58 Upvotes

I'm doing a 30 day reading challege for Refactoring by Martin Fowler. It's been 12 days so far. https://x.com/canbax18/status/2120601390489927877 Sometimes when I read very detailed descriptions of refactoring, I just skim through it. Because it feels like dark ages. AI could do all such refactoring very easily and fastly. Is there any other book like refactoring in AI age? Or do you thing coding software is just dead?


r/learnprogramming • • 5d ago

im starting to think im making a foul of myself while learning to program

4 Upvotes

im going to university soon and im picking computer science since im trying to break into cybersecurity, im learning how to code before university. i picked 2 tutorials on how to make paper rock and scissors. why 2? because one was using tools that i didnt learn yet and i dont wanna be a loser who just copy's stuffs without understand it. so if i see a tool that i dont recognize i switch to the other tutorial so i can use their tool that i recognize.

im i basically stupid for doing that? because as a person who inst really interested into becoming a software engineer i cant tell what im doing is basically right or wrong since i always get different opinions.