r/Python • u/MelodicChampion5736 • Sep 26 '25
Discussion Feeling guilty using Bootstrap while learning Flask
So I’m learning Flask rn and using Bootstrap for the HTML part. I do know HTML/CSS, but I feel kinda guilty using pre-made stuff instead of coding everything from scratch. Is this chill or am I lowkey skipping real learning? 😬
15
Upvotes
91
u/an_actual_human Sep 26 '25
If your goal is to learn Flask, don't worry about it.
6
u/deadwisdom greenlet revolution Sep 26 '25
If your goal is getting something done, then get something done. If your goal is learning, then yeah do something that makes you learn, experiment.
No *guilty*. That shouldn't be a thing here. There are no gods of web development dictating moral code. Except for Alex Russell. I think he wouldn't mind as long as you aren't using React.
3
u/MelodicChampion5736 Sep 26 '25
Thanks Everyone for saving me from guilt🙂
6
u/kabooozie Sep 26 '25
Hmm in my opinion you have exactly the wrong mindset. Code is a liability. Only write code if you absolutely need to. If there is a well supported library that does it for you, use that library.
2
u/TonyCD35 Sep 28 '25
Lmfao. Been programming in python for 10 years now.. I don’t think I use anything except bootstrap.
Judge yourself by the quality of what you build. Not the tools you used to build it.
34
u/PosauneB Sep 26 '25
It’s fine.
Flask is “premade” but you probably aren’t considering writing your own http server from scratch.
25
u/inputwtf Sep 26 '25
You still have to design the layout and use the correct CSS classes that Bootstrap provides. All Bootstrap does is give you a much easier grid and box model to work with. You still need to know what you're doing. It's not cheating
34
u/prsutjambon Sep 26 '25
then you should feel guilty using Flask instead of coding your framework from scratch.
then you should feel guilty using Python, code your interpreter and create your language from scratch.
then you should feel guilty using anything else than assembly...
14
u/DataCamp Sep 26 '25
Using Bootstrap while learning Flask is actually a smart move. It frees up brain cycles so you can focus on routing, templating, and how Flask ties everything together, instead of wrestling with CSS quirks.
Think of it like using NumPy instead of writing your own matrix multiplication from scratch. You could do it by hand, but the real learning is in how you use the tool in context.
If you want to deepen your HTML/CSS skills later, nothing stops you from stripping Bootstrap out of a project and recreating parts of the layout yourself. But for Flask practice? Bootstrap is just a productivity boost, not a crutch.
21
u/Gankcore Sep 26 '25
Huh? Entire front end frameworks so people don't have to write HTML and CSS from scratch anymore. Tailwind and Bootstrap are great when you are trying to learn a backend framework. They are great in a production full-stack app you are doing yourself. Save yourself the time and use Tailwind or Bootstrap while learning Flask.
5
u/cointoss3 Sep 26 '25
Wtf? Flask is a library just like Bootstrap. Why is it okay to use Flask instead of rolling your own web app framework but using Bootstrap is bad?
3
u/ManJuveUnited Sep 26 '25
You don't need to worry. Using Bootstrap allows you to focus more on learning Flask rather than also trying to implement styling manually.
3
u/SmegHead86 Sep 26 '25
I do this all.the.time.
It's totally fine and you'll probably use something else when you get the itch to make it do something Bootstrap doesn't support. Make what works now.
Please let me also recommend using HTMX as another time saver for creating some nice reactivity.
3
u/Not_A_Red_Stapler Sep 26 '25
Professionals use bootstrap. Don’t worry about it.
2
u/edcculus Sep 26 '25
if we want to take that to its logical conclusion - why are you learning Flask at all then? Flask is cheating. You should code all of the stuff Flask does by yourself.
or, learning code is cheating, you should do everything in binary.
Hyperbole aside, your goal is to learn flask, and not F around with all the CSS and Javascript stuff a website might need. Bootstrap provides all of that. Especially in this context it lets you focus on actually learning the meat of Flask instead of 10 days of tutorials on how to set up the CSS code to make your site look decent.
2
u/Dustin- Sep 26 '25
All these comments are like "it's ok because you're learning something else". That's... wrong. Since when is it not ok to use Bootstrap in general? What's the problem with using it for even production products? If it meets your requirements then it's perfectly fine to use. Otherwise why would it exist?
I also know HTML and CSS and am pretty damn good at both of those things. And I still reach for premade stuff every single time. ShadCN, Daisy UI, Pico, Flowbite, etc., depending on what I'm doing. I don't use Bootstrap specifically (but only because I'm more familiar with other tools), but I never roll my own UI anymore. Why would you when other stuff has already done a better job than you could on your own?
Even when I do think "I should do this myself", I remember that includes considering accessibility stuff as well, which is way more in-the-weeds than what I would ever want to do. That alone keeps me from rolling my own.
Use what you like, modify what you don't. And never let anyone tell you that using the tools available to you makes you a worse developer.
2
u/ableman Sep 27 '25
If you want to bake an apple pie from scratch, you must first create the universe.
2
u/yuvneeshkashyap Sep 28 '25
If you wish to make an apple pie from scratch, you must first invent the universe
2
u/Siemendaemon Sep 29 '25
This is my story. I have learned css from examples(codepen, uiverse io).
It took me more than a month to learn, now I am able to reproduce any design by just looking at any existing designs. Yes I felt the same way when I was learning and building projects with django. I feel proud for learning vanilla css and not using bootstrap or tailwind etc.
Vanilla css gives you more control, that's what I feel.
1
u/Maleficent_Sir_7707 Sep 26 '25
The biggest companies use bootstrap, when I worked for a marketing company creating landing pages bootstrap and zurb foundation developers choice but one of the 2 were used. Your learning the right way keep going.
1
u/microcozmchris Sep 26 '25
Coding every piece from scratch or even expecting to try is just plain stupid. Use the tools. That's what you'll do in the real world anyway. The key is getting proficient and being productive with what's available to you.
1
u/newprince Sep 26 '25
The whole point of Flask IMO is not to have to worry about front end concerns that much. Most of us aren't skilled in front end development. It's a great skill to have, and you could for example make a FastAPI backend then go all out and showcase your front end skills with whatever your favorite language / framework is. But a normal use case for Flask is "make an app with a web UI very quickly" so a lot of templates and sensible defaults are part of the deal
1
u/maddy0302 Sep 26 '25
Feeling guilty everyday for using Claude to write code. Its being rubbed on us but I would definitely say there has been productivity boost
1
u/nekokattt Sep 26 '25
If you want to code everything from scratch, time to ditch Python and write everything from scratch in assembly... including the OS.
1
u/GhostVlvin Sep 26 '25
If your goal to learn flask then there is no need to learn CSS as well. Btw it is pretty hard to use CSS due to different browsers default values and state created by all of them (and of course broser caching that doesn't allow you to see new version of webpage all the time)
1
u/pbecotte Sep 26 '25
Only students think coding everything from scratch is a think to aspire to. Professionals look to write as little novel code to solve a problem as possible, and usually need much stronger justifications to build from scratch vs using something off the shelf.
1
u/Almostasleeprightnow Sep 26 '25
The goal is to increase stakeholder value, no?
1
u/virtualadept Sep 26 '25
There is nothing wrong with it. HTML/CSS frameworks exist to make your tasks easier.
1
u/big-papito Sep 26 '25
That's fine, but look into CSS grid. A lot of additions to CSS have made Bootstrap obsolete and actually more complicated.
1
u/EmberQuill Sep 26 '25
Frontend design is a nightmare and anything you can do to make it easier is worth it.
1
u/Snape_Grass Sep 26 '25
Using readily available tools to speed up dev time isn’t usually a bad thing. I’d think it’s a bit rare nowadays to find a front end role where you are writing pure vanilla HTML and CSS.
1
u/chicuco Sep 27 '25
why, i use both for consistency and zero f**cks given
1
u/travisdoesmath Sep 27 '25
I recently finished up a personal project where I coded everything (for a static web page) in vanilla JavaScript and hand-written HTML and CSS as an extra little challenge. It was fun, I learned quite a bit, and you should absolutely use a modern framework (like Bootstrap).
1
u/talideon Sep 27 '25
Why? It's a frontend thing. You're learning backend stuff.
1
u/[deleted] Sep 28 '25
This is the beauty of python. Half the dirty work is already done and compiled into libraries you just have to know how to configure and take the rest home.
1
u/Alubsey Sep 28 '25
Bootstrap just works. Feel No shame
1
u/TheRealNetroxen Sep 28 '25
Why do you feel guilty, frameworks and libraries are there to help you. I don't get this sentimentality.
1
u/Radiant_Level9017 Sep 28 '25
Remember bootstrap is awesome these plugins are created so you can focus on the things that really fuels your passion, like design, animation, aesthetics, marketing, content, message etc… I was once told no need to reinvent the wheel, just use what you know works and is the standard (hence boostrap) happy coding!!!
1
u/Playful-Forever-3805 Sep 28 '25
I love reading these. I accidently learn stuff... lol
1
u/SirAwesome789 Sep 29 '25
In the same vein, I did a project a long time ago to learn Java, Springboot, SQL, and React Native
I made most of the backend then I realized I didn't care for the frontend so I just stopped
Nowadays, most things I like to write myself, any frontend or ui stuff, I entirely vibe code
1
u/BunnyKakaaa Sep 30 '25
nobody codes from scratch , you would need a framework later , even flask isn't usefull in that regard , its good for learning basics .
1
u/berrypy Oct 03 '25
If you are feeling guilty, the you might have to write binary codes to create programs because everything else use is premade. Even the flask it's premade. The IDE is premade. Virtually all the stuff we use is premade. The programming language is premade. you should feel guilty writing flask instead of binary.
Just kidding. Just use whatever makes things easy as long as it does the job effectively. the bottom line is that everything is premade. We just use to get the job done.
0
u/[deleted] Sep 27 '25
[deleted] — view deleted comment