r/FullStack • • Nov 30 '22

Article Memoization in Python: The Core of Dynamic Programming

8 Upvotes

Overview of Dynamic programming

Richard Bellman created the technique known as "dynamic programming" in the 1950s. The primary goal of dynamic programming in data structure is to recursively divide a challenging problem into simpler subproblems.

Dynamic programming is a method of data structure which is used to solve several optimization issues in computer science and programming. Dynamic programming is a principle that applies to all programming languages, not just one in particular.

However, Python will be used for the examples.

The goal of an optimization task is to maximize or minimize a cost function under certain restrictions. There are numerous varieties of algorithms explicitly created to address optimization issues. For instance, the local minimum of a differentiable function can be found using the gradient descent approach. It is extensively utilized in deep learning and machine learning.

The use of dynamic programming is appropriate when an optimization problem:

  • Best substructure: It implies that we need to be able to divide the issue into more manageable issues. The smaller issues are resolved separately before being combined to address the larger issue.

  • Overlapping minor issues: It indicates that some of the subproblems are repeated more than once. The ability of dynamic programming to save the solutions to recurrent smaller issues is one of its advantages.

The examples of computing Fibonacci numbers will make the optimal substructure and overlapping subproblems more obvious.

Each number in the Fibonacci sequence is the sum of the two numbers before it.

  • Fib(0) is 0 and Fib(1) is 1. For n > 1, Fib(n) = F(n-1) + F(n-2)

As you can see, there are numerous repeating elements even in the calculation of a small fibonacci number. Fib(2), for instance, is computed three times.

Note : For technical and detailed explanation, you can refer to the data structure training, and learn the underlying concepts.

The simplest situations are zero and one. The work of calculating fib (n) is split into two pieces, fib(n-1) and fib, for any value of n larger than 1. (n-2). The called functions begin returning values to the previous function call once we reach fib (1) or fib (0). We eventually ascend to the top. As a result, this function is recursive.

The dynamic programming condition for the ideal substructure is compatible with this function. Because we are not utilizing overlapping sub-problems, it is not yet finished.

Let's construct a second function that retains calculation results so that repeated computations only need to be performed once. Memorization is the process of storing the outcomes of calculations on subproblems. The performance of these two functions will then be compared in experiments throughout time.

Because it stores the outcomes of calculations in memory, I gave it the name memoFib.

The function also accepts an empty dictionary as an argument in addition to n. It determines whether the outcome of any calculation is already present in the dictionary before beginning. Without it, the function calculates and stores the outcome in the dictionary.

We are currently utilizing the overlapping sub-problems.

Let's compare the fib and memoFib functions with specific experiments. Tiny fibonacci numbers will result in a relatively small time difference.

For fib(10), the difference is insignificant at 20 microseconds.

While memoFib(25) still requires microseconds to compute, fib (25) is on the millisecond level. Now let's try 40.

Now, there is a noticeable change. It takes 40 seconds to calculate fib (40). However, memoFib(40) is still operating at the microsecond level.

Conclusion

Memorization describes what we've done to save the outcomes. Essentially, we are exchanging time for space (memory). However, the time that memoization saves is insignificant in comparison. Numerous optimization issues are solved with dynamic programming of Data structure. If you want to learn more about DSA for your tech career, then sign up for Learnay data structure course today!


r/FullStack • • Nov 23 '22

Article How & Why I Built My Very Own Music Player

8 Upvotes

Hello FullStack community! 😀

So a few days ago I presented MonoBox here - a self-hosted music player I built 🎶

MonoBox's GitHub repo: MonoBox

Today I want to do something a little different - and present an article I wrote about the entire process I went through, the difficulties I encountered, and how I learned everything from scratch to build MonoBox. All of this in order to help other people who are also learning programming and might be struggling 👨‍💻

I would be absolutely grateful if you spare a few minutes to read what I wrote, and let me know what you thought (here or in the article itself) and in case you have not yet starred me on GitHub, shame on you I would greatly appreciate it if you could do so ⭐

Introducing MonoBox: How & Why I Built My Very Own Music Player

Another shorter piece that describes my process step-by-step and includes videos and coding milestones, which may provide additional or related ideas:

Build Your Own Spotify: Killer Programming Project Idea in React Native and FastAPI


r/FullStack • • Nov 19 '22

Personal Project Build a low-code open-source platform for fullstack engineers. Alternative to retool

8 Upvotes

Hey guys, I want to share our new project, ILLA Cloud, with you. I believe this will help your full stack workflow!

My team is working on a low-code open-source platform with Typescript. This is an open-source project, and it is an alternative to retool and appsmith. You can self-host your tool for free.

Recently, we built a new PAGE feature for our users. Now people can choose a design pattern when building their tools, multi-page applications (MPA), and single-page applications (SPA).

If you can have a look and give it a try, it will be awesome! We welcome all kinds of participation and help! If you have any suggestions or problems, please let me know!

Here is the repo: https://github.com/illacloud/illa-builder


r/FullStack • • Jun 25 '22

Question Struggling to understand how to test a fullstack application (Nextjs, MongoDB)

8 Upvotes

Hello! Im a fullstack developer, but i havent done fullstack web app testing before.

Im really interested in learning how, but i can’t grasp how to do fullstack testing. So far, ive heard of stuff like cypress and jest, but when i search up videos for them, they are super basic tests that check for html content and stuff like that.

Meanwhile, i feel like testing a fullstack app means cloning a test database, creating mock things in the database, testing if it creates normally, etc. complicated stuff.

How do i learn how to do that? Im struggling to find the right resources. Or maybe cypress and jest do support that? Is there a course that is good to learn this?

Thanks in advance :)


r/FullStack • • Apr 16 '22

Hi! I'm very noob with programmimg i have a question if i want to do a big proyect i need to make the frontend and the backend in a complety diferent folder? if not whats is the structure

8 Upvotes

r/FullStack • • Apr 09 '22

Demo of alpakr cli tiny tool to look up packages https://www.npmjs.com/package/alpakr-cli

8 Upvotes

r/FullStack • • Nov 29 '21

Architectural concerns for a Full Stack WebApp - ReactJS/NextJS, Express, SQLDatabase

8 Upvotes

Hi folks,

I am working at a small Software & IT Consulting company and have developed some applications with ReactJS so far. Until this point we have often been collaborating through teams or other partner companies which were responsible for the backend. At our company I am kind of the guy pushing things forward and introducing new tech, methodologies and mindset to the engineering team, but I simply cannot know everything which is why I wanted to reach out to you guys for some questions I have regarding my next project.

Hard facts about the project:
- Web Application with ReactJS in the Frontend
- Need an API to communicate (read and write actions) with a Database
- Single Sign on via LDAP (app. 40 to 60 users)

As the majority of my work experience in the frontend I wanted to ask what you guys would recommend in terms of tech stack, architecture etc and a short "Step by Step Guide" on how to combine these technologies together. Here is what I thought about:

  1. Tailwind CSS and ReactJS (maybe with Next.js) for the Frontend

  2. ExpressJS (I have created one simple demo API for myself, other than that I have no experience with it)

  3. Prisma for Database communication (if it will be SQL Server, do you have any recommendations on npm packages for dealing with OracleDB?)

  4. I have found the npm package "activedirectory" which I think could suit my needs for SSO

If you need any more info just let me know, either directly in the post or via dm. Also if anybody knows or has a github repo with this type setup I am grateful if you could link it so I can have a look on how to set up an app like this. I am very excited for this project and want to make the most out of it - in terms of the webapp itself as well as experience for myself.

Thanks in advance,

Cheers


r/FullStack • • Sep 24 '21

What Is DevOps?

8 Upvotes

As a culture and philosophy, DevOps has taken the IT world by storm. Patrick Debois, one of the industry's gurus, birthed the introduction to DevOps in 2009. The phrase "DevOps" was coined by combining the words "development" and "operations."

DevOps, explained simply, is a set of cultural concepts, practices, and technologies that improve an organization's capacity to produce high-velocity applications and services, allowing it to evolve and improve products faster than traditional software development and infrastructure management methods.

Here's our introduction to DevOps for beginners. Learn what DevOps is and how it works just in 5 minutes.


r/FullStack • • Aug 25 '21

10 years in, at a X-Roads. Your advice appreciated.

8 Upvotes

I’ve been prominently a fullstack dev for the last ten years. In the order of appearance: PHP, .NET 4.0, Python, Node, TypeScript.

The usual suspects in the front: CSS3, SASS, Babel, React, Angular, WebPack etc. If it solves a problem I’ve most likely at least tried it.

10 years in and I have to admit. I feel my passion turning into work. I’ve recently become interested in both Go and Solidity/Blockchain development.

If you were in my shoes and say had mediocre experience at all of the above, would you allocate your learning to Go, Blockchain or none? Also if you could please elaborate that would be much obliged.

🙏


r/FullStack • • Oct 13 '20

I curated all the remote job openings from Hacker News who is hiring - October

8 Upvotes

Here I would like to share more than 480 remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.

https://remoteleaf.com/whoishiring.

✅ 100% remote full-time jobs.
✅ Each and every job is manually curated and verified. Spent more than 14 hours for this.


r/FullStack • • Apr 05 '20

How To Become A Software Engineer For Free

Thumbnail
youtube.com
8 Upvotes

r/FullStack • • Mar 01 '19

Full-stack developers are in fact stuck at mid-level. Spare yourself from suffering – don’t go down that path

Thumbnail
habr.com
8 Upvotes

r/FullStack • • 11d ago

Career Guidance What should I focus on learning before starting my first full-time SWE job?

7 Upvotes

Hey everyone! I’m a college senior and received a return offer after my summer SWE internship. I have some free time before graduating and want to use it to prepare, but I’m honestly feeling lost about where to start.

What should I focus on to become a better engineer and be ready for a full-time role? I keep seeing DSA, LeetCode, system design, LLD, and AI engineering mentioned, but I’m not sure what to prioritize or what else I’m missing.

Does anyone have a helpful learning path or resources they’d recommend? Ideally free, but I’m open to paying for something really worthwhile. There’s so much out there that I feel like I’m falling behind, and I’d appreciate some guidance on what’s actually useful to learn at this stage.

Thanks!


r/FullStack • • Sep 19 '26

Need Technical Help How many days should i spend to learn Typescript?

7 Upvotes

I just completed JS and I haven't created any project or something on JS / frontend. So should i learn Typescript now because i have heard that TS is very important and it's similar to JS or should i move on to react or backend?


r/FullStack • • Aug 21 '26

Question MERN interview in 2 days — starting from almost zero. What should I focus on?

7 Upvotes

I have a campus placement interview on Monday for a MERN Stack Developer role, and honestly, I haven't prepared for MERN at all. 😅

I'm familiar with other programming languages like Python, Java, C/C++ and JavaScript, but I haven't really worked with MongoDB, Express, React and Node.js as a stack.

I only have 2 days left, so I've started learning the basics and I'm planning to focus on JavaScript first, then move through Node.js, Express, React and MongoDB.

For people who have recently given MERN/Full Stack fresher interviews:

What are the most frequently asked technical questions?

Which JavaScript concepts should I absolutely know?

How deep should I go into React, Node.js, Express and MongoDB with only 2 days?

Are there any common coding/programming questions I should practice?

What kind of project-related questions are usually asked?

What would you personally prioritize if you had only 48 hours to prepare?

Are there any common HR/technical questions specific to MERN fresher roles?

I'm not expecting to become a MERN developer in 2 days 😅. I just want to maximize my chances of getting through the interview and be able to confidently answer the fundamentals.

Any advice, question lists, interview experiences, or mistakes to avoid would be really helpful.


r/FullStack • • Jul 31 '26

Other Its defo possible to start freelancing in 2026

7 Upvotes

To anyone who wants to freelance in web dev 2026. It's definitely difficult but not impossible :)

I started 2 weeks ago and I kinda wanna summarise what I did. I'll continue on documenting my journey.

  1. I noted down any advantage I have.

- internet

-paris

-phone

I then started calling local businesses but it was difficult because I didn't have any credibility, so I changed my approach.

I went to insta and looked for creators, and businesses without a website and I messaged them. I then I decided to stop with creators and focus only with coffee shops. I sent a small message and i'll write it here.

"Hi!

I’m the founder of a creative studio specializing in website design and development.

We’re currently looking to expand our portfolio, so we’re offering a few websites completely free of charge in exchange for permission to showcase the final project in our portfolio.

Would this be something you’d be interested in?"

and 2 coffeeshops accepted. One of them even have 33k followers on ig and very popular in paris!


r/FullStack • • Jun 23 '26

Question How to start backend

7 Upvotes

What should I need to remember in backend in web development , and also what skill I must know for internship and backend developer. In mern


r/FullStack • • Apr 26 '26

Feedback Requested My Latest project

7 Upvotes

what do you think about my project ?

Link: github.com/Aditya2361/Stonks

"I couldn't deploy it yet"


r/FullStack • • Apr 02 '26

Personal Project Would this level of backend project be enough to get shortlisted for a startup role?

7 Upvotes

Hey everyone,

I’m currently preparing for backend roles (internships/junior), mainly targeting startups, my tech stack is python - django, and I wanted some honest feedback on a project I’ve been working on and planning to take to a production-ready level.

The project is an e-commerce backend built using Django + Django REST Framework, where I’ve tried to go beyond basic CRUD and focus on real-world backend concerns like performance, scalability, and clean API design.

Here’s the overall scope of the system:

Core API & Design:

- Designed relational models (products, categories, users, orders, cart)

- Built REST APIs using DRF ViewSets and tested using postman

- Custom serializer design (avoiding overuse of "depth")

- Clean and consistent API response structure

Data & Logic Handling:

- Derived fields (e.g., availability computed from stock instead of storing redundant data)

- Separation of concerns (keeping logic out of views where possible)

Performance & Optimization:

- Solved N+1 query problem using "select_related" (touched these kind of small edge cases)

- implemented caching using redis

Query Capabilities:

- Search functionality (SearchFilter)

- Filtering (category, price range, etc.)

- Pagination with metadata (count, next, previous)

System Features:

- JWT authentication

- Cart and order management

- Basic payment flow using stripe

Deployment & Practical Use:

- Deployed on cloud (AWS)

- Focus on making APIs usable in real-world scenarios

My goal is to focus on more indepth and complex projects and try to land one internship or any junior role ASAP.

I had a few questions:

  1. Would this level of backend project be considered strong enough to get shortlisted for internship or junior backend roles at startups?

  2. What gaps do you usually see in candidates even after building projects like this?

  3. How important is deployment and real-world usability compared to just having good code on GitHub?

  4. Is focusing heavily on backend/system design (instead of deep DSA) a reasonable strategy for startups?

Would really appreciate honest feedback — especially from people working in startups or hiring for backend roles.

Thanks!


r/FullStack • • Jan 18 '26

Feedback Requested Using ai for front end

7 Upvotes

i’m a final year engineering grad preparing for placements, trying to get a few good projects in before i start applying. for most of my front end part i’m using lovable. any bugs any issues i can easily handle them i just think it’s messing with my confidence. i’m just not sure if it’s okay to do what i’m doing, love brainstorming the backend tho

would love any inputs from you’ll about how i should go about creating projects


r/FullStack • • Nov 21 '25

Other Health advice

7 Upvotes

i am not feeling burnout but my brain is feeling something else, it is like strain or what is it common or i am feeling something different. I am coder and devoted to my work.


r/FullStack • • Oct 29 '25

Question Hey guys new here

7 Upvotes

Hope u re doing good guys i just wanna ask if possible i have a project where i should use django for frontend +rpc is there a youtub video or a link where i can learn this? And thank u guys


r/FullStack • • Sep 24 '25

Need Technical Help help with Ide Integration on my website

7 Upvotes

Hello everyone!!
I have a doubt how can i integrate working IDE similar to sandbox on my project ...I mean even i know it's not an easy thing but i am very curious about it and actually wanna do it so if some one can guide me through this..


r/FullStack • • May 26 '25

Question MERN Full Stack course suggestion

7 Upvotes

I need course suggestion ASAPP😭 Please suggest good FREE MERN fullstack development courses online. Even if there is no certification it's alright, I j need a good and reliable platform to start and learn properly and cover the basics fully. Any suggestions??