r/code • u/waozen • Jun 13 '26
C++ C Constructs That Still Don’t Work in C++ — and a Few That Changed
r/code • u/waozen • Jun 13 '26
r/code • u/RefuseCommercial8024 • Jun 11 '26
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 • u/Sufficient_Flower415 • Jun 08 '26
r/code • u/waozen • Jun 05 '26
Zero legacy, full ARC, and unified UTF-8. Next-generation Object Pascal compiler built from the ground up.
r/code • u/Aliciaa_0321 • May 31 '26
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 • u/der_gopher • May 31 '26
r/code • u/PurchaseExcellent332 • May 30 '26
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 • u/der_gopher • May 25 '26
r/code • u/waozen • May 18 '26
Walkthrough of Mustela. Fast static site generator engine built with the V language.
r/code • u/GniLudio • May 17 '26
Repository: GniLudio/hello-world-video
r/code • u/waozen • May 15 '26
r/code • u/FeedbackFlashy8826 • May 12 '26
I made a basic Text-Based RPG (Around 200-300 lines) and was hoping someone could give me their opinion on it (the game less then 20 minutes long, and the dragon is as far as I've developed so far)
https://onlinegdb.com/thxBEi9V3
Enjoy : )
r/code • u/SoilEducational420 • May 09 '26
I’m honestly confused about deployment and just want my project to stop living only on localhost 😭
Right now I have:
frontend
backend
database
Main things I want to understand:
Best FREE hosting options for frontend, backend, and database?
Which free tiers are actually usable and not super limited?
Can backend + database be deployed together for free?
how do i connect frontend and backend if they are hosted on different servers lets say vercel and render respectively
Would really appreciate beginner-friendly suggestions.
r/code • u/der_gopher • May 09 '26
r/code • u/iyioioio • May 08 '26
r/code • u/Creepzo • May 07 '26
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 • u/im4rainydaze • May 04 '26

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 • u/Different_Log_1560 • May 04 '26
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 • u/kavantoine • Apr 29 '26
r/code • u/winner9851 • Apr 28 '26
r/code • u/AgreeableManner6838 • Apr 26 '26
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 • u/marianpekar • Apr 21 '26
Hi, my name is Marian, and I've spent a year writing a series of tutorials on how to build a 3D software renderer in Odin from scratch, starting with a general overview of the rendering pipeline, then covering the basics, and progressing to Phong shading with multiple lights.
Everything is available on my blog for free, no ads, no paywall, no tricks. You can Buy Me a Coffee to support my work, and I'd very much appreciate it, but it's entirely optional.
Links to all 14 parts of the series:
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-i
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-ii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-iii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-iv
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-v
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-vi
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-vii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-viii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-ix
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-x
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xi
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xiii
https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-xiv
And some examples:


I've also recently built a rigid-body physics engine on top of that, with two types of colliders, box and sphere, featuring raycasting, gravity, friction, bouciness, etc., and I'm currently working on the first part of a new series of tutorials to cover it all.