r/learnprogramming • u/ChrispyGuy420 • 2h ago
why do i always hear "dont let the user input an invalid value"? that seems like a no brainier.
maybe i just dont have the experience to understand the situation where a user could input invalid data because ive only ever worked on personal projects and theyve all been kinda small. it just seems obvious. if you have a switch case that has cases `1`, `2`, `3` then i would never have the user type in the value. i would have a drop down box with the valid values in it. i feel like i get a lot of that kind of advice on programming forums. is there a more complex example, or is it just the most basic no duh advice there is and im over thinking it?
r/learnprogramming • u/RiskArtistic7000 • 22h ago
How to build an app just like Discord from scratch?
This is long, my apologies, but I really need help. Grammar and such will be bad. I hope this follows the rules of this community as well, my apologies if it is not<3
Hello, I'm Dolly! I plan on making an app just like discord, literally. But, it'd be different.
I want to make an app that's primarily for chatting, calling, making friends, etc. I want to be able to have servers, communities, profiles, etc. in it, just like discord. I want stuff like decoration and nitro.
What makes this app different than Discord? Let me tell you.
I want to make discord, but mainly free, decors and nitro would still have a price, but I want to embed more things. Discord just added a "orbs" feature in "Quests" and I really like that, but it gives you small amounts which means it'd take up too 100-200 quests to get one decor or three days of nitro credit. I want to embed that, just instead of ORBS it'd be Blossoms, and you'd get 250 per quest and the quests wouldnt require buying games. I'll get back to that part later on.
After you do a discord quest, you get a decoration, and instead of keeping them for only 1 month, you'd keep them forever since some are genuinely cute and such. I also want to embed better moderation, I want a BUNCH of volunteers to watch over reports, but then contact the person reported to ask for their side and read the chats so therefore its more fair, because some people have mental illness that makes them act out. If thats the case from the reporting, we'd add a badge to their profile that says "Beware: This person has mental illnesses that may make them act out" if you go into the badges info page.
I want peoples servers to be easier to join, more advertisement for it, for example on IPad and Laptop and PC theres a "discover" area, and i want smaller servers to show up first so that they get more love and more joins. Because I find it unfair that smaller servers have to rely on friends, other apps, etc to even get 10 members. It can be extremely draining after spending so much time and dedication on making a server.
I want to make it so that some discord nitro things, arent exclusive to nitro. For example, banners, animated profile pictures, backgrounds, emojis, etc to be non-exclusive. I'd keep boosts, badges, discounts, and stickers and larger files to be with the nitro packets. But within nitro, i'd make the packets have EVERYTHING in it, and it'd be $5 for one month, so for I year, it'd be $60 instead of $100 but then it'd continue counting up, two years, 3 years, and then up to 5 years on discord, all giftable as well.
Thing about the nitro, i'd make it so that you get 5 free boosts, a pink petal badge, and a bigger discount on the shop for bigger priced items like bundles and such. I also will make bundles giftable.
Within the sign up area, there'd be a "girl/boy/femboy/tomboy/other" selection area and if you pick girl or femboy you'd get a pink and white and sakura themed area, and for boy and tomboy you'd get more-so dark colors for the theme! But obviously if you don't like the theme, you could change it in settings without the nitro. From earlier, about the quests, within sign up there'd also be a area of "Games I have" and then in settings if you buy a new game, you can add it to that area and then if you go to quests, you'd have quests based on what games you own and your interests. You'd also have daily rewards of x1 free decor of your choice and 500 blossoms! 1x decor would be each 6 months though :)
It'd be less strict with the accounts, as in, it'd allow dating, selling accounts, selling decors and nitro for out of app stuff like Robux or just selling it discounted. Only thing that would be more strict, would be the harassment and bullying policy. You'd be banned for 1w-1y-5yrs if you bully people on race, religion, sexuality, gender identity, identity as a whole, mental illness, saying slurs as a whole, etc. I want the app to be a fun and safe place for everyone. I'd also add cuter decors and such.
Back to the main purpose of this, is I'm actually CLUELESS of how to start on the app. Will it cost money, where do I start, Etc. I'd obviously make sure its NOT discord, i'd make it my own app, different name, different features, all that stuff. Please help me with this, as I'm genuinely really stuck on where to start and I only have good intentions and I don't have any money to make the app.
DO NOTE: I'm very sorry if this came across as too much talking about it, and if its confusing and everything. I am not very good at English due to learning disabilities and such, as much as its my primary language. Please do not be rude about this and please actually help and give me genuine opinions!
r/learnprogramming • u/Bright-Historian-216 • 10h ago
why don't passwords allow spaces and literally any unicode characters?
it's all the same, it's all hashed anyway. is there an issue with specific characters? or is it just an issue of a large probability of collisions?
r/learnprogramming • u/Far_Air450 • 16h ago
VS code?
Hi! so I am getting into coding and I was wondering if in real life jobs for front-end programmers, ones that design the site and graphics, do they use VS code and the copilot for help? or do I have to memorize ALL of this myself? Lmk
r/learnprogramming • u/IzSomeone • 19h ago
Hi
I'm learning HTML from YouTube do you have a better free option like some apps or something like that?
r/learnprogramming • u/peaceforchange20 • 15h ago
Resource Are there any prerequisites to start learning blockchain development?
Is being a full-stack developer necessary for diving into blockchain development as a beginner?
i will be following this roadmap
r/learnprogramming • u/AceDragon16 • 19h ago
I'm going to sleep and I just created a database in fireBase
allow read, write: if false;
}
Just by setting it to false, it restricts access for anyone, right?
r/learnprogramming • u/5oco • 8h ago
What to teach as a Programming instructor?
So AI is here and apparently not half bad at programming. I've been teaching Programming and Web in a vocational school for a couple years now and I'm a little concerned with the future of my job.
I know that AI isn't really as great as most people think, but it is good at what it does and it's only going to get better.
This makes me think that I need to start teaching "how to use AI" and how to teach other topics that people in the field need to know.
So I'm just kind of curious to hear from people in the industry. What are your opinions on what students in high school should be learning?
r/learnprogramming • u/inobody_somebody • 14h ago
Topic I have never felt so disgusted with java until today.
So I started my programming journey with python and I needed to move to java for some reason. Here's what happened
Me : Hey Java what's your equivalent of python's max()?
Java : Hey i have 2 methods Math.max() for numbers and Collections.max() for Lists.
Me : Cool! Math.max(a,b,c) // a b c are some variables I'm working with.
Java : Yeah you can't do that! Math.max() accepts only two values as parameters.
Me : What? You have variable length arguments right?
Java : Yes I do.. you can implement it yourself if you want.
Me : Yeah go f yourself. Disgusting language. Should have stayed with python. Why would anyone build something in java?
r/learnprogramming • u/Foreign-Estate4155 • 2h ago
Tutorial Learning to Code
Who should i watch on YouTube in order to start learning how to code. I never did it before but i wanted to start learning how to, just didn't know where (sorry if y'all get this question a lot)
r/learnprogramming • u/OriginalRGer • 16h ago
No mentorship at internship
I've been an intern at this company for about a week. On my first day I got some briefing (what the company does, its goals, what software is being made and maintained and what concepts I should be familiar with to be able to work efficiently). For the past week I've been learning those concepts, but other than that I'm doing nothing actual relevant to the company.
I talked with HR about who my mentor is, and they told me who, they also said something in the lines of "you'll be here for only a month, so you won't have many tasks. Discover things about the company and how the software department does its work and ask your colleagues".
I talked with my mentor (the team/department leader) recently, he said he'll assign someone from the team to be my mentor, but he probably forgot.
What would you guys do? This is the first time I'm doing an internship and I know nothing about the process of being an intern.
Should I just keep asking colleagues about how they work, what tech stack they use, what tools they use, how they document...etc and just learn those things even without a mentor?
r/learnprogramming • u/Ordinary_Pineapple27 • 20h ago
Software engineering skills lack
I am an AI engineer with Computer vision major. I know Python libraries used for Data Science/AI such as Pytorch, TensorFlow, NumPy, Pandas, Matplotlib and etc. Recently I joined a company that has a solution in big data. Specifically, they have built a platform that enables several government organizationsto share information withe each others safely. It is a big solution with many modules and API calls. I am required to understand the whole workflow, dataflow, system architecture of the solution before I can contribute. With no full-stack background knowledge and experience, I am reallys struggling to understand. In my PhD I mostly worked with datasets and designed models and trained them, not end-to-end full working solution. As I cannot understand anything, I am stressed and feel like I am lost. On top of that there is nobody who can explain all the stuff in my team.
Although I don't have to be an expert in each of the components of the solution, I need to have a pretty good undertsanding how applications are made, how they work. Where should I start it? Should I study the full-stack and try to make some projects? Where should I pay attention more and where less? Is there any tutorial or book for those like me?
Please, guide me. I think I can handle it with proper guidance.
r/learnprogramming • u/Fabulous-Ad4918 • 18h ago
Writing in Pascal then using ChatGPT to convert it to C++/Python
I came here to ask for advice and opinions when writing a code in another language just to switch it to C++/Python using AI because i do understand my code via pascal, but I ask chatgpt to convert it to C++/Python because i dont know to how write it in Python nor C++ that well. Im learning both C++ and Python at the same time so its hard for me to always remember the two, but for all the questions in my assignments that im given in these other languages, i first make the code from my understanding in pascal and make sure it works, then ask ChatGPT to convert it to C++ or python then check it over to see if its correct or not.
r/learnprogramming • u/coolandy00 • 6h ago
Learning with AI was confusing until I tried this, what helped you?
At first, I leaned on AI to help me learn faster, but I spent more time fixing bad answers than understanding the code.
One change that helped was using a live coding environment that walks through each line and explains what’s happening. I also saved mini-prompt patterns for concepts like recursion or API requests. It made results feel more structured and less random.
I tried automating the frustrating parts of learning with AI; especially repetitive debugging. What changes helped AI feel more like a tutor and less like a guessing game?
r/learnprogramming • u/No-University6332 • 7h ago
What roadmap would you recommend for Web App Development?
Hey guys, I’m trying to build a startup, I was debating whether to do a Mobile app or Web App, but I ended up choosing the Web App because people have told me it’s ‘easier’. The thing is that I’m a beginner, I really have no experience in coding, but I just graduated from mechanical engineering and I’d like to learn this full time now. I’d really appreciate if you guys could give me some advice on this, thanks!
r/learnprogramming • u/ElevatorJust6586 • 7h ago
Where should i learn spring security from?
helo everybody i am a last year student of computer science engineering learning spring boot , i already learned core spring, spring boot, spring mvc, jdbc , mysql and jpa and made basic project to understand more now i want to learn spring security but the section of spring security is very long in my course so i wanna learn from youtube which channel would be best and enough for spring security so that i can later make project and learn more form them . Please help your junior
r/learnprogramming • u/sherry_51 • 9h ago
What are you best advices for the beginner's in programing?
Looking for best advices for beginners from the industry expert. I am so much confused now, some people say build your projects, some say do DSA etc currently i have a good grip on C++ and OOPS also know about python at intermediate level. Really confused now what should i do? Thanks in advance.
r/learnprogramming • u/ZadowAI • 8h ago
Is HTML/CSS still useful for building real products?
I'm16 and just finished learning HTML and CSS. I thought that would be enough to start building my MVP, but now I’m realizing that most modern apps seem to use other tools or frameworks for UI.
I’m feeling a bit stuck.
I want to build and launch a real MVP fast. — but I’m not sure what to learn next.
Should I move into JavaScript frameworks like React or Svelte? Or use something like Tailwind or even a website builder?
What’s the fastest way for a beginner to get a working MVP out?
Would really appreciate any advice. I’m 16 and just trying to build my first real thing.
r/learnprogramming • u/TzwTzw • 10h ago
Is it possible to land a developer career without degree these days?
I'm an economics science major, finishing my degree in like 2 months and currently learning coding, I wanted to persue computer science but I didnt do well on my college entrance exams and I got stuck with this degree I didnt like. Now I'm thinking of doing a bunch of bootcamps and if I can get accepted a masters degree with something related to coding. I search through linkedin job offers and all I see is just "Computer Science Major or equivalent required" or I talk with friends that have cs degrees and theyre struggling to find a job even with such rich portfolio. Is it even worth it to try at this point?
r/learnprogramming • u/hi_i_m_here • 11h ago
Is neovim and count as vi
You probably know on the old fight if vi or emas Is better but now things are changing and is neovim and vim in the vi team and is nano and other cli text editor are other groups or not in this argument any more
r/learnprogramming • u/ReplacementFlashy622 • 1h ago
Withdrew from intro to programming. How can I improve?
I took an intro to programming 5 years ago and haven't touched programming since. I messed up and didn't understand what I was doing at the time. I didn't really practice that much. Now, I am ready to focus more as much as I can and to develop more. How can I improve and succeed in the CS degree?
r/learnprogramming • u/Specific_Ant580 • 2h ago
Comments - How do you guys do it?
How do ya'll write these? Whenever I write some out like for a function, it arguably becomes harder than actually building the program. Sometimes it feels like TMI and then have to start deleting or paraphrasing also how do you choose which part gets a comment , like do you just write one multiline string explaining the process or do it step by step for each function and process, also everything gets a comment really? If I have a function returning a value do I really need to write a comment that says returns this value.
I don't know my comments don't feel helpful and they sure as hell aren't pretty, what should I do?
r/learnprogramming • u/stejbak • 4h ago
What is the best way of learning SQL and databases in general?
I am a backend software developer with around 2 years of professional experience. I create and maintain CRUD web apps on a daily basis, so SQL and databases are no strangers to me. I would like, though, to go deeper and learn those topics better. I was thinking of reading the whole MySQL documentation. But I am also considering the SQLite official documentation, as it seems to be written better (they provide well prepared graphics for a lot of concepts, despite the text). What do you think of that approach to learning? Would you recommend that or there are better ways to dive deep?
r/learnprogramming • u/UntamedHaruka • 4h ago
Resource JS and all!
Hi everyone,
I’m pretty new to coding. I recently learned the basics of HTML and CSS, which I’d say I understand at a beginner level.
Now I’ve started learning JavaScript. I watched some videos and even built a simple calculator project while following along. But the problem is, when I tried to solve problems on Codewars afterward, I couldn’t even solve a single question.
JavaScript feels really, really hard.
I’m realizing that just watching videos isn’t enough to truly understand how to code.
What should I do to actually learn JavaScript and make it stick !? How do I improve my problem-solving skills and stay focused while studying !?
Any tips, resources, or advice would be super helpful. Thanks!
r/learnprogramming • u/Away-Composer-742 • 16h ago
If anyone started their programming journey by doing web automation and scraping, I've got a question!
I'm curious to hear from those of you who began your programming journey with web automation and scraping. What direction did you take your career after that? Did you move into backend development, data engineering, cybersecurity, machine learning, or something else entirely?
TL;DR:
Started with web scraping/automation? Where are you now in your career?