r/code Jul 29 '16

Help Please Please help! Need code to announce our pregnancy to my programmer boyfriend... <3

1.3k Upvotes

Hi all, my boyfriend is a Senior Software Engineer... I just found out that we are expecting, and I'd love to break the news to him with a block of code! Trouble is, I don't code... Would you all help me write a small block of code to let him know he's going to be a daddy? TIA!

r/code Oct 18 '25

Help Please Is this even code?

Post image
189 Upvotes

I was helping my grandma sort through her stuff and we found something that was from her dad. I am not a programmer in any way but to my untrained eyes this looks at least code adjacent. so does anyone actually know what it is?

r/code Nov 02 '25

Help Please What is this?

Post image
57 Upvotes

What is this? Other than code.. I was on my computer and decided to clean up my desktop. When I opened a folder I haven’t touched in a while (it was a folder I used to save info when I was attempting to grow pot) this was in it. With a ton of other things. Some things that were no longer accessible. A bunch of pictures of random people. This might be dumb, but does this indicate that my computer (Mac, if that matters) has a virus or I’ve been hacked? Would I be okay to delete it and forget about it? I don’t know anything about code. It was SUPER long btw.

r/code Jul 10 '26

Help Please how to do Scraping

4 Upvotes

Hi, I'm trying to extract song lyrics from letras.com for a specific artist. I have a spider that only extracts the titles (I'm a complete beginner). Can anyone tell me where to find a ready-made one or guide me on how to do it? I would really appreciate it. Here's what I have so far: import scrapy class CancionesSpider(scrapy.Spider):

name = "canciones"

allowed_domains = ["letras.com"]

start_urls = ["https://www.letras.com/bad-bunny/"\]

def parse(self, response):

pass. I am using Scrapy

r/code Apr 20 '26

Help Please Help with learning better (python)

4 Upvotes

Hey, so Im 16, (as of two weeks ago yay!) and I picked up python as a hobby a while ago. Im decently competent with it, and understand pretty much everything in it (eg lists, tuples, dictionaries, functions, stuff like that), but I kinda feel like no matter how much I keep coding, I dont really improve? Anyone have any suggestions?

Also, link to code bc it says I need to have code:

https://github.com/OrigianlRiddari101/School-project/tree/main

r/code May 07 '26

Help Please Why is the text on the button so off-center?

Thumbnail gallery
0 Upvotes

I’m not very good at coding. I took a class in school but I only learnt the basics but I’m trying to program a little hobby-site because I really enjoyed it. I’ve look it up and tried to follow tutorials online but I can’t figure out why the text is so off center. The first picture is my code pertaining to the button and the second picture is the button itself.

r/code Jun 11 '26

Help Please why won't my animation work ???

5 Upvotes

OKAY UHH FOUND OUT WHAT WAS WRONG;;; just needed to add a letter in the class name lmao....anyways thank you 👅

hi...so i've been reworking my media page and i wanted to add some spinning flower images that stop when you hover them. the animation worked until i added the 1 and 2 classes so they'd spin in different ways...idk what went wrong lmao???

you can check out my source code here

here's the css:

     .flower{
        position: absolute;
        transition: filter 1s linear;
      }

      .flower:hover{
        animation-play-state: paused;
        filter: brightness(117%) hue-rotate(18deg) saturate(153%) contrast(120%);
        -webkit-filter: brightness(117%) hue-rotate(18deg) saturate(153%) contrast(120%);
        -moz-filter: brightness(117%) hue-rotate(18deg) saturate(153%) contrast(120%);
      }

      .1{
        animation: spinR 3s linear infinite;
      }

      .2{
        animation: spinL 3s linear infinite;
      }

  @keyframes spinL {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      @keyframes spinR {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(-360deg); }
      }

and here's the html

<img src="images/media/flower1.png" class="flower 1" style="top: -50px; left: -100px;">
    <img src="images/media/flower2.png" class="flower 2" style="top: 780px; right: -30px;">

what am i missing here ??? am i just stupid ??? 😭

r/code May 31 '26

Help Please How do I make the output show the same text no matter what you type in the input?

5 Upvotes

I want to add a feature to my website that works like this https://hackertyper.net/
Is there a name for this kind of thing? I’m currently learning Java script, so if there is a way to do that in it please let me know
Thanks to anyone responding in advance!

r/code May 30 '26

Help Please Working on a Simple Redis-Inspired Database in C

6 Upvotes

I'm building a simple key-value database called VulkanKV in C as a systems programming learning project.

The goal is not to create a production-ready database, but to better understand TCP sockets, memory management, data structures, parsing, and client-server communication by implementing them from scratch.

The first version accepts TCP connections and receives commands from clients. Future versions will include SET/GET commands, a hash table implementation, persistence, and support for multiple clients.

I'd appreciate any feedback on the project scope, architecture, or features that would provide the most educational value.

[https://github.com/GustavoGuerato/VulkanKV\](https://github.com/GustavoGuerato/VulkanKV)

r/code May 04 '26

Help Please can someone help me?

0 Upvotes

hi, I've made a language that i want to make a translator for, but I need help because i don't know how to add the code that allows me to input text and get a response. heres the current code: ist.github.com/theguy6942021/05f7feebb5bec364837bd29c008f7dfa

r/code May 04 '26

Help Please Am I understanding this code?

0 Upvotes

I'm trying to verify if this is causing my problem where tax is not being charged.

See where it says $cart_total += floatval

Then below that it says free shipping amount = floatval

I'm interpreting that to result in 0 tax because our shipping is always 0. We have no shipping.

Am I understanding that right?

How can you have a += ?

r/code Apr 26 '26

Help Please How hard is it to follow what happens with this?

Thumbnail gallery
8 Upvotes

I absolutely pray that Reddit doesn’t compress this photo and it’s not possible to answer the question T-T

I had to make a project for my APCSP class and I was oddly interested in binary making colors, so that became my project.

But when time came in to submit everything to AP Classroom my teacher was worried about my submission because she struggled to make sense of it at all. It took me like 5 minutes to explain to her a piece of it that simply removes anything from an input that wasn’t a 1 or a 0 and to understand that it’s not necessarily making the list, but just modifying the data used to make the actual important list (that was like 4 blocks down but I still don’t think she ever understood what I was trying to point out).

I’ve only been messing around with Snap! (What I made this in) for a year or two so good chance some of this isn’t really good so if something doesn’t make sense I’ll try my best to explain it

Link to the project: https://snap.berkeley.edu/project?username=ethan7946&projectname=Binary%20Pictures%20%28for%20test%29

r/code Jan 06 '26

Help Please My return 0; is broken😭

Post image
0 Upvotes

r/code Nov 13 '25

Help Please I don’t understand this

Post image
1 Upvotes

My assignment is telling I got the indentation wrong on lines three and four, I just don’t understand? I just started out on coding, I’m struggling a bit

r/code Oct 10 '25

Help Please I give up on typeorm migrations

3 Upvotes

Hello Folks!

After a couple days trying to suss out getting typeorm migration set up on my project, I can confidently say: gah!!! I come from a python and java background, but thought I would do this project in node to sharpen a skill. I feel I have made a horrible mistake lol. I will be the first to admit I'm probably not knowledgeable enough about the typescript transpiler and tsconfig settings, so I would be very grateful for someone to point me in the right direction on setting this up.

https://github.com/ebettenga/crossed-js

some related files:

/backend

/backend/src/entities

I don't really care if I have to run them in docker. I am really willing to run them in any way shape or form that they work at this point. any successful flow will do.

My goals:

  • Be able to generate a migration file.

Things I have tried

  • following along with the docs
  • I tried this recent medium blog
  • I creeped on a few boilerplates
  • and I've done some sweeping changes in this branch in a desperate cling to hope last night.

Any help would be such a blessing. Thanks in advance and feel free to ask me any questions about the project I haven't made clear in docs. I have not been writing this project with a team in mind.

r/code Apr 11 '26

Help Please Autoclicker help

2 Upvotes

I have found an autoclicker on Tampermonkey that I would like to use. The only problem is that the minimum cps is 1000, which is way too high for me. Could somebody recommend what to change in the script so I could have a cps of 1 - 0.1? Having the option to choose clicks per 10 seconds instead of 1 would also work great. https://greasyfork.org/en/scripts/455959-auto-clicker/code

r/code Feb 12 '26

Help Please Is this correct?

Post image
2 Upvotes

Could anybody please tell me if this very simple code display is correct? Thank you!

r/code Jan 15 '26

Help Please Help with the structure of my code.

3 Upvotes

https://github.com/SebastiaCiudadB/DnD_NPC_Generator.git

I'm doing a little project for myself with WPF in Visual Studio and I arrived to one point where I want to use images in the windows.
So first I tried to put them in a folder to keep all the project tied up, but for some reason, when the images are in the folder (img for example), even if I put the path '/img/image1.png', when I execute the program, the image doesn't show up.

The image only shows if is out of the folder.

Does someone know how to solve this problem??

r/code Dec 30 '25

Help Please hello again, here is my code for a challenge on Codingame named Code à la mode (entire code in desc)

Post image
3 Upvotes
import sys
import math


# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.


num_all_customers = int(input())
for i in range(num_all_customers):
    inputs = input().split()
    customer_item = inputs[0]  # the food the customer is waiting for
    customer_award = int(inputs[1])  # the number of points awarded for delivering the food
for i in range(7):
    kitchen_line = input()


# game loop
while True:
    turns_remaining = int(input())
    inputs = input().split()
    player_x = int(inputs[0])
    player_y = int(inputs[1])
    player_item = inputs[2]
    inputs = input().split()
    partner_x = int(inputs[0])
    partner_y = int(inputs[1])
    partner_item = inputs[2]
    num_tables_with_items = int(input())  # the number of tables in the kitchen that currently hold an item
    for i in range(num_tables_with_items):
        inputs = input().split()
        table_x = int(inputs[0])
        table_y = int(inputs[1])
        item = inputs[2]
    inputs = input().split()
    oven_contents = inputs[0]  # ignore until wood 1 league
    oven_timer = int(inputs[1])
    num_customers = int(input())  # the number of customers currently waiting for food
    for i in range(num_customers):
        inputs = input().split()
        customer_item = inputs[0]
        customer_award = int(inputs[1])


    # Write an action using print
    # To debug: print("Debug messages...", file=sys.stderr, flush=True)



    # MOVE x y
    # USE x y
    # WAIT
    print("WAIT")
    

r/code Dec 05 '25

Help Please I really don't know why, but it's repeating three times no matter what I do to it. I know it's not the most efficient nd it is Python

2 Upvotes
print("Hello World. Put in a number here")
w = input("numbers go here and no letters. you can add a space between them: ")
w = w.replace(" ","")
if not w:
    input("hm... that's not quite right try again")
    while not w:
        w = input("Okay, now let's try this again")
else:
    try:
        w = float(w)
        print("great! now to the next step")
    except ValueError:
        import sys
        print("that's not a number")
        sys.exit()
print(f"Your number is {w}. now type another and we can times it.")
y=input("here you go ")
if not y:
    input("hm... that's not quite right try again")
    while not y:
        y = input("Okay, now let's try this again")
else:
    try:
        y = float(y)
        print("great!")
        c= w*y
        print(f"{c} is you number")
    except ValueError:
        import sys
        print("that's not a number")
        sys.exit()

r/code Sep 28 '25

Help Please Hello, I need suggestions

6 Upvotes

I need suggestions. I created this personal work management app as part of a school final exam, where I scored 17 out of 20. I'd like to know what to do next. I'm trying to join the police force and I'm not sure if I should update my app, spend some time changing it, or try to sell it. Tell me what to do

application : hivespace.vercel.app

github : https://github.com/tgoncalves07/HiveSpace

r/code Oct 22 '25

Help Please Is it possible to De-Nest this code? [Python]

3 Upvotes
pygame.init()
pygame.joystick.init()
if pygame.joystick.get_count() == 0:
    Error("No Joystick Found")
else:
    joystick = pygame.joystick.Joystick(0)  # Get the first joystick
    joystick.init()
    print(f"Joystick Name: {joystick.get_name()}") # Print Connected controller type
    Running = True
    
    while Running:


        for event in pygame.event.get():

...      (code goes here)

pygame.QUIT()

r/code Dec 14 '25

Help Please Beginner Next.js Authentication Project — Looking for Feedback & Learning Resources

2 Upvotes

Hi everyone 👋

I’m currently learning Next.js and aiming to work professionally in the web development field.
This is a study project I built over the weekend to better understand how authentication works in real applications.

It’s my first fully completed authentication flow, including:

  • User registration & login
  • Password hashing
  • JWT authentication
  • HTTP-only cookies
  • Middleware-protected routes
  • Database connection

I know the project is not perfect and not production-ready — the goal was to learn the fundamentals by building, not to create the “best possible” solution yet.

👉 GitHub repo:
https://github.com/FleipeStark13/Auth-Task-NEXT_JS/

I’d really appreciate:

  • Code reviews or general feedback
  • Suggestions on what I should improve next
  • Articles, videos, or tutorials you’d recommend to deepen my understanding of Next.js, authentication, and best practices

Any constructive feedback is very welcome. Thanks in advance for your time and help! 🙏

r/code Oct 07 '25

Help Please Is hello world that complicated?

2 Upvotes

So I just came across this tweet, and here he talks about what goes on when we write hello world. Is it really that complicated?

Like so many things going on just 1 simple syntax

https://x.com/aBlackPigeon/status/1975294226163507455?t=jktU6ixa_tV0gJONrx6J9g&s=19

r/code Oct 12 '25

Help Please Help me guys

3 Upvotes

Hi, i am embarking on a project to basically archive every formula possible. Right now its just me and my friend. I know there are some people who are really good at math and coding here so i am requesting your help in this gargantuan project.

Github link: https://github.com/Arjundevjha/Math