576
5

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!

577
152
578
59
submitted 5 months ago* (last edited 5 months ago) by Valnao@sh.itjust.works to c/programming@programming.dev

Microsoft has a new assasination target

579
145
580
201

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.

581
59
submitted 5 months ago* (last edited 5 months ago) by spez@sh.itjust.works to c/programming@programming.dev

What an ol' classic in the age of AI!

582
30

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

583
-27

I’ve noticed that Oracle APEX rarely comes up in developer discussions, especially compared to modern frameworks and cloud native stacks.

But in enterprise environments, it seems to handle data heavy applications, internal tools, and workflows surprisingly well, especially when paired with a solid database setup.

From what I’ve seen, it reduces a lot of the overhead you would normally have with full stack development while still being scalable if designed properly.

Curious to hear from others. Are people actually using APEX in production, or is it still considered niche?

584
38
585
60
submitted 5 months ago by who@feddit.org to c/programming@programming.dev
586
13
First project at work (sh.itjust.works)

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..)?

587
14

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.

588
360
589
7

Also vm repo

590
113
591
85
592
3
What about juniors? (brooker.co.za)
593
21
Working on products people hate (www.seangoedecke.com)

If I were a better developer, would I have worked on more products people love? No. Even granting that good software always makes a well-loved product, big-company software is made by teams, and teams are shaped by incentives.

594
29

When people say “taste,” what they actually mean is experience. Pattern recognition built up over years of doing the work. But calling it “taste” instead of “experience” does something subtle and harmful: it makes a learnable skill sound like a gift.

595
10
596
84

Why GitHub Actions is the Internet Explorer of CI, and why Buildkite offers a better path forward for teams that care about developer experience.

597
-6
598
70

[...] Coding agents are now also introduced to production codebases. After 12 months, we are now beginning to see the effects of all that "progress". Here's my current view.

[...]

All of this compounds into an unrecoverable mess of complexity. The exact same mess you find in human-made enterprise codebases. Those arrive at that state because the pain is distributed over a massive amount of people. The individual suffering doesn't pass the threshold of "I need to fix this". The individual might not even have the means to fix things. And organizations have super high pain tolerance. But human-made enterprise codebases take years to get there. The organization slowly evolves along with the complexity in a demented kind of synergy and learns how to deal with it.

With agents and a team of 2 humans, you can get to that complexity within weeks.

599
181
600
269
view more: ‹ prev next ›

Programming

28304 readers
279 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 3 years ago
MODERATORS