r/learnprogramming • • Mar 26 '17

New? READ ME FIRST!

825 Upvotes

Welcome to /r/learnprogramming!

Quick start:

  1. New to programming? Not sure how to start learning? See FAQ - Getting started.
  2. Have a question? Our FAQ covers many common questions; check that first. Also try searching old posts, either via google or via reddit's search.
  3. Your question isn't answered in the FAQ? Please read the following:

Getting debugging help

If your question is about code, make sure it's specific and provides all information up-front. Here's a checklist of what to include:

  1. A concise but descriptive title.
  2. A good description of the problem.
  3. A minimal, easily runnable, and well-formatted program that demonstrates your problem.
  4. The output you expected and what you got instead. If you got an error, include the full error message.

Do your best to solve your problem before posting. The quality of the answers will be proportional to the amount of effort you put into your post. Note that title-only posts are automatically removed.

Also see our full posting guidelines and the subreddit rules. After you post a question, DO NOT delete it!

Asking conceptual questions

Asking conceptual questions is ok, but please check our FAQ and search older posts first.

If you plan on asking a question similar to one in the FAQ, explain what exactly the FAQ didn't address and clarify what you're looking for instead. See our full guidelines on asking conceptual questions for more details.

Subreddit rules

Please read our rules and other policies before posting. If you see somebody breaking a rule, report it! Reports and PMs to the mod team are the quickest ways to bring issues to our attention.


r/learnprogramming • • 1d ago

What have you been working on recently? [November 28, 2026]

6 Upvotes

What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

A few requests:

  1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!
  2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!
  3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

This thread will remained stickied over the weekend. Link to past threads here.


r/learnprogramming • • 5h ago

Cybersecurity, game development, or deep learning? I can't decide.

6 Upvotes

I'm genuinely interested in all three, and that's the problem.

I've been learning programming and recently completed MIT 6.100L. Now I'm trying to figure out what to explore next.

Cybersecurity, game development, deep learning all three sound equally exciting to me, and I can't seem to settle on one.

For those of you who've been in a similar situation, how did you decide what to pursue? Did you just pick one and see where it took you, or did you find a way to explore everything?

I'd love to hear your experiences and advice.


r/learnprogramming • • 13h ago

Looking for recommendations: Best resources to learn DSA from scratch

17 Upvotes

Hello everyone!

I am a first-year Computer Science and Engineering (CSE) student, and I want to start learning Data Structures and Algorithms (DSA) from the absolute ground up.

Could anyone suggest high-quality websites, books, or courses that are beginner-friendly?

I would also love to hear any tips, strategies, or roadmaps you wish you knew when you were starting out.

Thanks in advance for your help!


r/learnprogramming • • 2h ago

Languages What should i consider when choosing between C++ and Rust as my main programming language

2 Upvotes

Currently i only really plan on programming simple tools for myself but in the future i also need to learn programming for engineering. What should i consider when choosing between the two, what are some important considerations and what should i be aware of?


r/learnprogramming • • 19h ago

If you had 3 months off this winter, what would you focus on?

27 Upvotes

Imagine you had three months completely free this winter.
You have some experience with competitive programming, a decent foundation in math and computer science, and enjoy solving problems on LeetCode and Codeforces.
You're still learning, don't have a particular area of interest yet, but you're disciplined and enjoy challenging yourself.
How would you spend those three months to become a better programmer and software engineer? What would you focus on?


r/learnprogramming • • 4h ago

i have a poblem

0 Upvotes

soo i crated my own script for a game to farm but i what the script to farm on the game soo i can do what ever i what on my pc but the script start to tipe on my drscktop can you help me pls

my script
import ctypes

import subprocess

import win32gui

import time

import random

import threading

import keyboard

import tkinter as tk

from tkinter import font as tkfont

import vgamepad as vg

# ── CONFIG ──────────────────────────────────────────────────────────────────

WINDOW_TITLE = "BongoCat" # adjust if title differs in your language

TOGGLE_KEY = "F8"

INTERVAL_MIN = 0.055 # pauza intre cicluri (~10-12 cicluri/sec)

INTERVAL_MAX = 0.085

HOLD_MIN = 0.015 # cat timp stau apasate simultan

HOLD_MAX = 0.025

DEBOUNCE = 0.26

# Ruleaza DOAR cand BongoCat este fereastra activa (evita deschiderea tastaturii cand scrii)

ONLY_WHEN_BONGO_FOCUSED = True

PAUSE_ON_WINDOWS_SEARCH = True

KILL_TOUCH_KEYBOARD = True

# Am scos X / Y / SHARE / OPTIONS pentru a evita scurtaturile tastaturii virtuale

# Disponibile: "CROSS", "CIRCLE", "SQUARE", "TRIANGLE", "L1", "R1", "DPAD_UP", "DPAD_DOWN", "DPAD_LEFT", "DPAD_RIGHT"

KEYS = [

"CROSS",

"CIRCLE",

]

# ────────────────────────────────────────────────────────────────────────────

def _ds4_dpad(attr_name: str):

return getattr(vg.DS4_DPAD_DIRECTIONS, attr_name, None)

DS4_DPAD_NONE_VAL = _ds4_dpad("DS4_DPAD_NONE")

BUTTON_MAP = {

"CROSS": vg.DS4_BUTTONS.DS4_BUTTON_CROSS,

"CIRCLE": vg.DS4_BUTTONS.DS4_BUTTON_CIRCLE,

"SQUARE": vg.DS4_BUTTONS.DS4_BUTTON_SQUARE,

"TRIANGLE": vg.DS4_BUTTONS.DS4_BUTTON_TRIANGLE,

"L1": vg.DS4_BUTTONS.DS4_BUTTON_SHOULDER_LEFT,

"R1": vg.DS4_BUTTONS.DS4_BUTTON_SHOULDER_RIGHT,

"DPAD_UP": _ds4_dpad("DS4_DPAD_NORTH") or _ds4_dpad("DPAD_UP"),

"DPAD_DOWN": _ds4_dpad("DS4_DPAD_SOUTH") or _ds4_dpad("DPAD_DOWN"),

"DPAD_LEFT": _ds4_dpad("DS4_DPAD_WEST") or _ds4_dpad("DPAD_LEFT"),

"DPAD_RIGHT": _ds4_dpad("DS4_DPAD_EAST") or _ds4_dpad("DPAD_RIGHT"),

}

DPAD_BUTTONS = {

"DPAD_UP",

"DPAD_DOWN",

"DPAD_LEFT",

"DPAD_RIGHT",

}

BG_MAIN = "#09090b"

BG_CARD = "#121216"

BG_BTN = "#18181f"

BG_BTN_ACT = "#241322"

BORDER_CLR = "#22222b"

FG_WHITE = "#ffffff"

FG_PINK = "#ff5ec4"

FG_MUTED = "#a1a1aa"

DWMWA_USE_IMMERSIVE_DARK_MODE = 20

DWMWA_CAPTION_COLOR = 35

DWMWA_TEXT_COLOR = 36

gamepad = None

running = False

paused_by_bg = False

lock = threading.Lock()

_last_toggle = 0.0

press_count = 0

elapsed_sec = 0

last_tick_time = None

status_label = None

btn_toggle = None

count_label = None

timer_label = None

title_label = None

root = None

def init_gamepad():

global gamepad

if gamepad is None:

gamepad = vg.VDS4Gamepad()

gamepad.reset()

gamepad.update()

def release_all_gamepad():

try:

if gamepad is not None:

gamepad.reset()

gamepad.update()

except Exception:

pass

def close_touch_keyboard():

if not KILL_TOUCH_KEYBOARD:

return

for proc_name in ("TabTip.exe", "TextInputHost.exe"):

try:

subprocess.run(

["taskkill", "/F", "/IM", proc_name],

stdout=subprocess.DEVNULL,

stderr=subprocess.DEVNULL,

creationflags=subprocess.CREATE_NO_WINDOW,

)

except Exception:

pass

def is_windows_search_active() -> bool:

if not PAUSE_ON_WINDOWS_SEARCH:

return False

try:

hwnd = win32gui.GetForegroundWindow()

if not hwnd:

return False

title = (win32gui.GetWindowText(hwnd) or "").strip().lower()

cls_name = (win32gui.GetClassName(hwnd) or "").strip().lower()

search_titles = {"search", "căutare", "start", "searchhost"}

search_classes = {

"windows.ui.core.corewindow",

"searchui.searchwindow",

"launcherframe",

}

if title in search_titles or cls_name in search_classes:

return True

if "search" in cls_name or "searchhost" in title:

return True

except Exception:

pass

return False

def get_target_hwnd():

hwnd = win32gui.FindWindow(None, WINDOW_TITLE)

if hwnd and win32gui.IsWindow(hwnd):

return hwnd

return None

def is_window_open() -> bool:

return get_target_hwnd() is not None

def is_target_focused() -> bool:

if not ONLY_WHEN_BONGO_FOCUSED:

return True

target_hwnd = get_target_hwnd()

if not target_hwnd or win32gui.IsIconic(target_hwnd):

return False

fg_hwnd = win32gui.GetForegroundWindow()

if not fg_hwnd:

return False

if fg_hwnd == target_hwnd:

return True

try:

parent = win32gui.GetParent(fg_hwnd)

while parent:

if parent == target_hwnd:

return True

parent = win32gui.GetParent(parent)

except Exception:

pass

return False

def hex_to_colorref(hex_color: str) -> int:

hex_color = hex_color.lstrip("#")

r = int(hex_color[0:2], 16)

g = int(hex_color[2:4], 16)

b = int(hex_color[4:6], 16)

return (b << 16) | (g << 8) | r

def style_title_bar(window, active_text_hex: str = FG_WHITE):

try:

window.update_idletasks()

hwnd = ctypes.windll.user32.GetParent(window.winfo_id())

if not hwnd:

hwnd = window.winfo_id()

dwm = ctypes.windll.dwmapi

dark_mode = ctypes.c_int(1)

dwm.DwmSetWindowAttribute(

hwnd,

DWMWA_USE_IMMERSIVE_DARK_MODE,

ctypes.byref(dark_mode),

ctypes.sizeof(dark_mode)

)

cap_color = ctypes.c_int(hex_to_colorref(BG_MAIN))

dwm.DwmSetWindowAttribute(

hwnd,

DWMWA_CAPTION_COLOR,

ctypes.byref(cap_color),

ctypes.sizeof(cap_color)

)

txt_color = ctypes.c_int(hex_to_colorref(active_text_hex))

dwm.DwmSetWindowAttribute(

hwnd,

DWMWA_TEXT_COLOR,

ctypes.byref(txt_color),

ctypes.sizeof(txt_color)

)

except Exception:

pass

def format_timer(seconds: int) -> str:

mins, secs = divmod(max(0, seconds), 60)

hours, mins = divmod(mins, 60)

if hours > 0:

return f"{hours:02d}:{mins:02d}:{secs:02d}"

return f"{mins:02d}:{secs:02d}"

def press_keys_simultaneously(key_names):

global press_count

std_buttons = []

dpad_dirs = []

for name in key_names:

upper = name.upper()

val = BUTTON_MAP.get(upper)

if val is None:

print(f"[press] Unknown or unsupported PS button '{name}'")

continue

if upper in DPAD_BUTTONS:

dpad_dirs.append(val)

else:

std_buttons.append(val)

if not std_buttons and not dpad_dirs:

return

try:

if gamepad is None:

init_gamepad()

for btn in std_buttons:

gamepad.press_button(button=btn)

if dpad_dirs:

gamepad.directional_pad(direction=dpad_dirs[-1])

gamepad.update()

hold = random.uniform(HOLD_MIN, HOLD_MAX)

if hold > 0:

time.sleep(hold)

for btn in std_buttons:

gamepad.release_button(button=btn)

if dpad_dirs and DS4_DPAD_NONE_VAL is not None:

gamepad.directional_pad(direction=DS4_DPAD_NONE_VAL)

gamepad.update()

with lock:

press_count += len(std_buttons) + len(dpad_dirs)

except Exception as e:

print(f"[press] Error on PS buttons {key_names}: {e}")

def auto_press_loop():

global running, paused_by_bg

cycle = 0

while True:

with lock:

is_running = running

if not is_running:

paused_by_bg = False

time.sleep(0.05)

continue

if not is_window_open():

release_all_gamepad()

time.sleep(0.2)

continue

if is_windows_search_active() or not is_target_focused():

if not paused_by_bg:

paused_by_bg = True

release_all_gamepad()

close_touch_keyboard()

apply_theme(True, bg_paused=True)

time.sleep(0.08)

continue

if paused_by_bg:

paused_by_bg = False

apply_theme(True, bg_paused=False)

try:

press_keys_simultaneously(KEYS)

cycle += 1

if cycle % 8 == 0:

close_touch_keyboard()

except Exception as e:

print(f"[loop] Error: {e}")

delay = random.uniform(INTERVAL_MIN, INTERVAL_MAX)

if delay > 0:

time.sleep(delay)

def apply_theme(is_active: bool, bg_paused: bool = False):

if not root:

return

active_fg = FG_PINK if (is_active and not bg_paused) else FG_WHITE

def _update():

style_title_bar(root, active_fg)

if title_label:

title_label.config(fg=active_fg)

if status_label:

if not is_active:

status_label.config(text="○ STOPPED", fg=FG_WHITE)

elif bg_paused:

status_label.config(text="⏸ PAUSED", fg=FG_MUTED)

else:

status_label.config(text="● RUNNING", fg=FG_PINK)

if count_label:

count_label.config(fg=active_fg)

if timer_label:

timer_label.config(fg=active_fg)

if btn_toggle:

btn_toggle.config(

text="■ STOP [F8]" if is_active else "▶ START [F8]",

fg=active_fg,

bg=BG_BTN_ACT if (is_active and not bg_paused) else BG_BTN,

activebackground=BG_BTN_ACT,

activeforeground=FG_PINK

)

root.after(0, _update)

def set_not_found_state():

if not root:

return

def _update():

style_title_bar(root, FG_WHITE)

if status_label:

status_label.config(text="✕ WINDOW NOT FOUND", fg=FG_WHITE)

if btn_toggle:

btn_toggle.config(text="▶ START [F8]", fg=FG_WHITE, bg=BG_BTN)

root.after(0, _update)

def toggle_running():

global running, paused_by_bg, _last_toggle, last_tick_time

now = time.time()

if now - _last_toggle < DEBOUNCE:

return

_last_toggle = now

with lock:

next_state = not running

if next_state:

if not is_window_open():

running = False

paused_by_bg = False

set_not_found_state()

return

init_gamepad()

running = True

paused_by_bg = not is_target_focused()

last_tick_time = time.time()

else:

running = False

paused_by_bg = False

last_tick_time = None

release_all_gamepad()

apply_theme(next_state, bg_paused=paused_by_bg if next_state else False)

def reset_stats():

global press_count, elapsed_sec, last_tick_time

with lock:

press_count = 0

elapsed_sec = 0

if running:

last_tick_time = time.time()

refresh_stats_ui()

def refresh_stats_ui():

with lock:

c = press_count

t = elapsed_sec

is_active = running and not paused_by_bg

fg = FG_PINK if is_active else FG_WHITE

if count_label:

count_label.config(text=f"{c:,}", fg=fg)

if timer_label:

timer_label.config(text=format_timer(t), fg=fg)

def ui_tick():

global elapsed_sec, last_tick_time

if not root:

return

with lock:

if running:

now = time.time()

if last_tick_time is not None:

elapsed_sec += int(now - last_tick_time)

last_tick_time = now - (now - last_tick_time - int(now - last_tick_time))

refresh_stats_ui()

root.after(200, ui_tick)

def on_hotkey(event):

toggle_running()

def on_close():

global running

with lock:

running = False

release_all_gamepad()

root.destroy()

def build_gui():

global root, status_label, btn_toggle, count_label, timer_label, title_label

root = tk.Tk()

root.title("LGF // Controller")

root.geometry("320x235")

root.resizable(False, False)

root.configure(bg=BG_MAIN)

root.protocol("WM_DELETE_WINDOW", on_close)

root.attributes("-topmost", True)

root.attributes("-alpha", 0.97)

style_title_bar(root, FG_WHITE)

f_title = tkfont.Font(family="Consolas", size=13, weight="bold")

f_stat = tkfont.Font(family="Consolas", size=9, weight="bold")

f_lbl = tkfont.Font(family="Segoe UI", size=8)

f_val = tkfont.Font(family="Consolas", size=14, weight="bold")

f_btn = tkfont.Font(family="Consolas", size=10, weight="bold")

f_mini = tkfont.Font(family="Consolas", size=8)

header = tk.Frame(root, bg=BG_MAIN)

header.pack(fill="x", padx=16, pady=(14, 8))

title_label = tk.Label(

header, text="LOCAL GAME FARM",

font=f_title, bg=BG_MAIN, fg=FG_WHITE

)

title_label.pack(side="left")

status_label = tk.Label(

header, text="○ STOPPED",

font=f_stat, bg=BG_MAIN, fg=FG_WHITE

)

status_label.pack(side="right", pady=(3, 0))

card = tk.Frame(

root, bg=BG_CARD,

highlightbackground=BORDER_CLR, highlightthickness=1

)

card.pack(fill="x", padx=16, pady=(2, 12))

left_box = tk.Frame(card, bg=BG_CARD)

left_box.pack(side="left", expand=True, fill="both", padx=12, pady=10)

tk.Label(

left_box, text="PRESSES / CLICKS",

font=f_lbl, bg=BG_CARD, fg=FG_MUTED

).pack()

count_label = tk.Label(

left_box, text="0",

font=f_val, bg=BG_CARD, fg=FG_WHITE

)

count_label.pack(pady=(2, 0))

divider = tk.Frame(card, bg=BORDER_CLR, width=1)

divider.pack(side="left", fill="y", pady=8)

right_box = tk.Frame(card, bg=BG_CARD)

right_box.pack(side="right", expand=True, fill="both", padx=12, pady=10)

tk.Label(

right_box, text="ACTIVE TIMER",

font=f_lbl, bg=BG_CARD, fg=FG_MUTED

).pack()

timer_label = tk.Label(

right_box, text="00:00",

font=f_val, bg=BG_CARD, fg=FG_WHITE

)

timer_label.pack(pady=(2, 0))

controls = tk.Frame(root, bg=BG_MAIN)

controls.pack(fill="x", padx=16)

btn_toggle = tk.Button(

controls,

text="▶ START [F8]",

font=f_btn,

bg=BG_BTN,

fg=FG_WHITE,

activebackground=BG_BTN_ACT,

activeforeground=FG_PINK,

relief="flat",

bd=0,

highlightthickness=1,

highlightbackground=BORDER_CLR,

pady=8,

cursor="hand2",

command=toggle_running

)

btn_toggle.pack(fill="x")

footer = tk.Frame(root, bg=BG_MAIN)

footer.pack(fill="x", padx=16, pady=(10, 0))

tk.Label(

footer, text=f"Target: {WINDOW_TITLE}",

font=f_mini, bg=BG_MAIN, fg=FG_WHITE

).pack(side="left")

btn_reset = tk.Button(

footer, text="RESET",

font=f_mini, bg=BG_MAIN, fg=FG_WHITE,

activebackground=BG_BTN, activeforeground=FG_PINK,

relief="flat", bd=0, cursor="hand2",

command=reset_stats

)

btn_reset.pack(side="right")

root.after(200, ui_tick)

return root

if __name__ == "__main__":

keyboard.on_press_key(TOGGLE_KEY, on_hotkey)

threading.Thread(target=auto_press_loop, daemon=True).start()

root = build_gui()

print("INFO F8 = Start/Stop | Close window to exit")

root.mainloop()


r/learnprogramming • • 9h ago

Computer sci tips pls

2 Upvotes

Currently i’m learning DSA (Divide and conquer, stack and queue, Binary search, Greedy….etc) and Back End development (Express.js, node.js……etc) and I need some tips or maybe some resources that could help me.

Also i feel like computer science isn’t for me. I mean it’s normal to feel that way but i’m still trying to find ways to enjoy CS


r/learnprogramming • • 5h ago

Is programming dead?

0 Upvotes

The question may sounds funny. But I am having hard time with my mental condition right now. So, please help me sort my feelings.

I started programming journey in 2018. I was in class 8 and there was a programming contest for us. My school provided an one month preparation guide. I participated on that and I was my district topper and I went to our capital city for the next round. I was so happy with problem solving. Afterwards, I continued study and learning programming language and problem solving as a hobby.

My major was science and I was not a bad student. I got GPA 5.00 on SSC and my big brother asked me what I want to do next. And from the love of computer and programming, I chose diploma in computer. I learned web design(frontend) then backend and work on some projects to support myself financially. Before completing diploma, I got a job as a backend developer in a company.

I worked there for 1 year and 1 month and then the branch is closed and we are fired recently. I loved to code myself. Even though I used AI, I make sure I have full control over the codebase. I worked on planning and structuring the project before writing code. But the last months in my job, it was becoming very toxic. Everyone is depended to much on AI and no one knows what's happening inside. I still tried to continue use my brain whenever I can. But the expectation has become too high and I have became too slow in there perspective.

So, I also started depending on Agentic coding too much to compete faster. After a while I figured that I have stopped doing anything myself and I am depended on AI for small changes too. And in a few days, I figured that I am not liking the job that I used to like the most. To be honest, when I started the job I was so happy working too much. I never felt it was my job. I was obsessed with it. My company never forced me to work more then my working hours, I was supposed to work for 8 hours. But most of the days I stayed office for 12-14 hours and it was my life and I was so happy.

In the last months, I started getting emotionally damaged due the toxic expectations and Agentic coding. I was applying for jobs and there are no response to them. Every company started to lay off and stopped hiring. I applied in many places where ever I find a related job post but there are not a single response. I am totally burn out. In the last days when I still have the job, I was feeling like living dead. I don't felt to do anything. Like eating or normal staff that I need to do daily started to become pain to me. I just wanted to lay like a dead. I watched anime and shut down my brain most of the time.

After getting fired, I returned to my home. And it's been 20 days, I am only sleeping and eating and watching anime one after another. Few times, I sited for coding but it's like I need to force myself to do that. I started searching for jobs and there are no jobs related to mine I could find. I got so disjointed. I tried researching the marketplaces and find out every one of them is dying little by little. Everyone is working with agent nowadays and the thing that I loved is fading away.

I don't know what's happening and what's going to happen anymore. I thought I will continue problem solving only for the sake of my satisfaction, just like I play football without any expectations in return. I opened leetcode and tried solving a problem. I did solve that, but can't felt the urge to continue solving more.

Sorry for my bad writing, I hope some of you can relate my situation and can give me your thoughts about it.

Thanks in advanced.


r/learnprogramming • • 1d ago

Topic [Homework] How is Go actually standardized if there's no ISO standard? (Conflicting answers)

26 Upvotes

Hi everyone,

I'm working on a homework assignment about how programming languages are standardized. Since Go isn't governed by an external body like ISO or ECMA, I've been researching what rules it actually follows, but I keep getting conflicting answers.

Some sources point to the Go Language Specification as the closest thing to a formal standard. Others emphasize that there is no independent foundation, and that the language is entirely directed by The Go Team at Google. Meanwhile, some people argue that tools like gofmt and the Go 1 Compatibility Promise are what actually normalize the ecosystem.

I'm trying to understand the big picture for my assignment. Could someone explain how these pieces actually fit together?

What is the definitive answer here? Is the Language Specification considered the official standard, or is standardization in Go achieved purely through Google's governance and community tools?

I don't need a full essay, just a clear explanation of what I should be citing as the "standard" for Go. Thanks!

TL;DR: Go isn't ISO-standardized. If you had to write an essay on how Go is standardized today, what exact documents, entities, or tools would you cite and why?


r/learnprogramming • • 15h ago

I really need some advice / venting

4 Upvotes

So i'm a junior in college and i have no internships lined shit i barely have any projects and i just don't know what to do anymore. Majority of the time I've applied I get nothing or maybe I get a coding assessment where I fail it. I understand my resume is probably horrible but I don't know what to do to make it a better. I keep hearing the same things make something you care about, make it technical, do this that and wtv else. HOW??? I can barely keep manage both classes and actually make projects then to practice. It's not as if I spend my time outside of classes doing anything social. So I pretty much have 'unlimited' time to get better. I heard use ai to advance your projects but then I don't know what my project is even about, I heard don't use ai and write manually but then it takes me forever to even finish one stupid project, I heard use ai to prompt and learn along I tried that it feels so fucking boring. It feels like i'm child asking "hey is this good enough?" It's so fucking stupid man. I understand someone would say just "suck it up and continue" and I've been trying to. Outside of all of that look at how ai is advancing, how am i supposed to keep up? how am i supposed to be good enough? even if I am then i get laid off? I'm sorry if I'm coming off very negative but I felt like shit about this and I don't know what to do anymore. I don't want to fail but it feels like that's what going to happen. Anyone could please give me some advice or just reinsurancement idk. I tried to be positive about this in the beginning but I genuinely don't know what to do anymore. I'm so scared.


r/learnprogramming • • 11h ago

Topic Please help me out with this?

0 Upvotes

Ok so I a am currently in my college 1st year 1st sem and interacted with one of my senior. Then I got to knew that backend engineer and Ai roles are different things. To be an ai engineer I don't need to be a backend engineer like I don't need to go in deep in backend or web dev. I asked me that I am currently learning flask and thinking of switching to spring boot and I am interested in ai role. The he cleared me with these differences between ai roles and backend. And suggest me to start backend with spring boot and continue In it. Is he right. I also watched a road map video and in that the creator told that exactly defination of ai engineer is not properly designed rather it depends on company what work they give you. In some companies the same person does both backend as well as designing ai . Before interacting with him I used to thought that main core of Ai that is llm is itself a backend system. Or good knowledge of backend is the first step in the ai industry. please anyone could clarify me here. And suggest me should I go with full stack web dev or Ai model designing and training.


r/learnprogramming • • 1d ago

Best books to learn Python from scratch with lots of exercises and practice problems?

17 Upvotes

Hi everyone!

I want to learn Python programming from scratch and become really good at it.

I'm looking for book recommendations that

  1. Explain concepts clearly, starting from the basics.
  2. Have plenty of exercises and practice problems after each topic.
  3. Gradually increase from beginner to advanced difficulty.
  4. Focus on problem-solving and programming logic rather than just theory.
  5. Include practical projects to help apply what I've learned.

I don't mind working through lengthy books. My main goal is to practise extensively until I can write programs independently without relying on tutorials.

Which books would you recommend? Also, are there any websites or platforms with excellent Python practice problems?

I'd appreciate recommendations from people who have learned Python this way. Thank you!


r/learnprogramming • • 1d ago

Question (CS Student) Every Time I see AI code I Feel disencouraged

173 Upvotes

How is your day.
I'm currently a 2nd year CS student who genuinely enjoys learning coding. I can stay for hours studying a certain topic and usually all I need to be feel like continuing is less bugs showed by the compiler. but seeing AI being able to do the same thing I have been trying to learn for hours way faster and better than me always makes question myself. My question is...
Is it still worth it going through all of this


r/learnprogramming • • 1d ago

i feel so useless and divided

24 Upvotes

Final year CS student building embedded projects to land a real role. I genuinely love embedded systems and coding, and it feels weird right now because I barely have time to learn how to write things properly from scratch. Everything pushes you toward big, impressive projects nobody gets noticed for mastering the basics even though the basics are what actually build real understanding. Meanwhile, that understanding can feel almost pointless when AI agents can build things faster, bigger, and louder. I want to write my own code, yet I catch myself feeling stupid for wanting to actually know how to write scripts without an agent.

Do I just have to accept that coding from scratch is becoming a useless skill, that debugging on your own is a waste of time, and that being "good" now means handing that knowledge over to machines?

I don’t just want to ship demos. I want to be a real programmer like the engineers who came before me someone with genuine, deep mastery over the craft I love.

So I’m genuinely asking: what does mastery even look like in the age of AI?


r/learnprogramming • • 22h ago

Topic Is Python -> JS -> C++ -> Java -> C -> Assembly a good order to learn?

3 Upvotes

I'm a Python beginner planning my learning path and want to know if this order makes sense:

Python -> JavaScript -> C -> Java -> C++ -> Assembly

Is this a good path, or is it a bad idea to learn this many languages? What do you think?
Edit: Swapped C++ and C (so C -> C++ instead of C++ -> C) based on your feedback. Thanks for all the advice!


r/learnprogramming • • 1d ago

Question on what I should focus

7 Upvotes

I'm in my fourth semester of my Information Systems degree, but I don't know what career I want to persue. I like coding in C/C++, Rust and even Haskell, I like complex things on computing like theory of computation and I really enjoy learning networking. However, I can't decide what I really want to work with. I've thought I would like working with web development, but unfortunaly I don't find it that cool when compared with the topics I mentioned earlier.

So, what would you guys recommend me?


r/learnprogramming • • 1d ago

Family Man With Limited Free Time: Is a Personal Offline Copy of Wyrm Wild Possible?

3 Upvotes

Hi everyone,

I currently play a game called Wyrm Wild. Because of my work schedule and family responsibilities, idle/automatic games are really the only type of games that fit into the limited free time I have.

The problem is that this game relies heavily on microtransactions. Almost every aspect of progression seems tied to spending money, and since the purchases are priced in US dollars while I earn in Brazilian reais, everything becomes very expensive for me.

So I was wondering: would it be possible to create a personal offline copy of the game just for myself, with no intention of distributing it, so I could play at my own pace and experience a sense of progression without constantly hitting paywalls?

I'm not looking to profit from it or share it with anyone, just to enjoy the gameplay offline. I'd appreciate any advice or information about whether this is technically possible and what would be involved.(i am not programmer)

Thanks!


r/learnprogramming • • 1d ago

Should I stick with Java for both backend and LeetCode if I have six months to prepare for an internship?

2 Upvotes

Hey folks, I’m a third-year CS student on the software engineering track. I have about six months to prepare for my required summer internship, and I’m aiming for a backend role.

I’ve used Java in my OOP course and I’m fairly comfortable with it, but I haven’t built a backend project yet. I also want to get better at data structures and problem solving. I’m considering two options.

  1. Stick with Java for both backend projects and LeetCode since I already know the language.
  2. Learn Python for backend and use C++ for problem solving. Python appeals to me because I’m interested in AI.

With six months to prepare, which approach would you take? How would you split your time between building a backend project and practicing data structures and algorithms?

Edit: Thanks to everyone who took the time to reply. I really appreciate all the advice


r/learnprogramming • • 1d ago

I don't know anything still.

3 Upvotes

I've been trying to learn programming, and I do open my IDE, and write up simple rpg mini-games and such, but I still don't know anything in programming, I literally don't know how to learn programming, or If I'm meant to learn it, I'm still stuck on level 0, and I'm not progressing at all, I feel stressed out because I have to land a job in IT, but it feels like a far-fetched dream, ATM I'm learning web-development using JS/CSS, I love the language, I'm enjoying my time building simple stuff, but everything feels too complex, and I'm not at good at coding as I am into other skills like art/drawing, and I'm not advancing at all.


r/learnprogramming • • 2d ago

Topic How to Develop interest in programming

23 Upvotes

Hello i am a bscs student 1st semester. I want to know how do i develop interest for programming cause all i do is play video games only i can't get out of this situation. When i was young i had a deep passion for learning rubiks cube so i used to spent day and night learning and solving it and i learnt it. How do i develop that kind of passion and obssession with this programming??

Thank you for your answer.


r/learnprogramming • • 1d ago

R advice

6 Upvotes

I’m newish to coding and learning latex and R for a project, how can I neatly display different graphs or information in a report-like style? I have my dataset I just don’t know what to do with it lol. I’m using R studio.
Anything that helped you learn or develop skills please recommend to me, I will appreciate it a lot.


r/learnprogramming • • 1d ago

Almost finished with Colt steele Web Dev course, what should I do next?

7 Upvotes

Just wanted to ask those who have finished colt steel web dev course or even any course/bootcamp in general on web development, what should be my next steps?


r/learnprogramming • • 2d ago

I think I'm fucked.

98 Upvotes

I'm a college student working toward an associate's degree in computer programming. I've had to take 2 semesters off for mental health breaks along the way, so completing my degree has taken longer than I originally expected. However, I think I've reached a point where I need to be honest about where I stand on my actual programming skills.

Due to my mental health and personal circumstances, I've relied heavily on AI throughout my coursework. I'd estimate that AI has done around 90% of the work for me, and some of my courses have even encouraged its use and are teaching us how to use ai agents. I do understand certain fundamentals, but the reality is that I haven't developed any independent projects or gained much experience actually writing code on my own.

What really brought this to my attention was a recent quiz where my professor asked us to write a function that returns a list of sorted numbers. I couldn't do it. I ended up having to leave the quiz and essentially relearn functions because I realized that, despite having encountered them in previous courses, I had never properly learned how to use them independently. Even when assignments required me to work with certain concepts, I was just throwing my assignment into the Ai and having it complete it for me.

There's just so much information to absorb, especially when we're being introduced to multiple programming languages every semester, databases, flasks, threads, etc. I feel like I'm constantly jumping between languages, concepts, frameworks, and tools without ever having enough time to properly internalize any of them. On top of that, relying on AI has made it difficult to distinguish between what I genuinely understand and what I've simply been able to get working with its help.

I've read a lot of discussions suggesting that writing code from scratch isn't as important as it used to be, and I can understand that AI is becoming an increasingly important part of software development. I do feel like I understand some of the fundamentals, but I honestly don't know where to go from here. I don't know what projects I should be building, how to structure my learning, or how to get out of what feels like an endless cycle of tutorials without actually developing practical skills. And the frustrating part is that I'm in college. I'm supposed to be graduating next year, yet I feel like I'm still at the beginning.

I'm also increasingly concerned about the job market. I've been seeing so much pessimistic discussion about companies hiring fewer junior developers and entry-level programmers because AI tools and agents can now handle an increasing amount of the work. It's difficult not to feel discouraged when I'm already questioning whether I have the skills to enter the industry in the first place.

When I initially enrolled in this degree in 2024, I remember seeing discussions about AI and how it wasn't expected to become nearly as capable as it is today, and I felt safe enough to go forth with pursuing this degree. Obviously, things have changed considerably in just 2 years. Maybe I'm consuming too much doomer content, or perhaps I'm looking at the wrong sources, but I genuinely don't know what to make of the current state of the industry.

At this point, I feel lost. I want to become a competent programmer and build my own projects and actually have the skills to get a job in the future. But I'm struggling to figure out how to get there, especially when I feel like I've spent so much of my time learning, getting assignments completed without developing the actual skills those assignments were supposed to teach me. I know the go to advice will be to just stop using AI and get to learning and making projects, but it's so hard, and it's everywhere, including in my courses.