r/learnprogramming • u/way-maker-uk • 1h ago
Tutorial How to make Github strong?
To all the developer who have begun their journey what do u guys post on github ?
Is posting neetcode/leetcode problems good on it?
r/learnprogramming • u/way-maker-uk • 1h ago
To all the developer who have begun their journey what do u guys post on github ?
Is posting neetcode/leetcode problems good on it?
r/learnprogramming • u/Cold_Abrocoma7320 • 2h ago
import java.util.Scanner;
public class main
{
public static void main(String[] args) {
Scanner kboard = new Scanner(System.in);
System.out.println("Press 1 to enter lottery numbers or 2 to enter name: ");
if (kboard.nextInt() == 1) {
System.out.println("Enter your lottery numbers");
int lotteryNumbers = kboard.nextInt();
} else {
System.out.println("Please enter your name: ");
String name = kboard.nextLine();
}
}}
r/learnprogramming • u/ClerkDismal6922 • 5h ago
In a single-core system, what happens if two threads from different processes access the same physical memory address?
The official answer says:
Neither program crashes, and both produce expected results.
I don't understand why that must be true.
A memory access could be a write, not just a read. For example, couldn't Thread A read/write that address, then get context-switched out, and Thread B access the same physical address before Thread A finishes its operation?
Wouldn't that potentially cause a race condition or unexpected result, even on a single core?
Am I missing an assumption in the question?
r/learnprogramming • u/yahelthegamer_YT • 7h ago
i am learning computer science at school and wanna make some projects at home. i am currently learning java and decided to download visual studio code instead of using the online compilers like we do at school for some reason, and the installer asks me if i want to install github copilot CLI and i dont know what it is. should i install it or nah?
r/learnprogramming • u/Low-Beat2354 • 7h ago
Hi everyone,
I am a Master's student specializing in Machine Learning, Artificial Intelligence, and Image Processing. I am looking for projects to contribute to and would be happy to collaborate with anyone who has project ideas in these fields.
Thank you!
r/learnprogramming • u/Canlyre • 7h ago
Hello, I just want to start coding to teach ai and make my own. I know algorithms and stuff, but I never disciplined myself to do it for weeks, months. I think I will learn Python, and I think to start with Harvard’s CS50X and then CS50P im not sure if I should watch CS50AI because focusing on one source is bad, as I have been told. What are your recommendations?
r/learnprogramming • u/No-Jello-2665 • 8h ago
I am IT student but interested more in coding and programming stuff rather than hardware and started with web dev but ended soon because it wasn't fun enough, then started java and spring boot but that wasn't that much fun because everything seems to be confused and I don't know what's going on and then tried some modding started with minecraft but immediately quit (IDK Why) now I am thinking about to start with game dev to try to make tiny 2d game in java. but still I wanna hear from you guys.. Which Programming fields you found out more interesting and worth trying as beginner
r/learnprogramming • u/CreepyScallion1255 • 8h ago
I am in class 9 and wanna learn web dev but dont know what free course i should choose. Earlier I chose TOP but i have to install VM for that and my father is denying to do so cuz its his laptop... Please help me out... and make sure that the course you tell should be documented
r/learnprogramming • u/Bulky-Assistant-6933 • 9h ago
I've been practicing python on codewars.com, and this is listed as the best practice:
def alphabet_position(text):
return ' '.join(str(ord(c) - 96) for c in text.lower() if c.isalpha())
while my code is longer, but I feel is easier to read. Which one is better?
import string
def alphabet_position(text):
output = ""
for char in text:
if char.isalpha():
output += str(string.ascii_lowercase.index(char.lower()) + 1)
output += " "
return output.strip()
r/learnprogramming • u/Ambitious_Bottle4247 • 9h ago
Hey everyone, long time programmer here (14+ years)
I realized that AI fucked with my enjoyment of coding when it first released, and noticed myself getting more and more dumb (Literally couldn't think where to start on projects), and that made me depressed.
I ended up straight up going zero AI, and I have been loving it (Highly suggest everyone to question how much they rely on it).
Back to the topic.
I started learning Lua, and find it tricky to understand tables coming from C#, but I'm getting there.
I find that when I'm stuck between 2 or more design choices, and for the life of me can't decide, I ask AI, telling it to not just tell me I am right if I'm wrong, but actually give me good advice, and using AI also helps me ask a question on if my understanding of something is correct.
The main thing, I feel so ashamed of using AI for what I just listed above, but I know 1 person who does programming, the guy who helped me learn, and he stopped a long time ago with Programming, and yes, sometimes I ask him but it takes days getting a reply when I ask, so I find myself locked into asking AI for advice.
My main point of this is basically, why do I feel literally depressed sometimes just because I ask for input on my design choices and if I am understanding something correctly?
r/learnprogramming • u/No_Bad_4135 • 13h ago
I've been wanting to make a music player for a while now and trying to decide on the right language for it. My plan in the end is to make my own server like Jellyfin or Navidrome (I don't use those because they don't fit my particular taste and my own pride). But I realize I do first need a working application that runs alone. I'm gonna run these on windows and android and want to try make for both before branching out into Linux and Mac. So yeah. I just need to know what language I need to learn first
EDIT: I already know python if that's helpful
r/learnprogramming • u/ConsistentTwist221 • 13h ago
Background:
- From the U.K.
- Did an MSci in Maths and Statistics.
- Got a grad job at a Big 4 accounting firm and qualified as an accountant.
- Jumped over to being an analytics engineer instead, which has slowly shifted into being more of a data engineering / data platform engineering role.
Lots of SQL, Python (actual OOP not just scripting), some React (just so I could actually plug my stuff in).
Not sure where I go from here tbh. Used to be an AI sceptic but obviously I no longer am.
Do I want to remain a tech person with a background in accounting (in which case, what else do I learn?), or is the safer bet to be an accounting person with a background in tech?
r/learnprogramming • u/CheesecakeLeast1411 • 15h ago
I'm trying to create a video game, but it really frustrates me to spend 5 hours learning how to use the engine—especially its interface—and on top of that, I don't find object-oriented programming fun. However, I don't mind at all learning other skills (coding, pixel art, game design, etc.). That’s why I need an answer to my ultimate question: How do I create a video game without a game engine? I’m looking for an easy and accessible solution. I have absolutely no idea where to start, so please explain it to me as if I were 10 years old.
r/learnprogramming • u/Organic_Can_4328 • 19h ago
Hi everyone. I've been learning python fundamentals for the last few months, that is , variable to OOP. I can work with python really well on individual concepts, for instance any exercise that just requires OOP I can comfortably do it. So earlier this month I started working on python beginner projects to try and combine all those concepts. The first two projects(expense tracker, word guessing game) I worked on were okay and I was able to complete them in two days, but for my third project, a library management system, I've been at it for over two weeks, and I'm still stuck on the same problem. I tried researching and I still can't figure it out, cause there is always an error to fix. I feel so tired and burnout, which got me wondering, to all the python experts in this community, did you go through this phase or I'm I a little bit dumb. Also how did you not give up on programming and how did you start your begginer projects.
r/learnprogramming • u/cloudymargins • 19h ago
I'm a bit confused about something and wanted to hear honest opinions from people who have experience in software development.
I've been thinking about building projects using AI. My approach is to go through every step, understand what each line of code does, learn the basic concepts behind the technologies being used, and try to understand the overall working of the project.
However, I'm not necessarily writing all the code myself from scratch. AI is doing a lot of the actual coding, while I'm learning from the generated code.
My plan is to put these projects on my resume, but I'm worried about whether this is actually a good way to learn and whether it will be enough for interviews. I know I'll still need to practice DSA and coding fundamentals separately.
For those of you who have gone through interviews or work as developers, what do you think?
- Is understanding the code line by line and being able to explain the project properly enough to put it on a resume?
- Would you consider this a valid way for me to learn, or am I missing something important?
I'm not trying to take shortcuts. I just want to use AI effectively without fooling myself into thinking I know more than I actually do.
I'd appreciate honest advice.
r/learnprogramming • u/art_lck • 20h ago
Hi,
I plan to develop peripheral software to change input mapping, assign some macros to keys on my keyboard for macOS for a learning purpose.
I do have working code for Windows written in C++. But I can't tell that I don't have a lot of experience with Objective-C.
The questions:
Thanks
r/learnprogramming • u/TheEyebal • 20h ago
In c++ I have object files but can I get an executable in python?
r/learnprogramming • u/Robomaster_711 • 21h ago
So I am working on making my own Personal AI for an sci-fi generation ship themed bedroom but it looks jagged and smudged, how do I fix this?
My code is bellow:
import tkinter as tk
import math
# ==========================
# ASUS_v1
# ==========================
root = tk.Tk()
root.title("ASUS_v1")
root.geometry("1000x700")
root.configure(bg="black")
canvas = tk.Canvas(
root,
width=1000,
height=700,
bg="black",
highlightthickness=0
)
canvas.pack(fill="both", expand=True)
angle = 0
def draw():
global angle
cyan = "#00FFFF"
canvas.delete("all")
# ==========================
# TITLE
# ==========================
canvas.create_text(
500,
50,
text="ASUS ONLINE",
fill=cyan,
font=("Consolas", 24, "bold")
)
cx = 500
cy = 400
# ==========================
# OUTER RING
# ==========================
canvas.create_oval(
250,
150,
750,
650,
outline=cyan,
width=3
)
# Rotating markers
for i in range(12):
a = math.radians(
angle + i * 30
)
x1 = cx + math.cos(a) * 220
y1 = cy + math.sin(a) * 220
x2 = cx + math.cos(a) * 250
y2 = cy + math.sin(a) * 250
canvas.create_line(
x1,
y1,
x2,
y2,
fill=cyan,
width=2
)
# ==========================
# INNER RING
# ==========================
canvas.create_oval(
325,
225,
675,
575,
outline=cyan,
width=2
)
# ==========================
# CENTER CORE
# ==========================
canvas.create_oval(
450,
350,
550,
450,
fill=cyan,
outline=cyan
)
canvas.create_text(
500,
400,
text="ASUS",
fill="black",
font=("Consolas", 10, "bold")
)
# ==========================
# SYSTEM PANEL
# ==========================
canvas.create_rectangle(
20,
120,
180,
360,
outline=cyan,
width=2
)
canvas.create_text(
100,
150,
text="SYSTEM",
fill=cyan,
font=("Consolas", 12, "bold")
)
# ==========================
# PROJECTS PANEL
# ==========================
canvas.create_rectangle(
820,
120,
980,
360,
outline=cyan,
width=2
)
canvas.create_text(
900,
150,
text="PROJECTS",
fill=cyan,
font=("Consolas", 12, "bold")
)
# ==========================
# ANIMATION SPEED
# ==========================
angle += 0.5
root.after(25, draw)
draw()
root.mainloop()
memory for the AI: {
"user_title": "Sir",
"voice_enabled": true,
"hardware_thresholds": {
"cpu_percent": 85.0,
"ram_percent": 90.0
},
"protocols": {
"house party": {
"description": "Launch primary workstation suite",
"paths": [
"C:\\Windows\\System32\\calc.exe",
"C:\\Windows\\notepad.exe"
]
}
},
"dynamic_rules": {
"run diagnostic": "audit_logs",
"system status": "check_telemetry"
}
}
r/learnprogramming • u/Ok_Roll_8698 • 1d ago
hello guys i know the basics on how to code but is there anywhere i can get code for older smaller dos games or other small games
i am learning how to code and want to try port some games
thanks
r/learnprogramming • u/cross_asura • 1d ago
Greetings, I am currently a second year CS college student (first semester) while also taking leftover first year CS major subjects but since the job market, especially in tech (mostly because of AI), doesn't seem to be getting any better, I've been thinking of shifting back to my original course for the next semester, which is Psychology (second year, first semester before I shifted to CS) and pick up from where I left.
I shifted to CS because I've always been fascinated by Cybersecurity, programming, Linux, troubleshooting, creating things with code, etc. Plus, my uncle also told me to go for it because he said the demand is high and he knows someone from a company in Japan that's looking for IT grads.
The thing is... I'm fine with either but I really enjoyed CS.
CS is fun and I found it enjoyable since it drives me to focus and actually learn from the challenges presented to me. For Psych, I like learning about human behavior (predicting how they behave/act, how mental illnesses affects one, etc.).
I've heard that it is mostly AI-resistant since you need actual understanding of the human mind, emotions and the fact that some people would prefer talking to actual therapists, psychologists, etc. than machines/AI pretending to have emotions/feelings.
I'm aware that both fields are competitive but I'm worried about choosing the wrong path in the end and not having a stable job. I know everything may change... or not but I don't want to regret it and waste more years studying.
TLDR; I'm conflicted between continuing my CS course (2nd year, 1st sem with 1st year leftover majors) and shifting back to my Psych course (2nd year, 1st sem) due to the current unpredictable job market and possible unstable job in the future. I like both fields (leaning towards CS) but I don't want to waste more years studying just to spend a very long time looking for jobs for my chosen field.
I'm not sure if it would get any better or not in the future for tech students.
r/learnprogramming • u/Better_Addendum1944 • 1d ago
Guys I am in college and I am doing dsa and web development but Idk how to study devlopment in what way should I do it .. especially frontend . It feels wasteful to study it and write code . Plus i feel like I am struck in tutorial hell I can't think of new things . Anybody help me out how should I do the coding idk I am just watching the video I am learning from and writing the code he is doing it feels like I am just copy pasting not learning anything at all . Help me out plus also tell me how should I adapt and what things to focus to be able to get a job atleast -_-
r/learnprogramming • u/Overall_Bridge_3101 • 1d ago
its my first time ever to learn coding and i would know Your experience and what should i learn before i roll in Cybersecuritg and the types of it i want help to get start with it and the best open sources on internt?
r/learnprogramming • u/Ioelet • 1d ago
I always read stuff like „python is easier“ or „C++“ is more performative… and I have absolutely no idea what that is supposed to mean
For me (an arrogant mathematician) programming is just simple logic plus syntax. Everything comes down to definitions, calculations, saving values for variables and „If“. Most other syntax is just another way of writing those definitions, calculations, saving values for variables and „If“.
So, what’s the fuzz about? What‘s the difference? That language A uses another form of brackets? Or language B specifically needs something to be manually defined whereas language C just assumes standard definitions?
What am I missing? For me, learning syntax is the most dull aspect of programming.
r/learnprogramming • u/Upstairs_Jelly_1082 • 1d ago
I'm starting to realize how much I'm not going to get anything out of learning a degree.
The issue that I'm having with this is, I learn with lot of trial and error but I can't make up time for this because I then have the assignments, coursework and things like that and in that process I just forget that I actually have to build a skillset.
For me, I feel like I want to learn to write good code but I can't know whether I'm writing good because I don't know what to compare it and don't know how to review my work.
How do you go about reviewing code?
r/learnprogramming • u/oceansstillwaters_ • 1d ago
Im curious because i know about web coding on a computer but never really figured it out what smart phones use.