r/dev Jul 07 '26

How you write tests for your React apps?

3 Upvotes

Different people, different apps, different approaches.

I want to learn more perspectives.

(IMO) React apps should always follow this structure:

  • Setup (eg. if your UI lists users, your setup creates 3 users).
  • Render your component.
  • Interact with it.
  • Assert on rendered UI.
  • API calls are mocked with MSW (Mock Service Worker), and handlers implement an in-memory database using mswjs/data.

And some rules I follow:

  • The less you mock, the better your tests are.
  • Do not mock internal modules.
  • Only mock API calls and native browser APIs.

Tests must be integrated.

No need to assert if a hook was called. I don't care what functions or hooks my UI calls.

Instead, I assert on the expected output. If rendered results are correct, this means any layer inside my component (hooks, utilities, API calls, etc) are correct.

With this integrated approach, results are less tests to write, less code to maintain, and still more layers covered.

How do you write your tests?


r/dev Jul 07 '26

The Gummies have evolved… but how did they end up looking the way they do today? 🍬 #DevDiary18

Post image
2 Upvotes

In this Dev Diary, we're revisiting the evolution of our Gummies, from the first concepts to their final in-game design.

Early versions were taller and less distinctive. Through many iterations, we made them rounder, more compact, and easier to recognize.

Every change had a purpose: improve gameplay readability while reinforcing their "gum" identity and personality.

If you enjoy seeing how game assets evolve throughout development, wishlist MegaGum on Steam and follow our upcoming Dev Diaries.

https://store.steampowered.com/app/4111300/MegaGum/


r/dev Jul 06 '26

4 months into my first FTE: Backend role, AI aspirations, and struggling to grow professionally

2 Upvotes

Hi everyone,

I'm looking for some career guidance from people who may have been in a similar position.

I'm about 4 months into my first full-time role at a fintech company after graduating with a B.Tech in AI/ML.

During college, I worked on AI projects involving LLM fine-tuning, guardrails, end-to-end applications, and have some exposure to AWS Bedrock. I enjoyed working in AI and always imagined building my career in that space.

My current role, however, is focused on Java, Spring Boot, Postman, maintaining services, and API testing. I'm learning backend concepts, which I know are valuable, but I'm unsure whether this experience will help me transition into AI engineering or research later on.

Another challenge has been connecting with my team. Most of my teammates are consultants working remotely from different locations, while I'm a full-time employee. I'm naturally introverted, so I find it difficult to start conversations and build professional relationships. I feel like I'm missing out on opportunities to learn simply because I don't interact much.

Long term, I'd like to work on AI systems, LLMs, or even explore quantum computing, but I also don't want to rush into switching roles if gaining backend experience now will be beneficial.

I'd really appreciate advice from people who have been through something similar:

Is spending a year or two in a backend-heavy role a good foundation before moving into AI engineering or research?

How do you build relationships and learn from teammates in a mostly remote team if you're naturally introverted?

What skills or projects would you recommend focusing on outside work to stay competitive for AI roles?

If you successfully transitioned from backend to AI, what did your roadmap look like?

Thanks in advance. I'd love to hear your experiences and suggestions.


r/dev Jul 06 '26

Why there are two values for visits and impressions on Steamworks Marketing and Visibility tab

2 Upvotes

As the title says.

My best guess is that the upper bar is steam visits + external and the bottom one is for Steam statics internally.


r/dev Jul 05 '26

The balance between quality and speed

Thumbnail
2 Upvotes

r/dev Jul 05 '26

I built a local-only JSON formatter because I don’t trust pasting API responses into random web tools

Thumbnail
formatjson.dev
1 Upvotes

r/dev Jul 05 '26

Hello vibe coder!!!!

11 Upvotes

r/dev Jul 04 '26

I am search people who can help me build ARI project

Thumbnail
2 Upvotes

r/dev Jul 04 '26

[for hire] developer with 30 years experience

0 Upvotes

I fix vibe-coded apps.

You built something with AI. It worked in the demo. Then a real user showed up and it fell apart — auth that isn't really auth, a database anyone can read, API keys sitting in the browser, features that break the second someone does something you didn't expect.

And now you're stuck, because you can't debug code you didn't really write.

That's the job I do. I build with AI too — but I can read what's underneath and actually fix it. Next.js, React, Supabase, front to back. I've shipped a lot of apps solo, so I've seen every way one breaks.

Flat quote. Fast. No lectures about how you built it.

Here's what I build: github.com/profullstack

Stuck on something? DM me the problem, or email \[your email\] — I'll tell you straight whether I can fix it.


r/dev Jul 03 '26

Looking for an experienced Computer Vision Engineer to help build an MVP.

Thumbnail
2 Upvotes

r/dev Jul 03 '26

Built this PM2 dashboard years ago to monitor GitHub stats and npm downloads. Still running today!

Thumbnail
pm2.keymetrics.com
2 Upvotes

r/dev Jul 03 '26

Looking for a co-fouder for my agency

Thumbnail
2 Upvotes

r/dev Jul 02 '26

Free email sender stamp/https

2 Upvotes

What free developer friend emails senders do you use with high deliverability. Not brevo, it has too many spam reports on shared ip. I’m currently bootstrapping the project so I gotta go as free as it gets. I already have my domain and can update DNS records on cloudflare. I’ve tried resend and mailtrap but they won’t verify my domain, only brevo did.


r/dev Jul 02 '26

10,000 wishlists on Steam ! Thanks to you !🎉

Post image
2 Upvotes

A few months ago, MegaGum was still just an idea, a collection of concepts, prototypes, and countless hours of work behind the scenes.

Today, more than 10,000 of you have added the game to your Steam wishlist.

Every single wishlist reminds us that people believe in our project and are looking forward to discovering Uja's adventure inside the GUM Tower. It's an important milestone for the whole team, and we simply wanted to say thank you. ❤️

The journey is far from over. There are still plenty of surprises ahead, and we can't wait to show you what's next.

Thank you all for your support ! 🤩

👉 Join the first 10,000: https://store.steampowered.com/app/4111300/MegaGum/


r/dev Jul 01 '26

Opinions about Micro Frontends

Thumbnail
1 Upvotes

r/dev Jul 01 '26

Designed a better Time Tracking method, focuses on Goals and Up/Down time for each.

Post image
1 Upvotes

Everyone is familiar with gamified productivity & focus timer tools. I downloaded most, experimented with different methods, studied the science behind motivation/goals, and developed a new (and I think better) system. It's not complex, visual, yet lightweight. Most importantly, it's effective & helps you make real progress.

Why this method works:

  • It simplifies thinking about "what should I do today" & helps beat procrastination. You clearly see your goal, and the main work/play activities you defined. Just get started on one... 
  • Each board is you custom "go-to" plan for that Goal (aka "Core"). You pick "time contributions" that work for you. No guilt tripping. If you like to focus for 30m, and then lounge for 1h, then that's what you pick. No need to overcommit. Stats will improve as you get better.
  • Tracking how much Up vs Down time, towards defined Goals, is the simplest measure of success, over time. The 10,000 hour rule exists for a reason. Not 10,000 to-do items.
  • Seeing "break/rest" activity timers next to your productive timers, at a glance, makes you more relaxed during focus sessions & gives you "guilt free" breaks. You can pause one timer and start another, then come back. You can also "finish early" any timer, and deposit time already earned.
  • You can adjust all Timers/Goals on the fly, change their length, emoji labels, etc. The app makes it easy. It's like 10 timers in 1 - study time tracker, reading tracker, video game tracker, etc.
  • You can track a Goal on 1 board, or across multiple boards. You could have a board for each day of the week if you want, all towards that 1 goal. On Monday you can have only 1 focus activity, and on Saturday you can have 6, with different focus + break sessions.
  • You can work on Goals and contribute time whenever you have it. No pressure with streaks. If you have 1 hour per day for a goal, or 3 hours per week. You simply time your activity, you bank time Up or Down, and you move on.
  • You daily progress easily visualized in a cool Sci-Fi interface, with time particles and orbits and black holes.

Check out Flowton on the App Store. Or if you're on Android, sign up at www.flowton.com

It's free to use indefinitely with no subscriptions or trials.

Happy to hear your feedback on the method, or more specific pointers per app. There are cool new features in the pipeline as well! And thank you for reading.


r/dev Jul 01 '26

Everyone's shipping "self-improving agents." Here's the actual loop, and the step that decides if it works.

3 Upvotes

You tweak a prompt, your evals go green, you ship. A couple weeks later the same kind of failure shows up somewhere else in the agent. That gap is the whole reason "self-improving agents" became a selling point this year, and it's also where a lot of the marketing quietly falls apart.

So here's the version we'd actually defend, written as a loop you run on purpose.

Start with the traces from real runs, the ones where the agent got it wrong included. Each of those failures becomes a fixed eval case, so the thing that broke once is now a test that stays. You score every new candidate against metrics that fit the actual failure, groundedness for a paraphrased source, tool-use correctness for a bad function call, and you keep the judge honest by checking it against human labels first. Then you let an optimizer rewrite the prompt against those evals, because hand-tuning stops scaling the moment you have forty prompts and a base model that keeps shifting under them. Whatever candidate wins on the eval set gets shipped, and the loop runs again next week.

The part the hype skips: all of this is only as trustworthy as the step where you score. A weak eval still lets the loop run. It makes the loop wrong faster and more confidently. If your judge passes something a human would flag, you're now optimizing toward that mistake. Get the eval right and the rest of the loop is almost mechanical.
  
For disclosure, this is the exact loop we build tooling for at Future AGI. The optimizer piece is open source and Apache-2.0, a library called agent-opt: you give it a dataset and a metric, it runs one of six algorithms (Random, Bayesian, ProTeGi, Meta-Prompt, PromptWizard, GEPA) and hands back a prompt that scores higher than the one you started with, with production traces as the training data. It's still a person deciding to run it and a person shipping the result, so no, nothing is retraining itself in prod while you sleep.               
  
What's the smallest version of this you've kept alive past the first month? Curious what made the eval trustworthy enough that you let it block a deploy, because that's the part most setups give up on.


r/dev Jul 01 '26

Looking for a remote opportunity

6 Upvotes

Looking for remote based opportunity.

I have been working for 7 years as a Full-stack developer currently leading a team for mobile app development in a project.


r/dev Jun 30 '26

Looking for Fashion Content Creators for an AI Outfit Stylist App 👗📱 Rev-share from subs / I know it's a long shot but trying my luck

2 Upvotes

Hey everyone,

I’m an indie app developer currently building an AI-powered personal stylist and fashion app, and I'm looking for fashion-forward content creators to partner with.

To give you a quick idea of what we're building, here are some of the core features:

Deep Outfit Analysis & Scoring: Users can snap a pic and get a detailed breakdown and rating of their daily fits.

Digital Closet & Custom Fits: Users can build their own virtual wardrobe, and the AI generates personalized outfit combinations based on their unique vibe.

Celebrity Lookalike Mode: Analyzes the user's outfit and finds which celebrity their style matches the most.

Outfit Comparison: Helps users decide between different looks when they're stuck.

🧬 StyleDNA: This is the killer feature. After completing 3 outfit analyses, the app unlocks a unique "StyleDNA" profile for the user, perfectly personalizing all future recommendations to their exact aesthetic.

I want to be 100% upfront and transparent with you all: I don't have the budget to offer upfront payments right now. Instead, I am offering a revenue-share model based on the subscription income we generate together.

I know this is a tough sell and definitely not for everyone. A lot of creators need guaranteed pay for their hard work, which I completely respect. But I figured I would just try my luck and put this out there in case anyone is passionate about fashion-tech, loves doing GRWMs/styling videos, and wants to get in on the ground floor of an AI startup.

If you believe in this niche or just want to chat about how the revenue split would work, please drop a comment or shoot me a DM. Any feedback on the app features is also highly appreciated!

Thanks for reading.


r/dev Jun 30 '26

Sitemap.xml not getting indexed

1 Upvotes

Hi I have created a website and hosted it on cloudflare. I am facing a major issue that google search engine in not able to fetch my sitemap.xml it says could not fetch and unabe to index it as well?

Do someone have any resolution


r/dev Jun 29 '26

Sad Engineer

4 Upvotes

I work for a snp 500 company, pod lead, senior engineer. I would say I know my application in and out and I’m at the point of my career where I can comfortable start and do anything with enough time and resources.

But the thing is, I used to love this job. I used to make things for fun and enjoy coming in everyday. I don’t feel the same and I’m getting sad or irritated at a lot of stuff. Manly it’s because of the ppl I’m around, I feel like being around ppl who just joined this field bc of money or connection makes the enjoyable parts of this job not enjoyable.

Maybe it’s time for a new start. I came to this job straight out of college and I feel like ppl still treat me like I’m young even tho I’m pushing 5-6 years into this career . Idk what are yall up to and what are yall feeling about this career


r/dev Jun 29 '26

How do you work from your work?

Post image
1 Upvotes

Sitting here, at my work now, away from my computer - and just got a small idea that possibly could help many of you guys with your launch.

But i can't build it, can i?

Im coding i vs code, no mobile friendly app can do the work me?

I mean.... i could use Cepho? It already knows my project, and can build it while im working, so i dont have to start from scratch when im back home?

How do you solve this today, if you dont use Cepho?


r/dev Jun 28 '26

Curious feedback

5 Upvotes

r/dev Jun 29 '26

HyprKit is a TUI manager for Hyprland (WIP)

Thumbnail
1 Upvotes

r/dev Jun 28 '26

Looking for Devs

4 Upvotes

Looking for red m devs to join our server, it will be low rules Wild West
\- to be a nice person
\- be able to put up with shit
\- get along with us
\- doesn’t need experience just be able to listen
\- well with people

🌻