Programming

26625 readers
124 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
1
 
 

Hi all, I'm relatively new to this instance but reading through the instance docs I found:

Donations are currently made using snowe’s github sponsors page. If you get another place to donate that is not this it is fake and should be reported to us.

Going to the sponsor page we see the following goal:

@snowe2010's goal is to earn $200 per month

pay for our 📫 SendGrid Account: $20 a month 💻 Vultr VPS for prod and beta sites: Prod is $115-130 a month, beta is $6-10 a month 👩🏼 Paying our admins and devops any amount ◀️ Upgrade tailscale membership: $6-? dollars a month (depends on number of users) Add in better server infrastructure including paid account for Pulsetic and Graphana. Add in better server backups, and be able to expand the team so that it's not so small.

Currently only 30% of the goal to break-even is being met. Please consider setting up a sponsorship, even if it just $1. Decentralized platforms are great but they still have real costs behind the scenes.

Note: I'm not affiliated with the admin team, just sharing something I noticed.

2
3
4
22
Mermaid v11.13.0: Venn and Ishikawa (content.mermaidchart.com)
submitted 13 hours ago* (last edited 13 hours ago) by lens0021@programming.dev to c/programming@programming.dev
 
 

Venn example

cross-posted from: https://programming.dev/post/49143802

Two entirely new diagram types — Venn and Ishikawa — land alongside a significant fix that restores backward compatibility with v10, plus a pile of improvements across flowcharts, ER diagrams, Gantt charts, state diagrams, gitGraph, and more.

5
6
7
8
9
 
 

A minimal Node.js wrapper around ClamAV that scans any file and returns a typed Verdict Symbol:

  • Verdict.Clean
  • Verdict.Malicious
  • Verdict.ScanError

Zero runtime dependencies. No daemon. No cloud. No native bindings. Works locally via clamscan or remotely via clamd TCP socket (Docker-friendly).

npm install pompelmi

Repo: https://github.com/pompelmi/pompelmi

10
11
 
 

A ~200 LOC Rust crate benchmarked against ten other languages — came out ahead of a monomorphized C++ lib by ~4× at sub-fanout dispatch. Hot loop is six instructions. Can you make it faster?

12
19
Small Program for VBA? (sh.itjust.works)
submitted 2 days ago* (last edited 2 days ago) by bridgeenjoyer@sh.itjust.works to c/programming@programming.dev
 
 

Alright, so I'll get laughed at here, but one of my 'goals' for work this year is I wanted to take the 4 hour VBA course on youtube and then write a small program after it that does something.

Before you laugh at me using an outdated language, I only chose it because a co worker suggested learning it, and we do use some VBA coded macros in our spreadsheets. We're not a very up to date company.

The reason I never get anything done with learning programming is I never know what to do . And if I do come up with something to do, it will be WAYY too complex over my head, i'll fail at it, then never touch it again. If it's too simple, I won't even want to bother. (Yay ADHD)

So I'm just looking for a couple suggestions for a fun little program to make (and consider the goal 'done'). I know calculators of some sort are an option...I can't really think of anything else. I guess it doesn't actually have to be a useful program but it would be cool if it was.

13
14
 
 

Hi folks,

I've been practicing game loop logic and input handling by building a small browser shooter entirely in vanilla JavaScript. No frameworks, no build tools—just a single index.html file.

Tech highlights: • Custom virtual joystick with unified mouse/touch input • requestAnimationFrame game loop with velocity-based movement • Boundary collision and smooth 60FPS rendering • ~300 lines of readable, commented JS

This post: Gameplay video showcase of the current prototype.

Looking for feedback on: • Code structure: Any anti-patterns or modern JS improvements? • Input handling: Is the joystick math clean enough? • Performance: Any obvious bottlenecks for low-end devices?

Happy to share the source code if anyone wants to review or tinker. Thanks for your time and constructive thoughts!

15
 
 

I have a feeling I'm stuck in tutorial hell, and I need to start actually building things. But I don't know where to start :/

Also I'm really bad at syntax. I only know concepts like for loops, while loops, if-elif-elses, etc...

So maybe something that helps me learn more about coding syntax would be helpful.

Thanks!

16
17
18
 
 

A design flaw – or expected behavior based on a bad design choice, depending on who is telling the story – baked into Anthropic's official Model Context Protocol (MCP) puts as many as 200,000 servers at risk of complete takeover, according to security researchers.

19
20
21
 
 

Hey, I made a thing! It's called doink. Doink gives you dynamic git remotes by using DNS TXT records as pointers.

I wrote a bit about how it works and what it's useful for.

Anyway, do you ever thing about how DNS is a basically a decentralized key-value database? I think about it a lot :)

22
23
24
25
 
 

Source from HN because they have shadowbans: https://news.ycombinator.com/item?id=47773594

I'm wondering too what you are looking for in a font. Good looks, features, options to enable or disable, ligatures?

view more: next ›