Programming

26316 readers
944 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
 
 

cross-posted from: https://lemmy.world/post/45047387

Title...

I'm kinda disgusted with Microsoft and Github has been declining into an AI-Centric hellhole, to the point my recommendations are almost exclusively AI related... And let's not forget, the new Copilot Training enabled by default (which honestly, how do you get rid of this thing, VSCode also feels intrusive with AI-First bullshittery)

I've been wondering about moving to Gitlab but.... "Finally, AI for the entire software lifecycle." is literally plastered in the landing page. So.. that feels like a no-go.

Codeberg is very decent, it's based on Forgejo so ActivityPub is also a thing (but is cross-instance contributions possible?) but it's exclusive for Source-Available and Free Projects, which, by all means, totally fine! Half of my "active" projects are for free, and are open source (does that make them FOSS even though I'm basically the only dev?)

And last but not least, Forgejo and Gitlab themselves are self-hostable, but...how expensive (price and storage) would it be to self host a Git Forge??

And maybe I'm being narrow-sighted... For FOSS projects in Github, sadly I'll have no choice but to contribute there, if that's the only place where the project resides, same for Gitlab, and Codeberg* (unless cross-instance contrib is a thing)

For now, I'm thinking of moving FOSS/OSS projects to Codeberg, but for personal projects? What are some good options?

3
 
 

Is there any good courses that cover the more technical aspects of backend development? Here are some examples, not even limited to this, but I want to hear more than the basics and also some security things to look out for in like a yt video or something, potentially includes, CORS, Cookies, JWT, server side sessions, server side rendering, websockets, server side events, html patterns (e.g the backend returning html components to be place into the browser). Status Codes, GET and POST, GRPC, file transfers.

4
5
 
 

My code depends on a library that makes liberal use of patching (replacing text in source code) for its own dependencies. I feel this is bad form, because, for example, that dependency may now conflict irreconcilably with another dependency of mine.

Am I right in thinking patching code is bad form?

6
7
 
 

Last updated: 28 Mar 2026 The Game Boy Advance is an anomaly for this collection: it was released in the 21st century and was contemporaneous with the GameCube, PlayStation 2, and the original Xbox. Its CPU is an off-the-shelf ARM design that modern compiler systems will target as a matter of course, and even at…

8
 
 

I've been working on JADEx (Java Advanced Development Extension) which is a safety layer that makes Java safer by adding Null-Safety and Final-by-Default semantics without rewriting Java codes and modifying the JVM.

Quick recap of what JADEx adds to Java:

  • String? nullable type declaration
  • ?. null-safe access operator
  • ?: Elvis operator
  • apply readonly final-by-default mode per file

Today I'm sharing three things that just landed.


1. Lombok support

This was the most requested thing. JADEx now integrates with Lombok via a Delombok pipeline internally. The key motivation: JADEx's nullability checker needs to see Lombok-generated code (getters, builders, constructors) to avoid blind spots. Without Delombok, nullable fields could silently pass through generated methods unchecked.

@Data
@Builder
@Entity
public class User {
    private String name;
    private String? email;      // @Nullable propagated to getter + builder param
    private Address? address;   // @Nullable propagated to getter + builder param
}

After Delombok, JADEx sees and analyzes the generated code:

// Lombok-generated — JADEx propagates @Nullable into these
@Nullable
public String getEmail() { return this.email; }

public UserBuilder email(@Nullable final String email) { ... }
public UserBuilder address(@Nullable final Address address) { ... }

2. Gradle plugin published

The JADEx Gradle plugin is now on Maven Central and the Gradle Plugin Portal.

plugins {
    id 'io.github.nieuwmijnleven.jadex' version '0.628'
}

jadex {
    sourceDir = 'src/main/jadex'
}

That's the only change needed to an existing Spring Boot project. Everything else (compilation, Delombok pipeline, .java generation) is handled automatically.


3. JADEx Spring Boot example project


We highly welcome your feedback on JADEx.

Thank you.

9
10
11
 
 

crosspost: https://lemmy.world/post/45022275

Hi

Hello, I created this project with the goal of quickly setting up a template using Nuxt and the “On-demand revalidation” configuration, integrated with a backend (currently only Pocketbase).

While researching, I discovered that “On-demand revalidation” is a very valid option for saving server resources in exchange for having more data in the cache, but this option requires integration with the backend you use in your project.

Workflow

  1. The user visits a page

  2. The server checks if that page exists in the cache

  3. If it exists in the cache, Nitro returns the cached page, and Nitro checks in the background whether the backend data has changed by reviewing “the data block”; since the backend did not send any signal, Nitro returns “the data block” from the cache

  4. If the page does not exist in the cache, it generates a new page, and Nitro checks if there is a “data block” in the cache; if there isn’t, it fetches the data from the backend

  5. Nitro’s configuration ensures that when a fetch is performed, that data is stored in the cache; that “data block” will expire in one week unless the backend sends an event to reset it.

  6. If the data changes on the backend, it sends an event to reset the cache in Nitro

You can run the script with bun, npm or pnpm

Example

npx nurev  

More info

https://codeberg.org/Serroda/nurev#how-it-works

Take a look and let me know what you think
Have a good day!

12
13
 
 

Microsoft has a new assasination target

14
15
 
 

Roughly a year after the effort was announced, the Apple-developed coding language, Swift, has just launched support for Android.

16
 
 

A client’s team spent a full week adding a CSV export to their admin panel. Two engineers, clear requirements, maybe a day of actual work. The rest of the time went to understanding existing code well enough to change it safely. That’s what I call codebase drag: when the codebase makes every task take longer than it should. It doesn’t show up in any dashboard or sprint report.

17
 
 

What an ol' classic in the age of AI!

18
 
 

I've been scrolling around and I'm wondering what sort of projects everyone here is working on? I have not worked on anything in awhile but I wanna see more projects and maybe that'll change haha

19
20
21
22
23
 
 

So to preface, my work is pretty cool, they are good about setting goals to learn things that interest you and putting you in those teams to help out in a small capacity.

My normal job has never been programming. Though Ive been the goto "IT" person at almost every job ive been at, I mess around in most of my free time with computers (installing Linux on stuff, networking NAS stuff, remote desktops virtual machines r pi setups emulators , very simple bash scripts etc all the stuff we lemmings do in our sleep ) but ive never technically coded outside very small vba code learning stuff and watching a lot of videos on multiple languages. Ive just never been able to actually figure out what I'd want to make or be able to stick with it. Also I have mild dyscalculia so I generally get really confused at math especially algebra. I can do it but im really slow.

Ive always wanted to be able to do coding. I feel like I can't be a real computing nerd without that. I just find it so hard to focus when i don't have a real goal or the goal is really small and uninteresting (hello world over and over is not that helpful )

So anyway, this project is just to take excel macro calculators and convert them to apps to be used mainly on iPads but also browsers etc. They've chosen Mendix for this purpose.

Ive not used it before but it seems like a very simple graphical drag and drop style of "programming" (not sure if you can really cal it that) but I'd like to hear if you guys have dealt with it...

Generally, how can I help out on this project (and tbh, try to prove that I'm somewhat smart at this stuff..)?

24
 
 

I need to scan very large JSONL files efficiently and am considering a parallel grep-style approach over line-delimited text.

Would love to hear how you would design it.

25
view more: next ›